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 quote
Advertisement
More from Brian Kernighan
-
Controlling complexity is the essence of computer programming.
-
The most effective debugging tool is still careful thought, coupled with judiciously placed print statements.
-
90% of the functionality delivered now is better than 100% delivered never.
-
... it is a fundamental principle of testing that you must know in advance the answer each test case is supposed to produce. If you don't, you are not testing; you are experimenting.
-
Believe the terrain, not the map
-
Don't document bad code - rewrite it.