Category: Debugging

Is Clever Code OK?

“Clever code” is a term that you may have heard before, accompanied by sighs and groans from other developers. Often, people seem to think of clever code as annoying, and perhaps even harmful. In this article, I’m going to give a brief overview of what clever code is, why it’s often...

Continue Reading Is Clever Code OK?

You Broke It! Better Error Handling So Your Errors Don’t Suck!

There you are. Face illuminated by the blue glow of the monitor. You’ve just finished passing the third of three sets of WP_Query arguments to a function that’s supposed to run a loop with the passed args. Except…arg is what you’re feeling right now because your loop…isn’t looping. It isn’t doing anything, actually. No function my_awesome_query...

Continue Reading You Broke It! Better Error Handling So Your Errors Don’t Suck!