4 ms·
There's a good quote that I look at once in a while to remind myself to not be too smart. > Debugging is twice as hard as writing the code in the first place.
by funkymike 8y ago
There's a good quote that I look at once in a while to remind myself to not be too smart.
> 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 and P. J. Plauger in The Elements of Programming Style.
- smileypete 8y agoDebugging isn't too bad if you can put in good trace code that can be switched in or switched out and left in with minimal overhead/risk. Though it may add say 20% time to typing the code in, but it can also serve as a kind of commenting.