26
xorith
8y

Tabs v Spaces...
camelCase v snake_case
'single' vs "double"
hyphen-vs_undescore

The point here is PICK ONE AND USE IT.

Comments
  • 3
    2 tab space vs 4 tab space
  • 1
    @youness
    This rant isn't arguing on which one to use. It's purely about people who switch between and leave you wondering if the file is my_file or my-file, or if the method you want is myMethod or my_method.

    Most IDEs are smart enough to pick up tabs/spaces.

    I could also complain about LF vs CRLF.
  • 1
    The config file I'm working on right now(pulled from a nameless GitHub) is such a mess of tabs and spaces. Thankfully the Sublime Text "reindent" command fixed most of it.
  • 0
    I don't care what you choose as long as it's consistent. for me personally I use 2 spaces, lowerCamelCase, LF only (I work in Linux), and code blocks like so:
    function() {
    //no comment
    }
    also I hate all the extra spaces so I do: [1, 2, 3] vs [ 1, 2, 3 ]....
  • 0
    and....

    grunt vs gulp
    express vs hapi

    This list can just go on forever... (Yeah, I'm looking at you, Python)
  • 0
    I'd love to see people try and fail to use camel case in common lisp. Gotta love case insensitivity
  • 1
    dependsOn_the-context

    but when it doesn't matter, I usually prefer camelCase
  • 0
    @ElectricCoffee
    Or snake_case in Golang ;)
  • 0
    @xorith snake case in c and c++ if you actually bother to follow the style guide used in the standard library... Which nobody seems to do
Add Comment