Give a man a fish and you feed him for a day.
Teach a man to fish and you feed him for a lifetime.
Today on Cocoa-dev, Erik Buck, one of the senior Cocoa developers, answered a question in a Socratic tone: Eric’s reply informed the person who’d asked the question how to answer it himself. In doing so, Eric also provided a useful lesson to those of us just getting into Cocoa. Thanks, Eric!
“Usually, the easiest bugs to correct are the ones that predictably crash an application. You can easily look at the debugger stack trace to determine what went wrong.”
“That’s a good reason to use the assertion macros in your code. They’ll cause crashes to occur close to the problem, where they’ll be easier to understand, instead of later.”