Comment by FrustratedMonky

1 year ago

What I don't get is, even if you have brackets, you should be indenting and organizing your code.

It seems like people that fight against indenting must have some bad habits, and are upset that the compiler is enforcing any change.

Like rehab, they have an addiction (sloppy indenting, poor organization), and the compiler is rehab (forcing you to deal with your addiction to give up bad habits).

I do prefer brackets as they are more 'clear'. That doesn't mean different peoples code should have wildly different ways of indenting. We all follow the same traffic rules or it turns into chaos.

Copy-pasting Python code can easily end up in wrong indentation and broken code. Copy-pasting code in bracketed languages usually pastes and then auto-formats that section automatically.

  • Sure, but now you're perpetually stuck with the visual noise of unnecessary brackets _all_ the time. Maybe it's because I use vim, but I don't see this use case as terribly important because I can easily reindent with >> and << of a selection.

    • If you use vim and hate brackets that much, write a linter that will hide the brackets from working view and apply them according to how you white space.

    • A lot of people prefer the visual noise of { and } to having to manually fix the indentation of code and still having the visual noise of :