" The followers advice is dropping the curly brackets for these one-line ifs to make them all happy. "
I have never understood why anyone would do this. It's a bug waiting to happen (as goto fail showed), for truly marginal benefit
if (foo)
bar();
if (foo) {
bar();
}Any number of things could have prevented the bug. So lets do all of them.
Though, your point here is interesting. Using curlies probably could have stopped that bug. Using static analysis that saw dead code definitely would have stopped it.
In this case, mechanisms (automatic checking for dead code) are vastly superior to good intentions (always using curlies).
I didn't mean literally everything. I mean everything that has more benefits than costs. I consider consistent curly brace style to fit in that category.
And to be clear, I find that just as weird as you probably do. :)
I think it is a strong argument for compilers' -Wall to detect misindented statements directly following unbracketed conditional expressions, though.