Hacker News new | past | comments | ask | show | jobs | submit login
On Preferring Spaces Over Tabs (paul-m-jones.com)
1 point by vlucas on March 15, 2012 | hide | past | favorite | 1 comment



Tabs are not used for aligning! They are used for indenting! If you want to align two variables up, use tabs to get to the right indentation level and then use spaces.

File size? Who cares.

The main benefit of tabs over spaces in my view is when you're in an editor that doesn't group spaces into a "tab" (i.e. if you press delete to reduce indentation, it deletes 4 spaces not just the one), then it can be a bit awkward in some cases to reduce indentation. You may find yourself putting one space too many or one too few.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

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

Search: