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
=> More informations about this toot | More toots from grimmy@mastodon.social
@grimmy having worked with code where the indentation told a different story than the braces, python meaningfull indentation is a blessing.
=> More informations about this toot | More toots from tshirtman@mas.to
@tshirtman I'm sure and that's precisely the point of this post, that regardless of language, indentation matters for readability and sanity ;)
=> More informations about this toot | More toots from grimmy@mastodon.social
@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).
=> More informations about this toot | More toots from tshirtman@mas.to
@grimmy as an embedded systems engineer/manager, I've seen worse
=> More informations about this toot | More toots from aburka@hachyderm.io
@aburka I'm sure :)
=> More informations about this toot | More toots from grimmy@mastodon.social
@grimmy gah my eyes!!!!!! Must fix.
=> More informations about this toot | More toots from csnetprogrammer@awscommunity.social This content has been proxied by September (ba2dc).Proxy Information
text/gemini