Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
Chapter 63. Use sufficiently portable types in a module's interface
C++ Coding Standards: 101 Rules, Guidelines, and Best Practices
Table of Contents
Copyright
The C++ In-Depth Series
Titles in the Series
Preface
How to Use This Book
Coding Standards and You
About This Book
Acknowledgments
Organizational and Policy Issues
Chapter 0. Don't sweat the small stuff. (Or: Know what not to standardize.)
Summary
Discussion
Examples
References
Chapter 1. Compile cleanly at high warning levels
Exceptions
Chapter 2. Use an automated build system
Chapter 3. Use a version control system
Chapter 4. Invest in code reviews
Design Style
Chapter 5. Give one entity one cohesive responsibility
Chapter 6. Correctness, simplicity, and clarity come first
Chapter 7. Know when and how to code for scalability
Chapter 8. Don't optimize prematurely
Chapter 9. Don't pessimize prematurely
Chapter 10. Minimize global and shared data
Chapter 11. Hide information
Chapter 12. Know when and how to code for concurrency
Chapter 13. Ensure resources are owned by objects. Use explicit RAII and smart pointers
Coding Style
Chapter 14. Prefer compile- and link-time errors to run-time errors
Chapter 15. Use const proactively
Chapter 16. Avoid macros
Chapter 17. Avoid magic numbers
Chapter 18. Declare variables as locally as possible
Chapter 19. Always initialize variables
Chapter 20. Avoid long functions. Avoid deep nesting
Chapter 21. Avoid initialization dependencies across compilation units
Chapter 22. Minimize definitional dependencies. Avoid cyclic dependencies
Chapter 23. Make header files self-sufficient
Chapter 24. Always write internal #include guards. Never write external #include guards
Functions and Operators
Chapter 25. Take parameters appropriately by value, (smart) pointer, or reference
Chapter 26. Preserve natural semantics for overloaded operators
None 27. Prefer the canonical forms of arithmetic and assignment operators
Chapter 28. Prefer the canonical form of ++ and --. Prefer calling the prefix forms
Chapter 29. Consider overloading to avoid implicit type conversions
Chapter 30. Avoid overloading &&, ||, or , (comma)
← Prev
Back
Next →
← Prev
Back
Next →