Live data from Hacker News

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

stackoverflow.blog

461–470 of 690 posts

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

#462
I used to work at a place where a huge argument occurred between staff, fighting over tabs vs spaces. It wasn't mentioned in the company code style.

Eventually leadership got annoyed at the amount of time developers were wasting punting code reviews back and forth over this silly nonsense, let alone the loud altercations around the office. Who ever could have guessed that developers would be such an opinionated bunch?

So they mandated spaces, and all was peaceful in the office.

For about a day.

Naively they put something along the lines of "spaces are to be used for indentation" in the code style document, but failed to specify how many spaces.

So the new arguments started up amongst the office. 3 spaces or 4? Whoever could have guessed that a number of developers were actually belligerent types who would go out of their way to find something to argue about, and also stubborn? Such a rare trait in developers.

So the arguments raged again, and eventually management decided they'd had enough. After all the fuss and grumbling over making an arbitrary decision on the tabs vs spaces debate, they decided this time to be democratic.

They scheduled a big all-hands meeting for the developers, and tolerating no interruptions, outlined that a binding vote was going to be taken. The code style document would be updated to reflect the democratic consensus, and also warning that future arguments on any other points would result in verbal warnings, and potentially dismissal.

With the software development managers standing at the front each to independently do the count, they asked all developers in favour of 3 spaces to raise their right hand, and all developers in favour of 4 spaces to raise their left.

The count started, but soon the managers realised that with all the raised hands, they couldn't see the fours for the threes.

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

#463

Earlier quoted context omitted.

Spaces over tabs is the default for IntelliJ. Given there are over ten million Java developers who are in very high demand, Python is practically a rounding error.

Also, they controlled for language and the effect was still present.

The only thing they didn't control for is Stack Overflow use.

It's official: science proves that highly paid tab users just don't need it.

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

#464
post #10
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.

They must be paid by the hour and all that spacebar pressing adds up

Probably devs who use spaces wear out the space bar more often, and demand high salaries to replace worn-out keyboards.

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

#466

Almost certainly a result of the spaces cabal and the (often unspoken of) prejudice against tab users. Don't think you make hiring decisions based on tabs vs spaces? Well you're part of the problem, then. I'm building an app to help you easily email your congressperson and ask them to create legislation requiring space/tab equality. This has to stop. Please consider donating to my Patreon.

> 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…

Since space indenters can't have keys matching what's produced by them I wonder what else they remap beyond the tab key, to something else completely unrelated

To me it makes as much sense as replacing dots with commas, but space indenters have gone beyond their delusion now

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

#467
post #276

Earlier quoted context omitted.

While your comment is obviously meant as a joke, it somehow rings true from my anecdotal experience. I'd also like to see an analysis of space-vs-tabs as it relates to operating systems. Again, from anecdotal experience, it seems spaces are more common for folks with *nix background who tend to work in product-oriented companies (i.e. where code is an asset) and tabs are more common with windows folks, who tend to wo…

> product-oriented companies (i.e. where code is an asset > IT (i.e. where code is liability You got it backwards. In companies that sell code, code is an asset. In companies that sell services code is a necessary evil.

I think you misunderstood him/her.

If you're a software developer and you're part of the "IT" department, then you're a liability. Your code is a necessary evil.

If you're not part of the "IT" department, then you're working in a product-oriented environment where the company is selling your code (either as a good or as a service) or otherwise making money from the code. In that case, your code is an asset.

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

#468

Well, of course. Only companies with fuck-you money can afford the extra bytes spaces take up versus tabs, so it follows logically that they'd pay their developers more.

Dilbert (well, Ashok really) has a few more storage-saving suggestions: http://dilbert.com/strip/1996-08-20

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

#469
post #415

Earlier quoted context omitted.

Your issue is why you see people say "tabs for indentation, spaces for alignment." If you're trying to vertically align text, use tabs to keep it at the same indentation as the thing you're aligning to, and use spaces to adjust to vertical alignment. This will keep the vertical alignment regardless of the preferred width of the tab.

So for long lines to move an argument over to align with its predecessor on the previous line, like int f() { int someVariableName = myFunctionCall(expr(5), // ...you're saying line A is indented with tabs, and line B with spaces? Because that will misalign if your tab setting isn't the same. Or are you saying that both A and B are indented with spaces? Then what about line C, which will misalign with A and B if your…

I think this is what parent meant:

  1 int f() {
  2 >---int someVariableName = myFunctionCall(expr(5),
  3 >---                                      somethingElse(9),
  4 >---                                      a_long * expression + involving(multiple.subExprs));
  5 >---int d = somethingElse;
  6 }
Tabs only for indentation (lines 2 to 5), spaces for alignment (lines 3 and 4). This is easy to achieve if you use Vim with Smart Tabs for instance (https://vim.sourceforge.io/scripts/script.php?script_id=231).

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

#470

Doesnt using spaces to indent code waste a lot of time? I mean sure if you're only indenting once, it takes a few extra key presses to make 1 tab worth of space bar clicks but if your code gets really deep, then you're talking about wasting a lot of time hitting the space bar key per indent PER line...each subsequent line of indented code doubles the amount of space bar clicks... Am i missing something here? this sou…

[deleted]
Post reply on HN