Computing Reviews
Today's Issue Hot Topics Search Browse Recommended My Account Log In
Review Help
Writing solid code
Maguire S., Microsoft Press, Redmond, WA, 1993. Type: Book (9781556155512)
Date Reviewed: Feb 1 1994

Maguire’s book is a great example of causal analysis at work. He suggests programmers ask two questions whenever they detect an error in their code: How could I have prevented this bug? and How could I have automatically detected this bug? The answers he gives to these questions are the basis of eight illuminating chapters on keeping responsibility for error detection firmly in the hands of the developers. His premise is the Microsoft corporate belief that quality assurance only finds 60 percent of errors. If developers do not get better at finding bugs before shipping the product to the testing organization, then 40 percent of the errors will be found by customers.

Maguire begins the book by showing how to use existing automation to locate errors, such as lint for C and some optional compiler warnings. He then suggests that maintaining two versions of code, code as shipped and code with debugging statements retained, makes detecting and confirming reported bugs easier and faster. He also shows how to use assertions to validate functions and eliminate unwarranted assumptions. Another preventive measure is stepping through newly compiled code with a debugger. The chapter on interface creation and validation is a gem of abstraction and modularization, but the chapter on avoiding risky code is even better. Maguire completes the book with a chapter on developing the proper attitude in a programming team and how prioritizing the values the team uses to develop code helps in error prevention.

The best feature of this book is its utility. Working programmers (especially those writing in C, which is the language of the examples), students in advanced programming courses, quality assurance specialists, and not a few managers can benefit from it. Exercises are provided for use in the classroom. I recommend this work highly for practicing software engineers and all those interested in defect-free programming.

Reviewer:  J. E. Tomayko Review #: CR117414
Bookmark and Share
  Featured Reviewer  
Coding Tools and Techniques (D.2.3 )
C (D.3.2 ... )
Testing And Debugging (D.2.5 )
Would you recommend this review?
Other reviews under "Coding Tools and Techniques": Date
Typographic style is more than cosmetic
Oman P., Cook C. Communications of the ACM 33(5): 506-520, 1990. Type: Article
Mar 1 1991
Obfuscated C and other mysteries
Libes D., John Wiley & Sons, Inc., New York, NY, 1993. Type: Book (9780471578055)
Aug 1 1993
Zen of code optimization
Abrash M., Coriolis Group Books, Scottsdale, AZ, 1994. Type: Book (9781883577032)
May 1 1995

E-Mail This Printer-Friendly
Send Your Comments
Contact Us
Reproduction in whole or in part without permission is prohibited.   Copyright 1999-2024 ThinkLoud®
Terms of Use
| Privacy Policy