Tekforums

Chat => General Discussion => Topic started by: Serious on June 16, 2017, 21:19:52 PM

Title: Tabs or Spaces?
Post by: Serious on June 16, 2017, 21:19:52 PM
Seems people who use spaces in code get paid more, $15,370 more, than those who use tabs. You heard that, Clock'd, get spacing!

I just wonder if it's possible to get completely spaced out while coding... :s

http://www.bbc.co.uk/news/technology-40302410
Title: Re: Tabs or Spaces?
Post by: Clock'd 0Ne on June 17, 2017, 14:24:15 PM
I've seen various posts about this and reviews conducted by Github etc, most of it seems to boil down to developer background, so consistently it seems to be those coming from frontend javascript like myself prefer tabs, which probably accounts for why overall the 'spaces' devs get paid more. There's still plenty of well known libraries and frameworks using tabs, so it will never go away and it's usually a case of  letting the IDE take care of it so it doesn't matter either way.

I created all the repos we use at work so I called dibs on tabs :thumbup: :lol:

A much more interesting argument to have these days is about trailing commas and semi-colons!
Title: Re: Tabs or Spaces?
Post by: Serious on June 18, 2017, 20:41:11 PM
Last coding I did was way back, about '94. Which just goes to show how out of date I am regarding it.

I think the idea back then was return statements got semicolons and trailing commas were used if the closing delimiter was on a lower line. Of course, it was never the only option.

Fibromyalgia means learning new language is incredibly difficult for me, and I include programming in that. The actual information often stays, I just can't do the recall bit.

One issue of discussion back then was should programmers be using higher languages at all? Some thought that machine code was still the way to go.  And yes, the spaces vs tabs issue was around too.

So many arguments, some people claimed you couldn't structure basic either, well you could, I did back on a ZX81, Dragon and Apple ][.
Title: Re: Tabs or Spaces?
Post by: Dave on June 22, 2017, 17:37:13 PM
very serious topic, can cause breakups: