14

It really pisses me off when people write

if (true)
{
// Something
}

instead of

if (true) {
// Something
}

Comments
  • 21
    It pisses me off when people have an always true condition in their code.
  • 2
    @salsero69 Well played lol
  • 4
    each to their own, for ne it makes my code easier to read back over using the first example, although i see why you like it the other way i still prefer to do it my way.
  • 0
    I know right?
  • 0
    I will set my code up that way when im trying to find an error. Makes it easier to find that way.
  • 2
    C# does that automatically, so you'll have to take this one up with Microsoft ;)
  • 0
    @Dev-3 by C-sharp I need visual studio
  • 0
    @Dev-3 No, Visual Studio does that by default, but it's configurable. I have my settings tweaked to be the compact version of braces... which is a pain when others keep auto formatting my code!!
  • 0
  • 0
    you know that you do not need the "if (true)", right ? :-)
  • 0
    I used to HATE opening braces on the same line. I even had pet names for them. Then I grew out of my teens.

    Nowadays I do my best to conform with language / framework / corporate style guides.
  • 0
    @zordan Yes, it was just to have something inside the braces 😂
Add Comment