Monday, Oct 4, 2004, 9:10 AM
Brian Kernighan on Debugging
I saw this in an email from John Mason in PSS today:
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it."
--Brian Kernighan
7 comments
on this post
John:
Monday, Oct 4, 2004, 9:26 AM
Randy:
Of course that could just tell me something about my writing abilities, but I code better than I write, so it's OK!
Monday, Oct 4, 2004, 9:55 AM
Rod Paddock:
Monday, Oct 4, 2004, 9:56 AM
Martin Plante:
"Debugging someone else's code is twice as hard as writing the code yourself. Therefore, if you let someone else code it, make sure you're twice as smart as him."
Monday, Oct 4, 2004, 10:40 AM
Undecided voter.:
Monday, Oct 4, 2004, 1:02 PM
Paul Downey:
Monday, Oct 4, 2004, 2:02 PM
Keith Patrick:
I find recursive algorithms to be remarkably simple in structure yet also difficult to debug if not in the right mindset (I kinda have to flick a switch to go from procedural thinking to recursive), but that doesn't mean it's necessarily bad, as the code can be much simpler in the long run.
Tuesday, Oct 5, 2004, 9:08 AM




