24

I can't understand why people would use spaces over tabs to do indents in code. It's horrible.

Comments
  • 1
    The argument is really consistency. Sure, it would be more consistent if everyone used tabs, but the fact is, you'll never convince everyone to always use tabs. I usually set up my editor to display tabs with a slight background change sonI can smack anyone upside the head who is inconsistent.
  • 2
    @tytho Main reason is that you can set indent length, mine is 8 chars but friends has 4 chars, so we can see each others code in most clear way.
  • 2
    @Glamhoth right, which is why tabs are clearly superior. But different development communities have different standards, and it's more important that you're consistent with your projects than it is to start a holy war
  • 2
    Because spaces mean your vertical alignment is guaranteed to be as correct as your horizontal alignment.
  • 1
    My brother is a spaces tit, I do see his point that no matter the editor they always line up. I use tabs because I always have since I've been doing grown up programming
  • 5
    Reminds me of that Silicon Valley episode!
  • 3
    IDEs convert tabs to spaces anyways. I cringe with people who count their spaces as they manually type them out.
  • 0
    Don't even start
  • 0
    I've been using Brackets for HTML coding, chose tab size 4 yet it doesn't fix the remaining code. Reading it is somewhat tedious.
  • 1
    @philcr Most editors will convert your tabs to spaces anyway...
  • 0
    Does it really matter? Just program mother focas!
  • 1
    @aaronfc When you work in team it does matter.
Add Comment