News for hackers. Stuff that matters.
Re:Linus on Line Breaks (2020) by tpoacher on Monday November 29, 2021 @07:20AM (#29378972)
It depends. This is not an unbroken rule.

E.g. if you have 4 long lines all following the same pattern with minor modifications, the best way to both scan quickly and avoid bugs is to write them on their own line fully and align the common parts vertically.

Splitting each line into smaller parts for the sake of "vertical scanning" actually achieves exactly the opposite in this case.

There are no comments on this comment yet.