C++ Coding Standards: 101 Rules, Guidelines, and Best Practices
资源大小: 524.60KB
资源类型:![]()
发布人: purewinter
发布日期: 3个月前
Tag:
C++ Coding Standards
资源分: 5
下载人数: 24
软件说明:
C++ Coding Standards: 101 Rules, Guidelines, and Best Practices <br>By Herb Sutter, Andrei Alexandrescu <br><br>Consistent, high-quality coding standards improve software quality, reduce time-to-market, promote teamwork, eliminate time wasted on inconsequential matters, and simplify maintenance. Now, two of the world's most respected C++ experts distill the rich collective experience of the global C++ community into a set of coding standards that every developer and development team can understand and use as a basis for their own coding standards.<br><br>The authors cover virtually every facet of C++ programming: design and coding style, functions, operators, class design, inheritance, construction/destruction, copying, assignment, namespaces, modules, templates, genericity, exceptions, STL containers and algorithms, and more. Each standard is described concisely, with practical examples. From type definition to error handling, this book presents C++ best practices, including some that have only recently been identified and standardized-techniques you may not know even if you've used C++ for years. Along the way, you'll find answers to questions like<br><br>What's worth standardizingand what isn't?<br><br>What are the best ways to code for scalability?<br><br>What are the elements of a rational error handling policy?<br><br>How (and why) do you avoid unnecessary initialization, cyclic, and definitional dependencies?<br><br>When (and how) should you use static and dynamic polymorphism together?<br><br>How do you practice "safe" overriding?<br><br>When should you provide a no-fail swap?<br><br>Why and how should you prevent exceptions from propagating across module boundaries?<br><br>Why shouldn't you write namespace declarations or directives in a header file?<br><br>Why should you use STL vector and string instead of arrays?<br><br>How do you choose the right STL search or sort algorithm?<br><br>What rules should you follow to ensure type-safe code?<br><br>Whether you're working alone or with others, C++ Coding Standards will help you write cleaner codeand write it faster, with fewer hassles and less frustration.<br>



共有评论条
{Text}