News for hackers. Stuff that matters.
Re:Books Programmers Don't Really Read But Recommend by anthonyb on Monday March 26, 2012 @06:54PM (#3759042)
The point is that the code is hard to understand. In this case it's a bracket misplaced, so the compiler will pick it up immediately, but if it's a misplaced +1 or index then you won't notice until you get hacked with a buffer overflow.

Now if you put each argument on it's own line, or use reasonable variable names - something that C programmers seem to fight against - neither of those bugs happen, because you can just look at the code and see the problem straight away.

There are no comments on this comment yet.