Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This is a very good point, and I agree.

No matter how you do it[0], alignment is bad for maintainability. It happens that someType or someFunctionName changes, and if you use alignment, you'll have to re-align all those parameters. This is annoying to do even with editor help, and it generates noisy diffs which make patch review needlessly more difficult. Aligning the names of member variables is even worse.

Just Say No to alignment, perhaps? ;)

[0] Well, except if you use "elastic tabs", which don't have widespread support in the first place.



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

Search: