Accelerated C++: Practical Programming by Example, Andrew Koenig and Rules, Guidelines, and Best Practices, Herb Sutter and Andrei Alexandrescu. Consistent, high-quality coding standards improve software quality, reduce time- to-market, promote teamwork, eliminate by Andrei Alexandrescu, Herb Sutter. Consistent, high-quality coding standards improve software quality, reduce time- to-market, promote teamwork, eliminate time wasted on inconsequential matters .

Author: Zolotaur Febei
Country: Uruguay
Language: English (Spanish)
Genre: Relationship
Published (Last): 4 July 2004
Pages: 206
PDF File Size: 14.74 Mb
ePub File Size: 9.20 Mb
ISBN: 338-5-93596-792-4
Downloads: 53328
Price: Free* [*Free Regsitration Required]
Uploader: Faejora

Prefer initialization to assignment in constructors.

Blend static and dynamic polymorphism judiciously Avoid initialization dependencies across compilation units Write function objects alexandresch Type Safety Report, handle, and translate errors appropriately Declare variables as locally as possible Click on a series title to see the full list of products in the series. Assert liberally to document internal assumptions and invariants.

C++ Coding Standards – Book Home Page

Both authors draw on their personal extensive real-world project experience at commercial software companies ranging in size from small successful start-ups to RealNetworks to Microsoft. But beware the trap of being too quick to think: How and why do you avoid unnecessary initialization, cyclic, and definitional dependencies?

  HACH LANGE CATALOGUE PDF

Along the way, you’ll find answers to questions like What’s worth standardizing–and what isn’t? What are the elements of a rational error handling policy? Give one entity one cohesive responsibility.

Use the right STL search algorithm. Customize intentionally and explicitly. Customize intentionally and explicitly Declare variables as locally as possible. Signed out You have successfully signed out and will be required to sign back in should you need to download more resources.

C++ Coding Standards: 101 Rules, Guidelines, and Best Practices

Use const proactively This happens automatically when following a good, simple set of guidelines. Invest in code reviews. Prefer to use exceptions to report errors The topical sections it covers are: Minimize global and shared data Assert liberally to document internal assumptions and invariants. Consider making virtual functions nonpublic, and public functions nonvirtual What are the elements of a rational error handling policy?

This product is part of the following series. Prefer minimal classes to monolithic classes. Consider Clone instead of copying in base classes.

  HARIMAU HARIMAU MOCHTAR LUBIS PDF

C++ Coding Standards: Rules, Guidelines, and Best Practices [Book]

Rely on types, not on representations. Coding standards have many advantages: Don’t use unions to reinterpret representation. Consider Clone instead of copying in base classes. Consider Clone instead of copying in base classes Minimize global and shared data.

Ensure resources are owned by objects. Know when and how to code for scalability. Correctness, simplicity, and clarity come first 7. Don’t use invalid objects.