November 8, 2006

Teach a man to fish …

Filed under: Uncategorized — frameworker @ 11:09 pm

Give a man a fish and you feed him for a day.
Teach a man to fish and you feed him for a lifetime.
Chinese proverb.

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.”


Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

Blog at

%d bloggers like this: