Alignment indentation like that makes my eyes bleed. Please never push an LoC further to the right than nesting would imply.
this post was submitted on 19 Mar 2025
10 points (100.0% liked)
Programmer Humor
35151 readers
345 users here now
Post funny things about programming here! (Or just rant about your favourite programming language.)
Rules:
- Posts must be relevant to programming, programmers, or computer science.
- No NSFW content.
- Jokes must be in good taste. No hate speech, bigotry, etc.
founded 5 years ago
MODERATORS
Agreed, but I'm pretty sure the auto-formatters available do alignment indentation anyway as it is part of the style guides.
Otherwise, I think some of the lines have too much nesting and could be broken up, and the ifcond-then-else blocks aren't indented enough in the last example.