2 ms·
I find that vertical aligning is great if all the lines (variable names) are of similar length. If one is way longer than the others, then it actually gets hard
by hardwaresofton 12y ago
I find that vertical aligning is great if all the lines (variable names) are of similar length. If one is way longer than the others, then it actually gets harder for your eyes to trace from one (short) variable name to it's value (that is relatively far away because of the outlier), when the shorter ones are all next to each other.
I don't think the solution to this problem is adding spaces to the files, I think it's an IDE/text environment problem.
If you use a configurable text editor (you should be), then just download or write whatever plugin will subtly highlight the line you're on.
- akbar501 12y ago> I find that vertical aligning is great if all the lines (variable names) are of similar length. I agree that when a few variable names are very long that it can actually make readability worse. I vertically aligned for about a year to see if it helped my code quality. In the end, I found that reading a value right next to a variable was easier. The other think I did was to vertically align related variables/values, and put a blank line between unrelated vars so they had their own alignment. In the end, I did not find any improvement in my code (just my personal experience).