71

I am the first one.

Comments
  • 2
    I'm the second one which is sort of disrupting the balance at work.. ☺️
  • 0
    i do the first in most circumstances, but the second one for an else statement
  • 7
    I converted to 2nd a while ago and never looked back. If I look at code from before I feel kind of dirty
  • 4
    2nd for The win!
  • 1
    I generally use the second style these days, but I'm not particularly biased one way or the other.
  • 6
    I'm the second one.. because it saves me an extra line and 'enter' key. :)
  • 1
    I am the second type, moving towards the first but I don't like.
  • 3
    I used to be the first one, now I use the second purely because intelli j does it for me
  • 6
    First for C#, second for JavaScript, because coding standards.
  • 1
    I'm somewhere in middle.resullt of working in different jobs
  • 1
    Second one definitely
  • 3
    Second one because I code in JavaScript and automatic semicolon insertion means that:

    return
    { "code": 0, "msg": "a-ok" };

    returns undefined, but

    return {
    "code": 0,
    "msg": "a-ok"
    };

    works.
  • 2
    Second.
  • 1
    2nd one
  • 1
    Second. But that was 20 years ago ...
  • 2
    Who came up with curly braces and their predecessor, begin and end, anyway?

    I'm so happy I don't have to litter my code with either, when programming F# or Haskell. Indents FTW!

    (Ooops, I might have just introduced a third kind of people. Next, we'll have a Clojure programmer introducing a fourth.)
  • 4
    Only the 2nd type are human. The 1st type are minions of the devil.
  • 1
    Second :)
  • 0
    I'm both :p. Visual Studio forces me to be a person I am not :p and now I've grown accustomed to it. smh
  • 1
    First one for C#, second one for Java...
  • 0
    The image didn't even include how to handle the else clause :(
  • 0
    @Grumpy Presumably the group of individuals that developed Algol.
  • 1
    second
  • 1
    Second! Because is the code standard to Objective-C!
  • 0
    The second one for sure. I can't stand the wasted near-empty lines that the first style promotes.
  • 0
    there are two types of LANGUAGES
  • 0
  • 0
    @nmunro

    languages have coding conventions that dictate where opening braces go
  • 0
    @crystalclear I guess, but what about languages that don't have braces? XD
  • 0
    @crystalclear which languages that use braces also force their placement? Most I know allow either (e.g. Java, PHP, JavaScript,etc.)
  • 1
    @nmunro

    I guess there are three types of languages, then
  • 0
    @crystalclear Three works, those on the right, those below, and those without.
  • 0
    im the 1st too
  • 2
    Apparently most devs look through the file they are editing to see which one is used so far, then use the other one...
  • 0
    First
  • 0
    I was taught C/C++ by my professor who used the first way, but I was taught JavaScript by a professor who used the second way. I guess I just kind of adopted both ways depending on the language I use
  • 1
    second for god's sake!
Add Comment