3 ms·
Vertical alignment of variables is one of those things that feels like it makes your code more readable when you look at your code in a page, as the original ar
by Latty 12y ago
Vertical alignment of variables is one of those things that feels like it makes your code more readable when you look at your code in a page, as the original article did.
The reality is, there is a big difference between pretty code and readable code - when actually reading code, we do it line-by-line to discern meaning. Vertical alignment means we see these numbers as a collection, making them easy to read as a group, but that's not useful. What we care about is how those numbers link to the variables on the left.
Sure, the fact that syntax highlighting solves the same problem better is a good argument, but a better one is that vertically aligning assignments actually makes your code harder to read.