45

I am a Hero and You?
Just for fun 😂😂

Comments
  • 13
    Bullshit.
  • 10
    Sometimes you gotta be the villain to save the world.
  • 4
    I dig it cuz All Might...but it depends man. Some lang standards require one over the other. Java and C# for example use one over the other.
  • 1
    Why it's a villan choice?
    I actually follow the first one but one of my project have l8nting rules as second one. I never felt the difference.
  • 2
    then i am villain too 😁
  • 5
    a guess am a villain
    But i think that makes the code much more readable
  • 4
    But heres the thing only villians always think they r the good guys
    The good guys sometimes question there "goodness"
  • 2
    I dont take orders from cartoon characters.
  • 2
    Stfu
  • 0
    Or use a transpiler, e.g. Fable for transpiling F# to JS, then you can write:

    fun fname param1 param2 =

    whatever the code . . .

    No brackets means no question as to where they go!

    Edit: Darnit, the second line is supposed to go intented below the first, and DevRant doesn't show it that way…
  • 0
    First is JS style second is C family languages' style.
  • 0
    @Pogromist Given that Go counts to the C-family languages, but enforces the first style: No.
  • 2
    Whatever, I just let refmt do the job. Life's too short to discuss about what the right bracket or indentation style is.
  • 2
    Patterns and consistency are more important than form.

    I don't care about nice brackets when the project is either underengineered 5000-line classes, or overabstracted unreadable layers of unnecessary adapters and wrappers.

    You can use 3 spaces of indentation throughout the project for all I care, if it's consistent, and the code is structured in a logical way.

    5-15 lines per function, 5-15 functions per class, DRY but not overgeneralized for hypothetical scenarios, etc.
  • 1
    type_t function(
    type_t parameter
    )
    {
    return ((type_t)0);
    }
    😈👹
  • 1
    Villian here! Die in a fire you heretic!
  • 0
    @Pogromist I mean C/C++/C#
  • 1
    @TobiSGD and i know about that GO compiler stupid rule.
  • 1
    Depends on what language you're working with.

    Java uses hero style
    C++ uses villain style
Add Comment