Live data from Hacker News

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

stackoverflow.blog

381–390 of 690 posts

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

#382

= Why Grown-Ups Don't Use Tabs = * Joe likes 4-space tabs, I like 2-space tabs, and Jane is old-school with 8-space tabs. * All goes well until someone aligns something visually, like so: void someNiceMethod( [tab][tab][tab][tab][space][space]int myParam...); * Now it aligns perfectly on my machine, looks mostly ok on Joe's machine, and is ON MARS on Jane's machine. Thus one-or-more of three futures happens: * Someon…

Who aligns like that? It seems to defeat the purpose of putting it on a separate line. void someNiceMethod( int myParam... ); Hey Presto! You, Joe and Jane all get your preferred size size of tab. As a bonus, this indentation style works equally well if Jim uses a non-fixedwidth typeface.

Well, as long as everyone always use tabs, that should work out okay. But in practice, of course, it doesn't ever happen that way. Nice thing about a space is that it is always a space, a tab is however many spaces you personally want it to be.

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

#383

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.

I think that a rational sounding inerpretation can be found: all spaces means python programmer (mixing spaces and tabs messes up the indentation), python rulez, therefore high salary

According to the article, he tried controlling for language and the effect remained.

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

#384

Earlier quoted context omitted.

I think that a rational sounding inerpretation can be found: all spaces means python programmer (mixing spaces and tabs messes up the indentation), python rulez, therefore high salary

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.

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

#385

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.

Warning, the parent post is sarcastic and should be chuckled at.

your comment seems to imply that the article and all other comments are not... I'm confused now.

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

#386

Earlier quoted context omitted.

I generally prefer tabs, but I don't use them when writing Python (which is most of my job these days). I'm also not all that hung up about it, so I started with "slightly".

Well assuming correlation implies causation (always safe), enjoy being poor.

I can assure you that I'm not poor ;)

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

#387
post #275

Earlier quoted context omitted.

Well assuming correlation implies causation (always safe), enjoy being poor.

Some things are more important than money. Let this tab-idealist enjoy a tab-ful life in the way that they see fit.

Honestly, I'm not even that much of an idealist. I think using the same indentation style as the general community is important, so I use spaces most of the time day-to-day. My biggest point was: maybe we don't need to berate/assume things about others for having different preferences than us?

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

#388
PEP 8 specifically recommends using spaces for Python development. And the vast majority of software developers I know follow most of PEP 8 for Python development. https://www.python.org/dev/peps/pep-0008/#tabs-or-spaces

I'm not a PHP guy (so I'm not sure about this) but it looks like PHP-FIG suggests it too... http://www.php-fig.org/psr/psr-2/

So are we really saying software developers who follow style guides earn more? That doesn't surprise me. Adhering to guidelines is a good way to work well on teams and thus become a more valuable team member.

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

#389

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.

The eight spaces companies are clearly flying high and the place to be if you're looking for mad bank.

poor ruby devs and their two-space indentation rules.

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

#390
post #285

Earlier quoted context omitted.

> if you are using different size tabs from me. But the point of tabs is that you tell your editor how many spaces wide you want them to be, so unless I'm misunderstanding you, this is not an issue. As for lining things up, tabs are used for the indentation level of the current line, but if you need to further nudge things within that line then you'd of course use spaces (after the initial tab indent).

You misunderstand me. I can set my tab size different from yours, but doing that will change the horizontal window width required to view your code. This is the problem I'm describing.

How is that problematic though? I'm not aware of any language or situation where the width of the window has any impact on anything.
Post reply on HN