Live data from Hacker News

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

stackoverflow.blog

261–270 of 690 posts

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

#262
post #123

The reason I use tabs is pretty simple. It's faster to move around only using the keyboard. It's also faster if I'm changing code that requires reformatting. Finally, when another developer looks at the code, their IDE will render the tabs as whatever its set up for, 2 spaces, 4 spaces, etc. In other words, it adds flexibility. Brace yourself: I use two spaces after the end of sentences too. [1] I am quite the rebel.…

If you're looking for efficiency for text navigation/editing you should consider learning vim/using vim mode in your editor.

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

#264

Earlier quoted context omitted.

> Don't think you make hiring decisions based on tabs vs spaces? I actually ask candidates "spaces or tabs?" in every single interview. I don't really care what the response is in regard to the holy war, and it doesn't mean anything on its own, but having SOME thought out response can be a GREAT indicator of how well versed someone is in general. e.g. I'm going to think way more highly of someone that says "tabs, bec…

Yeah, it can start some interesting conversations too - I don't care personally and tend to go with whatever autoformat in the editor uses. My view is that formatting code shouldn't be a human's job, adding linebreaks on long lines, spacing things out to exactly line up, etc is just a waste of my time. That's the computer's job - it should do it based on human readability rules though, clang-format is probably the be…

Wow, I am a spaces guy but honestly, didn't care this much. Clearly, I should! I mean, I would have failed that interview question totally. Except, I would have said whatever the team consensus was.

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

#265
post #123

The reason I use tabs is pretty simple. It's faster to move around only using the keyboard. It's also faster if I'm changing code that requires reformatting. Finally, when another developer looks at the code, their IDE will render the tabs as whatever its set up for, 2 spaces, 4 spaces, etc. In other words, it adds flexibility. Brace yourself: I use two spaces after the end of sentences too. [1] I am quite the rebel.…

You are among friends, in your use of tabs and two-spacing at the end of sentences. There aren't many of us, and seemingly fewer every day, but we are a force.

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

#266
post #6
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.

You get paid by the keypress?!

Who is manually entering spaces rather than instructing your editor to do it for you?

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

#267

I see a few arguments here which suggest people think tab-users might care less about their code and/or their fellow coder. As someone who slightly prefers tabs and abhors mixing of tabs/spaces, I find this frustrating. I generally prefer tabs because I feel that they're more egalitarian: I like 4-space indentation, but don't want to force that on everyone encountering my code. Similarly, I find 2-space indentation v…

I agree with you and kinda wish people would take a combined approach.

Tabs are better for indentation preferences. Spaces ensure that everyone sees the same thing, which can help in multi-line situations.

So I wish people would avoid this black-and-white discussion. Use tabs for indentation, and spaces for multi-line alignment...

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

#268
post #56

Could it be that a few large, well-compensating employers are shifting the result? (E.g., https://google.github.io/styleguide/cppguide.html#Spaces_vs.... )

Could well be. I know that Google for sure requires spaces, and some cursory Googling leads me to the believe that Facebook does as well. Does anyone have information on Amazon, Microsoft, Apple, etc.? Of course, if all of the top companies are requiring spaces, then there's probably a reason for that, and its impact on salary data is thus meaningful, not just a spurious correlation.

When I was working in Windows about 5 years ago they required spaces.

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

#269
Tabs were the default for a long time, so it can be argued that developers who use spaces make a conscious decision and care about clean code more than tab users who just go along with the default. I'm not arguing tabs vs spaces here, but exploring systems and caring about good organization.

If you care about clean code, being orderly and organized probably extends to other areas, too, and that helps you make more money.

In my experience, developers who mostly use default settings are often unorganized and easily confused. They also know very little about the systems they are working with, because everything outside their IDE doesn't interest them.

I'd also bet that many tab users had to check what they use, because they didn't know or care.

tl;dr: Developers who change the settings are more dedicated to their job.

Post reply on HN