Program style and structure 173
with using the compilers help to avoid later problems and debugging
strategy to nd the bugs that get written in spite of your best efforts.
Our strategy in reducing debug time by increasing coding time should
be to focus on the sort of errors that are most difcult to track down
and concentrate on avoiding them.
Code a version
Make it compile
Debug it
Figure 6.1 The problem
Code a version
Make it compile
Debug it
Figure 6.2 The target
6.2 Ten programming errors
and how to avoid them

Get Software Design for Engineers and Scientists now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.