Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

Share this Page URL

Testing and Debugging > Test Cases - Pg. 420

Chapter 18 18 CHAPTER Testing and Debugging 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 Most people recognize that testing and debugging are somehow related; that debug- ging is the natural consequence of testing, and that testing is a natural tool during debugging. But, when used correctly, testing and debugging are actually antagonistic: the better your testing, the less you'll need to debug. Better testing habits repay themselves