Software dev bombshell: Programmers who use spaces earn MORE than those who use tabs

Well, of course – anyone using tabs should be paid zero

By Thomas Claburn in San Francisco


Poll Weighing in on a longstanding religious war among software developers, community site Stack Overflow has found that developers who use spaces to indent their code earn more than those who use tabs.

After crunching the data from its 2017 Developer Survey (released in March), Stack Overflow data scientist David Robinson on Thursday reported, "[T]he median developer who uses spaces had a salary of $59,140, while the median tabs developer had a salary of $43,750."

Robinson's analytical model suggests that using spaces correlates with an 8.6 per cent higher salary and is the equivalent of an extra 2.4 years of experience in terms of salary expectations.

Stack Overflow's 2017 Developer Survey includes data from more than 64,000 developers, 12,426 of whom provided data for tabs, spaces, and salary. The company has now made the survey available for download.

Robinson has published the code he used to conduct his analysis for those seeking to replicate his results, and has offered the standard statistical caveat: correlation is not causation.

AMP pages do not support showing a poll.

This won't necessarily settle a debate that has raged for decades and was satirized last year in an episode of HBO's Silicon Valley. But it can be expected to further embolden those who favor spaces, a group already giddy from the findings of a Google researcher last year.

Last August, Google developer advocate Felipe Hoffa published data derived from 400,000 GitHub repositories that found spaces far more prevalent in programming code than tabs, with the exception of C and Go.

The Linux kernel coding style prefers tabs, too.

The debate about tabs and spaces involves concerns about consistency, readability, productivity, and storage space.

A tab can represent a different number of columns, depending upon the computing environment being used. A space always represents a single column. So code indented with tabs may appear differently on different systems.

At the same time, tabs take fewer keystrokes and take up less disk space, at least when code isn't being minified.

Outside of fanatics who recognize only one approach as valid, the consensus seems to be that developers should use what works for them (and for their team) and stick with it. There's no right answer – though there's apparently a more remunerative one. ®

Sign up to our NewsletterGet IT in your inbox daily


More from The Register

Behold, the world's most popular programming language – and it is...wait, er, YAML?!?

We don't think so either, but config file format is getting harder to avoid

Pleasant programming playground paves popular Python path

Shrew'd thinking: Code Shrew helps peeps who want to, or need to, gobble a slice of Py

Everyone loves programming in Python! You disagree? But it's the fastest growing, says Stack Overflow

It's a grower not a, er, yeah...

Parallel programming masterclass with compsci maven online

HPC Blog Dr Panda's recent Swiss presentation free to view

Official: Perl the most hated programming language, say devs

Poll According to Stack Overflow, anyway. Disagree? Vote now right here

Programming languages can be hard to grasp for non-English speakers. Step forward, Bato: A Ruby port for Filipinos

Project hopes to bring dev skills to developing nation

Microsoft programming chief to devs: Tell us where Windows hurt you

Build .NET Core 3.0 will be a soothing balm, claims veep Julia Liuson

Favored Swift hits the charts: Now in top 10 programming languages

Apple-championed lingo climbs over Perl, Ruby, assembly code

Microsoft touts real-time over-the-network pair programming in Visual Studio, GitHub ships it

Uh, er, hey look, VS 2017 fans – there's some AI tools, though!

Facebook tackles race hate problem head on with programming tool

Clashing threads put in their place by RacerD