3 ms·
Kernighan’s law: “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 defi
by carapace 9y ago
Kernighan’s law:
“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.”
- fbomb 9y agoPerhaps, but doesn't the fact that a piece of code has bugs imply that it wasn't actually written as cleverly as possible?
- carapace 9y agoNo, the presence of bugs in a piece of code only implies that that piece of code exists. ;-)
- le-mark 9y agoThe code may not be buggy, but may surround bugs, thus the non bugged code still has to be debugged/understood. The easiest code to debug is the code that's never written (fastest too). Juniors/freshers never get this and always try to impress with their cleverness. KISS will always be true.