2

There are two types of coders out there:

int main() {
// code here
}

int main()
{
// code here
}

Which one are you?

Comments
  • 0
    No. 1.
  • 0
    int
    main(int argc,
    char **argv)
    {
    return 0;
    }

    :^)
  • 0
    @TktStatusPICNIC lol this is a really awful example of what my style is because i dont actually use it for main. But typically my function defs look like this:

    ```
    INTERNAL void
    DoTheThing(int MyCoolNumber,
    char *MyCoolChar,
    void *MyCoolData)
    {
    // Does the thing
    }
    ```

    It's more readable for me to read _down_ rather than right; to view parameters in a list rather than one big long string that I have to visually parse.
  • 0
    @TktStatusPICNIC You're welcome! Hope it goes well for ya, and I hope you don't get the death glares I get :D
  • 0
    That's interesting. I always write the variables in one row. Do you do the same with for loops?
  • 1
    I'm number 3... the guy who gets sick of this question.
  • 0
    First one
  • 0
    Depends on the language. With C#, Java, and C++ I do number 2. With C and pretty much all scripting languages I tend to do number 1.
Add Comment