Tabs vs Spaces: The Verdict is In
Published: 2016-06-01 15:13:51

<p><a href="https://twitter.com/thepracticaldev" target="_blank">The Practical Dev</a> asked&nbsp;the simple question "Tabs or spaces?". 16,281 developers weighed in, and we crowned a winner. Tabs are preferred by 54 percent of programmers! (Or, that is to say, 54% of people who voted on this public survey anyone can vote on).</p>
<center>
<blockquote class="twitter-tweet" data-lang="en">
<p dir="ltr" lang="en">Tabs or spaces?</p>
&mdash; Practical Developer (@ThePracticalDev) <a href="https://twitter.com/ThePracticalDev/status/737298133055643648">May 30, 2016</a></blockquote>
</center>
<p>It was really close for a while.</p>
<center>
<blockquote class="twitter-tweet" data-lang="en">
<p dir="ltr" lang="en">Well that resolved nothing. Thanks <a href="https://twitter.com/ThePracticalDev">@ThePracticalDev</a>. <a href="https://twitter.com/hashtag/tabsVsSpaces?src=hash">#tabsVsSpaces</a> <a href="https://twitter.com/hashtag/SiliconValley?src=hash">#SiliconValley</a> <a href="https://t.co/uqenOtwZpp">pic.twitter.com/uqenOtwZpp</a></p>
&mdash; Brandon Werner (@brandwe) <a href="https://twitter.com/brandwe/status/737455686506811392">May 31, 2016</a></blockquote>
</center>
<p>Overall, the feedback was lovely.</p>
<center>
<blockquote class="twitter-tweet" data-lang="en">
<p dir="ltr" lang="en"><a href="https://twitter.com/davidjrusek">@davidjrusek</a> <a href="https://twitter.com/ThePracticalDev">@ThePracticalDev</a> tabs people probably like the toilet paper roll the wrong way, too. Just terrible, awful people.</p>
&mdash; simms af (@slyphon) <a href="https://twitter.com/slyphon/status/737331166831874048">May 30, 2016</a></blockquote>
<blockquote class="twitter-tweet" data-lang="en">
<p dir="ltr" lang="en"><a href="https://twitter.com/ThePracticalDev">@ThePracticalDev</a> Fuck spaces.</p>
&mdash; SF Sutcliffe (@sfsutcliffe) <a href="https://twitter.com/sfsutcliffe/status/737298354581962752">May 30, 2016</a></blockquote>
</center>
<p>Programmers argue over everything: styles, languages, frameworks, text editors, everything. They usually take it pretty seriously, too. Sometimes it is hard to tell if a developer is&nbsp;seriously that outraged over a stupid little detail or they are just being mock outraged, but most of the time they are not kidding.</p>
<p><a href="https://xkcd.com/386/"><img style="display: block; margin-left: auto; margin-right: auto;" src="https://imgs.xkcd.com/comics/duty_calls.png" alt="" width="300" height="330" /></a></p>
<h6 style="text-align: center;"><a href="https://xkcd.com/386/">"Duty Calls"</a></h6>
<p>StackOverflow founder Jeff Atwood penned a nice examination&nbsp;of the whole ordeal in 2009, entitled <a href="https://blog.codinghorror.com/death-to-the-space-infidels/" target="_blank">Death to the Space Infidels!</a></p>
<blockquote>
<p>absurd as it may sound, fighting over whitespace characters and other seemingly trivial issues of code layout is actually justified. Within reason of course -- when done openly, in a fair and concensus building way, and without stabbing your teammates in the face along the way.</p>
<p>Choose tabs, choose spaces, choose whatever layout conventions make sense to you and your team. It doesn't actually matter which coding styles you pick. What does matter is that you, and everyone else on your team, sticks with those conventions and uses them consistently.</p>
<p>That said, only a moron would use tabs to format their code.</p>
</blockquote>
<p>Arguing on the internet is kind of ridiculous, but standards and conventions are important for programmers and we should try to establish and defend them&nbsp;(to the death?).&nbsp;We do a lot of collaboration, and we need to agree on as much as possible so we can go forth and be productive. But like other humans, we can never agree on anything and end&nbsp;up waging&nbsp;an ongoing metaphoric&nbsp;war.</p>
<p><img style="display: block; margin-left: auto; margin-right: auto;" src="https://media.giphy.com/media/l2JJJHGbjqUDZJp8A/giphy.gif" alt="" width="400" height="225" /></p>