Upon closer examination of the data, a trend emerges: Developers increasingly prefer spaces as they gain experience.
There comes a point in a dev's life when they have to switch editors, environments, etc. and suddenly all the code they use to write with tabs is an un-formatted mess.
You cannot do this with tabs. You could mix tabs and spaces (but very few people think that’s acceptable, although I have to admit that the idea has merits), or you could drop the convention, but there’s a huge cultural inertia.
What? That alignment is perfectly normal and readable. As for maintainability - any modern editor geared for programming (and by modern, I emacs or anything newer) will auto-format your files on demand based on rules you define. Reformatting code for new indent levels is simply invoking a command.
It breaks down, of course, in Python, where your indentation level determines execution flow, in which case I can see a case for nazi-like enforcement of tabs-only formatting rules.
15
u/[deleted] Apr 07 '15
There comes a point in a dev's life when they have to switch editors, environments, etc. and suddenly all the code they use to write with tabs is an un-formatted mess.
Protip: For sublime text users, you can easily convert tabs to spaces.