3 ms·
I love that people hate indentation based so I show them a poorly indented C style languages codebase to see how they feel about indentation.
by giancarlostoro 3mo ago
I love that people hate indentation based so I show them a poorly indented C style languages codebase to see how they feel about indentation.
- koolala 3mo agoIsn't it easy to just auto format it?
- giancarlostoro 3mo agoYou mean add indentation to code where it shouldn't matter?
- koolala 3mo agoWe need auto-unformatting too? Auto formatting that doesn't get added as a git change?
- deleted 3mo ago[deleted]
- giancarlostoro 3mo agoI just find it funny that the auto formatting adds the spacing to a very specific style, but requiring spacing is too much for some, readability is much richer in most Python projects I've opened (I can't think of one where it was terrible) compared to Java and C# projects I've opened due to people in Python following coding style standards more frequently, PEP-8 is king.
- sqlserver2008 3mo agoSure but even with no code indentation at all, an auto-formatter can easily indent everything for you because of the braces. If you have poorly indented code in a language like Python, you're on the hook for indenting everything yourself. And as a bonus, the code won't even run until you do.
- AdieuToLogic 3mo ago> I love that people hate indentation based so I show them a poorly indented C style languages codebase to see how they feel about indentation. And I love that people love indentation based languages so I show them a file with some spurious tabs to see how they feel about indentation causing silent errors.