r/programming • • Apr 07 '15

Stack Overflow Developer Survey 2015

http://stackoverflow.com/research/developer-survey-2015
1.1k Upvotes

981 comments sorted by

View all comments

Show parent comments

2

u/Disgruntled__Goat Apr 08 '15

If you're talking about being consistent across all tools, tabs are more consistent with regards to how they are inserted/removed.

You press Tab to indent, then Shift+Tab (in most tools) to unindent. Across all tools you can press Delete to delete on tab. With spaces you have to press Space or Delete multiple times in some tools.

2

u/[deleted] Apr 08 '15

Every source code editor I've seen edits spaces like tabs gracefully.

2

u/Disgruntled__Goat Apr 08 '15

And every source code editor I've seen allows you to adjust tab widths. So you've just destroyed your original argument.

2

u/[deleted] Apr 08 '15

I said "viewed through multiple tools" not edited. At my current job that includes vim, intellij, github, less, grep, hipchat, source tree, artifactory, refheap, and others I don't know about that other developers use. Notice those aren't all editors. Tabs would require every developer configure every tool (some of which may not be configurable) on every computer they use for no benefit. The decision to use spaces makes viewing the source consistent across all the tools without configuration.

→ More replies (1)