12
HamsterOh
16d

You are team:

MyFunction {
}

Or

MyFunction
{

}

For me it's the first one.

Comments
  • 3
    1st one man! It looks good 😎
  • 2
    Depends on style wanted and language coded.
  • 3
    Second one
  • 5
    C#. the 2nd one, Js the 1st
  • 6
    Whatever my code editor formatted it for me
  • 2
    I prefer always the first. But when writing C# then ReSharper forces me to write the second.
  • 5
    I prefer the first, but I’m easy-going and don’t judge if you prefer the second. Unless you intentionally use one that disagrees with the project linter and intentionally don’t use aforementioned linter.
  • 2
    Our professor forces us to allways use the second one.
  • 1
    I love the second one, especially with the GNU coding standards when writing C code, it's beautiful. I don't care about what Linus Torvalds says, go to hell fucking Mr. Torvalds, I hate you! Not because you created the Linux kernel you are right on everything, at least for me.
  • 1
    The first one.
  • 1
    I am team first but how I write depends on the language.
  • 2
    The second, It works with replacing, Automatic code gen and I never want to see without {}

    if(DoSomething)

    ExecuteMe();
  • 1
    @W4R10CK Correction: I always write like the first one but the IDE format it for me.
  • 1
    @Sumafu resharper. Good choice, for me i've updated it so it use the 1st one.
  • 1
    @Pandee Just, kill him. Why obligating people to use a type of coding. OMG it's absurd. Those type of coding is a choice that yourself have to do
  • 1
    @0x0000FFFF same, i hate people who don't use {}
  • 1
    @Sumafu wait no i use Rider, does resharper is for C#? Idk the differences
  • 0
    @HamsterOh unless you start a project, the stylistic choices won't be your hand. Though you might not agree with the professors choice, I think it's a good way to get students used to how it will happen in the industry.
  • 1
    Second one, less dense text because of the empty lines, easier to read.
Your Job Suck?
Get a Better Job
Add Comment