Live data from Hacker News

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

stackoverflow.blog

511–520 of 690 posts

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

#513

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…

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

Since tab indenters have characters indistinguishable from spaces that are a different width from any other character on the screen I wonder what other bizarre escape codes are in their source

To me it makes as much sense as having invisible characters scattered throughout your code, but tab indenters have gone beyond their delusion now

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

#515

Earlier quoted context omitted.

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

Since tab indenters have characters indistinguishable from spaces that are a different width from any other character on the screen I wonder what other bizarre escape codes are in their source To me it makes as much sense as having invisible characters scattered throughout your code, but tab indenters have gone beyond their delusion now

> Since tab indenters have characters indistinguishable from spaces

Most editors can be made to highlight it

> that are a different width from any other character on the screen

Yes, and? That's its purpose and it can be configured to your preferred value (beyond unicode)

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

#516
I wish editors handled indentation preferences intelligently. I prefer my indentations to appear 2-columns wide. I want to be able to open my editor, have everything appear as if it is 2-column-tab-indented while I work on it, but have it automatically written back to use the original indentation scheme of the file. Obviously there would be some ambiguous cases, which is acceptable.

I use vim with vim-sleuth now. If anybody knows how I can achieve what I described above in vim, please tell me how.

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

#517

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

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?

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

#518
post #97

Earlier quoted context omitted.

I tend to agree, but aren't most of the new hot languages whitespace sensitive? Are there formatters for those kinds of languages?

No, whitespace-sensitive languages are still generally the exception (except newlines). In fact I can't think of a new language that is vaguely popular and whitespace sensitive since Python. I guess there is YAML but that isn't a programming language and is also a bit mental.

Haskell is (slowly)growing in popularity, and F# is whitespace sensitive, and these are (for better or worse), the only languages I touch nowadays.

I suppose that maybe none of the really popular languages follow this though...my bad.

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

#520
That doesn't seem like a mystery to me. The argument in favor of tabs boils down to "tab damage won't happen". The argument in favor of spaces boils down to "tab damage will happen". I know which of those two philosophies I would prefer to have in charge of important things.
Post reply on HN