Hacker News new | ask | show | jobs
by scrollaway 3800 days ago
There... is, actually. If you don't actually attempt to align the variable names, then what you're doing is "indenting items in a list", essentially.

In general, you should avoid aligning unless the readability gains are significant. Aligning things means that you end up re-aligning when you add or remove longer items. This increases maintenance and pollutes diffs (which also means code reviews and git logs).

1 comments

My editor aligns things for me - no effort at all.
You are creating effort for the people who review your code. On their behalf, please stop, it's tedious.