Live data from Hacker News

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

stackoverflow.blog

671–680 of 690 posts

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

#672

Earlier quoted context omitted.

You mean something like this don't you? [tab]void some nice method(int param a, [tab] int param b So long as you only use tabs for indentation, not alignment, tabs look correct on _everyone's_ machine. The real problem with tabs is that (some) people are lazy and do stuff like this: [tab]void some nice method(int param a, [tab][tab][tab][space][space]int param b Personally, I think if you work like that you need to l…

Wait ... you're saying that you should do a tab, and then a whole bunch of spaces? What actual benefit does tabbing even get you at that point?

This whole post would be so much more productive if "Tabs for indentation, spaces for alignment." was defined upfront for everyone to debate.

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

#673

If one uses an editor which replaces tab key presses with spaces, is one using tabs or spaces or both?

The discussion was never about what keys you personally press to edit your code (nobody cares enough to wage a holy war over), but what other people have to deal with when reading your code.

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

#675
post #310

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…

Does spending time considering the implications of spaces vs tabs really indicate competence? To me being over-obsessed with minor details might be either negative or at most neutral value. There are thousands of interesting programming subjects to initiate a conversation to evaluate competency. At most it's a matter of what tools you use as well as accepted standards in the individual programming language's communit…

> Does spending time considering the implications of spaces vs tabs really indicate competence?

Absolutely not. Getting along with the team is a measure of competence. Asking this question can reveal that.

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

#676

Earlier quoted context omitted.

There are two very different reasons for this same answer: the don't care vs the don't know. Not caring is fine, not knowing is concerning.

ok so don't answer "whatarespaces?", got it.

I assume from this response that you have never worked with someone who created semi-constant issues because they didn't realize that .vimrc they copied from GitHub was silently turning spaced into tabs whenever they saved a file.

You are a lucky, lucky person.

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

#677
post #651

Earlier quoted context omitted.

and you would have missed the point of the question entirely. Regardless, thats a pretty unnecessarily aggressive response to an interview question; or maybe I'm just reading it that way.

Or you would be missing the point of the answer. It's not meant to be aggressive, but to make a point. It's important that everybody uses the same coding style, regardless of personal preference. Spaces are fine, tabs are fine, but mixing them would be absolutely terrible. A programmer's personal preference for one or the other is irrelevant. What matters is that he's willing to adapt to the coding style of the compa…

> Spaces are fine, tabs are fine, but mixing them would be absolutely terrible. A programmer's personal preference for one or the other is irrelevant. What matters is that he's willing to adapt to the coding style of the company.

That sounds like a better answer to the question right there. It's the "some though out response" that the interviewer was looking for, willingness to put the team's decisions ahead of your own, and so on.

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

#678
post #446

Earlier quoted context omitted.

an indicator is just that, an indicator. It doesn't mean anything on its own, but in the presence of additional information (interview question responses and discussions in this case) it can help paint a better picture. If someone answered this question with "what? I don't know/care", and then knocked more important questions out of the park, then it was obviously a bad indicator and isn't relevant.

I don't follow. Either their answer means something or it doesn't.

Some answers only mean something in combination with other answers. You're looking at the cloud of data points, not the answer to any single question.

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

#679
post #396

Earlier quoted context omitted.

vertical align serves no purpose. why would anyone ever considers it important? silly js devs and their var block...

Indentation is literally a form of vertical alignment. And unless white space is significant in your chosen PL, all forms indentation/spacing serves no purpose. What does you code look like?

you know i meant vertical align on things that are not control blocks, such as assignment values and such. but nice try ;)

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

#680
post #385

Earlier quoted context omitted.

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

The article is serious. But I'm guessing there is either something subtle wrong in the analysis (they even find Go programmers who use spaces earn more, which makes no sense given that 99% of Go programmers use tabs), or it's some kind of weird selection bias, given that it the sample is self-selected.

just because it was not posted on april 1st, it doesnt make the article serious.

they are publishing a very limited, informal, unscientific, survey and having fun drawing outlandish conclusions.

if you think this was serious in any way you may want to bring back pirates to counter global warming.

Post reply on HN