Hacker News new | ask | show | jobs
by GnarfGnarf 3506 days ago
I see the brace goes on the next line, as it should:

    if(condition)
    {
         expression...
    }
instead of the obfuscated form:

    if(condition) {
        expression...
    }
4 comments

What's obfuscated about the second form? It's my personal preference, so I'm sure there's some personal bias there, but one doesn't seem more or less obfuscated than the other one. They are both equally readable to me, but the second seems more compact without sacrificing readability. I can think of other reasons why someone might prefer the first to the second, but reduced obfuscation isn't one of them.
Personally, I prefer the second one.

It's more concise and still provide the braces safety.

First one is taking more space then it need to read. I normally use second.
Statements are inside the brackets as well