C++ Coding Standards: Rules, Guidelines, and Best Practices by Herb Sutter, Andrei Alexandrescu, Andrei Alexandrescu

BUY IT NEW

  • $44.99 Online price
  • $40.49 Member price
  • Join Now
  • skip to cart
  • Add To List uiAction=GetAllLists&page=List&pageType=list&ean=9780321113580&productCode=BK&maxCount=100&threshold=3

Usually ships within 24 hours

Get It There On Time
Holiday Delivery Schedule

FIND & RESERVE AN IN-STORE COPY

Enter a zip code

(Paperback)

 
  • Overview
  • Editorial Reviews
  • Customer Reviews
  • Features
  • Full Product Details

Synopsis

Authors and experts Sutter and Alexandrescu distill the experiences of the C++ community into a set of coding standards intended to improve quality, reduce time-to-market (and time wasted), and simplify maintenance. They describe what to standardize; how to design and code for more efficiency; ways to make best use of functions and operators, class design and inheritance; how to make construction, destruction and copying more efficient; when to use namespaces, modules, templates, and genericity; how to handle errors and exceptions, containers, and algorithms; and how to manage type safety. Annotation ©2004 Book News, Inc., Portland, OR

More Reviews and Recommendations

Biography

Herb Sutter is the author of three highly acclaimed books, Exceptional C++ Style, Exceptional C++, and More Exceptional C++ (Addison-Wesley). He chairs the ISO C++ standards committee, and is contributing editor and columnist for C/C++ Users Journal. As a software architect for Microsoft, Sutter leads the design of C++ language extensions for .NET programming.

Andrei Alexandrescu is the author of the award-winning book Modern C++ Design (Addison-Wesley, 2001) and is a columnist for C/C++ Users Journal.



Customer Reviews

  • Reader Rating:
  • Ratings: 1Reviews: 1

C Coding Standards: Rules, Guidelines, and Best Practices Thby Anonymous

Reader Rating:
See Detailed Ratings

November 18, 2004: e subtitle about '101 rules...' evokes comparison with O'Reilly's series of '100 Hacks on...'. But coincidential or not, the authors do provide many useful rules if you are a serious C programmer who is looking to make your code more robust and easier to debug. However, there is some padding done by the authors, to reach this fabled 101 total. They added some elementary rules that are often well-described in many C or C texts. Like rule 17 - 'Avoid magic numbers'. In other words, define constants to hold these values. Or rule 18, about declaring variables as locally as possible. You do know these already, I hope. Later in the book, they actually get to more worthwhile discussions. Like rule 52, about copying and destroying consistently. Or rule 72, about using exceptions instead of error codes to report errors. Overall, most of the book can be useful to you. Though I think the authors would have done well to junk some trite rules.