Slogans
I'm not a big fan of design by slogan. I think it's far more important for programmers to understand what they're doing and why, than for them to be able to repeat catchy sayings that give overly broad guidelines and discourage thinking. Let's look at the slogans I mentioned earlier to see how helpful they are.
As we saw, careful design eliminates the need for many validity checks. So while it's tempting to compare programming to crossing streets, the safety rules are obviously different. Don't fall for this one.
Comparing functions that don't check buffer sizes to sharp knives is a graphic way of saying that some programmers can't be trusted to make safety checks on their own. That may be true, but it doesn't mean that such functions should be banned. In fact, most people know that dull knives are more dangerous than sharp ones, because you have to push harder on them, and so they're much more likely to slip and cut you. In programming terms, if you always have to check buffer sizes, then you always have to know the size of the buffer when you write to it. If that value isn't available, what do you do? Of course, what you ought to do is redesign the call chain all the way from the creator of the buffer down to its user, and pass that information down, along with the buffer itself. If you're pressed for time, you might give in to the temptation to just use the value that you know is right. Of course, it's only right until the next time it's changed, and then it's wrong. Now the safety check isn't checking anything meaningful.
The claim that anyone using gets is incompetent is rooted in the idea that there is no way that gets can be used safely. That was one of the early arguments for providing a safer version. However, in a suite of applications, one application can write data to be read by another application, with the assurance that the designed-in assumptions about line lengths are valid. The counterargument is that even this isn't safe, because a malicious user could modify the file between the time it's written and the time it's read. That's not something I stay up nights worrying about: My computer sits on my desk, and no malicious user can sneak in during the night and modify my saved files. It is possible to use gets safely, and it is not a sign of incompetence to do so.