News for hackers. Stuff that matters.
Re:Those Who Say Code Does Not Matter by sparkie on Wednesday April 16, 2014 @01:30PM (#7599170)
Also: just because you can omit braces, doesn't mean you should. Stick to 1TBS and this kind of mistake shouldn't happen.
Re:Those Who Say Code Does Not Matter by Jtsummers on Wednesday April 16, 2014 @02:16PM (#7599479)
1TBS = One True Brace Style, had to look up that abbreviation [1]. Puts the `{` on the line with the `if`, `for`, `while` text and the `}` on its own line, and requires the braces even for one line blocks. (I knew the rest, just hadn't seen "1TBS" before.)

[1] http://en.wikipedia.org/wiki/Indent_style#Variant:_1TBS

Re:Those Who Say Code Does Not Matter by usefulcat on Wednesday April 16, 2014 @01:59PM (#7599351)
Agreed, but the author's point (indirectly, perhaps) is that requiring braces is an example of something that should be part of the language, and the fact that it's not should be considered a defect of the language.
Re:Those Who Say Code Does Not Matter by darrencauthon on Wednesday April 16, 2014 @02:00PM (#7599362)
This mistake shouldn't happen?

Mistakes always happen. Even if I dedicated myself to using braces everywhere, my mistake might be that a) I put the braces in the wrong place, or b) I forgot to put the braces.

Re:Those Who Say Code Does Not Matter by Jtsummers on Wednesday April 16, 2014 @02:18PM (#7599491)
Shouldn't != couldn't. In Haskell and the MLs, for instance, certain classes of mistakes shouldn't happen because of the type system and pattern matching, but a single wildcard could throw that off.