Hacker News new | past | comments | ask | show | jobs | submit login

> 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).




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: