News for hackers. Stuff that matters.
Re:Fundamentals of Optimal Code Style by timw4mail on Friday March 26, 2021 @09:25AM (#26591833)
I have yet to see a good case for alignment over indent-wrapping.

For example, if there is a map of object properties that is ~20 or so items long, with an alignment of each value you cut down on the jaggedness of each line. I see that jaggedness as an advantage, where each line is slightly more unique, and thus easier to scan in context. Additionally, the key on the front of the line is generally what you are searching for, so alignment generally does nothing for searchability anyway.

There are no comments on this comment yet.