Editorial Reviews. From the Back Cover. Consistent, high-quality coding standards improve Guidelines, and Best Practices (C++ In-Depth Series) eBook: Andrei Alexandrescu, Herb Sutter: Kindle Store. Covers coding standards for C++. C++ Coding Standards: Rules, Guidelines, and Best Practices. Herb Sutter. Andrei Alexandrescu. © |Addison-Wesley Professional | Available. Consistent, high-quality coding standards improve software quality, reduce time- to-market, promote teamwork, eliminate by Andrei Alexandrescu, Herb Sutter.
|Published (Last):||8 November 2018|
|PDF File Size:||15.91 Mb|
|ePub File Size:||8.98 Mb|
|Price:||Free* [*Free Regsitration Required]|
Make header files self-sufficient. Don’t use unsafe functions. Avoid inheriting from classes that were not designed to be base classes. Write function objects correctly.
C++ Coding Standards: 101 Rules, Guidelines, and Best Practices by Andrei Alexandrescu, Herb Sutter
Whenever it makes sense, provide a no-fail swap and provide it correctly Namespaces and Modules Stay ahead with the world’s most comprehensive technology and business learning platform. Whenever it makes sense, provide a no-fail swap and provide it correctly.
Don’t write code that depends on the order foding evaluation of functionarguments. Use a version control system. Write function objects correctly Type Safety Invest in code reviews. Use vector by default.
You have successfully signed out and will be required to sign back in should you need to download more resources. Consistent, high-quality coding standards improve software quality, reduce time-to-market, promote teamwork, eliminate time wasted on inconsequential matters, and simplify maintenance. Prefer minimal classes to monolithic classes. Prefer calling the prefix forms. But this book is something more: Avoid initialization dependencies across compilation units Give alexandrescy entity one cohesive responsibility.
Get unlimited access to videos, live online training, learning paths, books, tutorials, and more. Store only values and smart pointers in containers.
Sutter & Alexandrescu, C++ Coding Standards: Rules, Guidelines, and Best Practices | Pearson
Prefer algorithm calls to handwritten loops. Always provide new and delete together. Error Handling and Exceptions. Prefer range operations to single-element operations Use vector and string:: Consider overloading to avoid implicit type conversions stxndards Avoid allocating and deallocating memory in alexanerescu modules.
Use vector and string:: Don’t memcpy or memcmp non-PODs. Prefer writing nonmember nonfriend functions. When should you provide a no-fail swap? Don’t sweat the small stuff. With Safari, you learn the way you learn best.
How and why do you avoid unnecessary alexansrescu, cyclic, and definitional dependencies? Consider making virtual functions nonpublic, and public functions nonvirtual Construction, Destruction, and Copying. Prefer range operations to single-element operations.
Always provide new and delete together