Ancestors

Toot

Written by Gary "grim" Kramlich on 2025-01-03 at 20:39

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

=> View attached media

=> More informations about this toot | More toots from grimmy@mastodon.social

Descendants

Written by Gabriel Pettier on 2025-01-03 at 20:45

@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

Written by Gary "grim" Kramlich on 2025-01-03 at 20:47

@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

Written by Gabriel Pettier on 2025-01-03 at 21:20

@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

Written by aburka 🫣 on 2025-01-03 at 20:47

@grimmy as an embedded systems engineer/manager, I've seen worse

=> More informations about this toot | More toots from aburka@hachyderm.io

Written by Gary "grim" Kramlich on 2025-01-03 at 20:48

@aburka I'm sure :)

=> More informations about this toot | More toots from grimmy@mastodon.social

Written by Gary on 2025-01-03 at 21:31

@grimmy gah my eyes!!!!!! Must fix.

=> View attached media

=> More informations about this toot | More toots from csnetprogrammer@awscommunity.social

Proxy Information
Original URL
gemini://mastogem.picasoft.net/thread/113766350752773303
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
306.925424 milliseconds
Gemini-to-HTML Time
1.323559 milliseconds

This content has been proxied by September (ba2dc).