Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



Debugging 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: