News for hackers. Stuff that matters.
Re:Those Who Say Code Does Not Matter by usumoio on Wednesday April 16, 2014 @12:57PM (#7598931)
I think this guy might be confusing code with style. This is why I never ever let the interns not use braces. We built a style guide that is good at blocking these types of errors. Not to mention that Apple should have tested enough to catch that error... It is about the code, but maybe not in the way this guy thinks.
Re:Those Who Say Code Does Not Matter by hibikir on Wednesday April 16, 2014 @01:08PM (#7599033)
For this, you don't need a style guide, but a static code analysis tool. This specific error causes unreachable lines and has suspicious indentation.

In my project, that could could have never gotten into production, because the tools would have stopped us, even without a single unit tests.

Re:Those Who Say Code Does Not Matter by jerf on Wednesday April 16, 2014 @01:06PM (#7599015)
Few languages that have copied their if statement from C have adopted C's exact syntax. Most, if not all, make the braces mandatory. It is a flaw in the language that it permits such a dangerous style.
Re:Those Who Say Code Does Not Matter by mercurial on Wednesday April 16, 2014 @02:21PM (#7599509)
Go and Rust make the braces mandatory. Hugely more popular curly-braces languages such as Java, Javascript, or C#, don't.
Re:Those Who Say Code Does Not Matter by Terr_ on Wednesday April 16, 2014 @01:10PM (#7599043)
> This is why I never ever let the interns not use braces.

And hopefully nobody else either.

Beware the "experienced" developer who skips braces "because it's more elegant" or "because it's unnecessary typing".