This is what I imagine people's code looks like when they complain about the forced indentation in #python.

And yes, this code is correct.

#programming #c #formatting #indentation #tabsvsspaces #whitespace #developers #developerexperience #debugging #fail #goodluck

@grimmy having worked with code where the indentation told a different story than the braces, python meaningfull indentation is a blessing.
@tshirtman I'm sure and that's precisely the point of this post, that regardless of language, indentation matters for readability and sanity ;)
@grimmy i mean, yes, but this one is *obviously* wrong, and thus one would likely tell their editor to reindent it correctly. It's worse when it looks right, but tell you some code is part of a codepath, but it's part of another (in or out of a condition, for example).
@grimmy as an embedded systems engineer/manager, I've seen worse
@grimmy gah my eyes!!!!!! Must fix.
@grimmy As someone who teaches sophomore university students programming, I can say that the urge to make things not hideous is NOT universal. I'll see students struggling to decide something that looks like this, and say "why don't you reformat that so it's easier to understand", and they're baffled as to why I would think it matters.

@elb I know this mindset from the years I spent as a student tutor.

It sounds like we need more examples showing how well formatted code is easier to understand than this nonsense that I threw together 🤣