Live data from Hacker News

Developers who use spaces make more money than those who use tabs

stackoverflow.blog

1–10 of 690 posts

Re: Developers who use spaces make more money than those who use tabs

#9
post #4

I needed a good laugh this morning. But of course this is pretty bogus relationship. People who drive Teslas make more money than those who drive Gremlins.

But there's an actual causation here (you need more money to buy a Tesla). Use of tabs and salary don't seem to have any relation one way or an other.

My personal guess would be that using spaces is a practical decision and might be more popular towards older, more experienced devs (who are therefore better paid).

On paper tabs sounds better, they're "configurable", you should indent with tabs and align with spaces, yada yada and everything is good in the world.

In practice however it becomes a big mess real quick unless you only work on projects with very good and perfectionist developers who understand when they should indent and when they should align and how they should configure their editors to do the right thing. See for instance the linux kernel codebase, it looks like arse if you don't use 8-space tabs and the coding style even tells you to use that value (it shouldn't really matter if tabs were used "right", except maybe for 80-column limits). So why even bother with tabs in this situation? Do we really care that much about wasting a few bytes?

Therefore I gave up on tabs a long time ago and tell everybody to just use spaces in all the projects I maintain.

Post reply on HN