eftychia: Me in kilt and poofy shirt, facing away, playing acoustic guitar behind head (Default)
Add MemoryShare This Entry
posted by [personal profile] eftychia at 05:24am on 2017-07-15

"Everyone knows that debugging is twice as hard as writing a program in the first place. So if you're as clever as you can be when you write it, how will you ever debug it?" -- Brian W. Kernighan

[Also quoted as: "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."]

There are 2 comments on this entry. (Reply.)
 
posted by [personal profile] polydad at 05:07pm on 2017-07-15
If cleverness was the relevant value in debugging, this would be true.

My own experience is that the prime attributes for debugging are persistence, systematic work habits, and good documentation. I'm not trying to be clever; I'm trying to spot the place in the code where I tried to be *too* clever.

Or, alternatively, find the comma that had been supposed to be a period. That's been my most frustrating debugging to date; it took me 3 weeks of poring over a mere 300 lines of code to spot the goof. When I finally found it, I had stared straight at it, what? a hundred times? Two? More?

*hugs*,

Joel
selki: (Default)
posted by [personal profile] selki at 05:28pm on 2017-07-15
Also, this is one reason why code reviews are good.

Links

January

SunMonTueWedThuFriSat
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24
 
25
 
26
 
27
 
28
 
29
 
30
 
31