|
Buy this book at Amazon.com![](http://www.assoc-amazon.com/e/ir?t=greenteapre01-20&l=as2&o=1&a=0615185509)
This HTML version of the book is provided as a convenience, but some math equations are not translated correctly. The PDF version is more reliable.
Chapter 15 The Nine Theorems of Debugging
-
Readable code is debuggable code.
- The only thing worse than getting an error message is not getting an error message.
- You must always be 100% sure that the code you are running
is the code you think you are running.
- Error messages tell you where the problem was discovered,
not where it was caused.
- The best kind of debugging is the kind you don’t have to do.
- The worst bugs aren’t in your code; they are in your head.
- The best way to avoid a bug is to make it impossible.
- Error messages sometimes tell you what’s wrong, but they
seldom tell you what to do (and when they try, they’re usually
wrong).
- Finding a hard bug requires reading, running, ruminating,
and sometimes retreating. If you get stuck on one of these
activities, try the others.
|
Are you using one of our books in a class?We'd like to know about it. Please consider filling out this short survey.
Think Bayes![](http://ir-na.amazon-adsystem.com/e/ir?t=greenteapre01-20&l=as2&o=1&a=1449370780)
![](http://ws-na.amazon-adsystem.com/widgets/q?_encoding=UTF8&ASIN=1449370780&Format=_SL160_&ID=AsinImage&MarketPlace=US&ServiceVersion=20070822&WS=1&tag=greenteapre01-20) ![](http://ir-na.amazon-adsystem.com/e/ir?t=greenteapre01-20&l=as2&o=1&a=1449370780)
Think Python 2e![](http://ir-na.amazon-adsystem.com/e/ir?t=greenteapre01-20&l=as2&o=1&a=1491939362)
![](http://ws-na.amazon-adsystem.com/widgets/q?_encoding=UTF8&ASIN=1491939362&Format=_SL160_&ID=AsinImage&MarketPlace=US&ServiceVersion=20070822&WS=1&tag=greenteapre01-20) ![](http://ir-na.amazon-adsystem.com/e/ir?t=greenteapre01-20&l=as2&o=1&a=1491939362)
Think Stats 2e![](http://ir-na.amazon-adsystem.com/e/ir?t=greenteapre01-20&l=as2&o=1&a=1491907339)
![](http://ws-na.amazon-adsystem.com/widgets/q?_encoding=UTF8&ASIN=1491907339&Format=_SL160_&ID=AsinImage&MarketPlace=US&ServiceVersion=20070822&WS=1&tag=greenteapre01-20) ![](http://ir-na.amazon-adsystem.com/e/ir?t=greenteapre01-20&l=as2&o=1&a=1491907339)
Think Complexity![](http://www.assoc-amazon.com/e/ir?t=greenteapre01-20&l=as2&o=1&a=1449314635)
![](http://ws-na.amazon-adsystem.com/widgets/q?_encoding=UTF8&ASIN=1449314635&Format=_SL160_&ID=AsinImage&MarketPlace=US&ServiceVersion=20070822&WS=1&tag=greenteapre01-20) ![](http://www.assoc-amazon.com/e/ir?t=greenteapre01-20&l=as2&o=1&a=1449314635)
|