C++ Coding Standards: 101 Rules, Guidelines, and Best Practices
6.5.1 Summary .................................................................................................................... 50
6.5.2 Discussion .................................................................................................................. 51
6.5.3 References ................................................................................................................. 51
7. Design Style ............................................................................................................................. 51
7.1 Chapter 5. Give one entity one cohesive responsibility .................................................. 52
7.1.1 Summary .................................................................................................................... 52
7.1.2 Discussion .................................................................................................................. 52
7.1.3 Examples .................................................................................................................... 53
7.1.4 References ................................................................................................................. 53
7.2 Chapter 6. Correctness, simplicity, and clarity come first ............................................... 53
7.2.1 Summary .................................................................................................................... 54
7.2.2 Discussion .................................................................................................................. 54
7.2.3 Examples .................................................................................................................... 54
7.2.4 References ................................................................................................................. 55
7.3 Chapter 7. Know when and how to code for scalability .................................................. 55
7.3.1 Summary .................................................................................................................... 55
7.3.2 Discussion .................................................................................................................. 55
7.3.3 References ................................................................................................................. 57
7.4 Chapter 8. Don't optimize prematurely ........................................................................... 57
7.4.1 Summary .................................................................................................................... 57
7.4.2 Discussion .................................................................................................................. 57
7.4.3 Examples .................................................................................................................... 58
7.4.4 Exceptions .................................................................................................................. 59
7.4.5 References ................................................................................................................. 59
7.5 Chapter 9. Don't pessimize prematurely ......................................................................... 59
7.5.1 Summary .................................................................................................................... 59
7.5.2 Discussion .................................................................................................................. 59
7.5.3 References ................................................................................................................. 60
7.6 Chapter 10. Minimize global and shared data ................................................................. 60
7.6.1 Summary .................................................................................................................... 60
7.6.2 Discussion .................................................................................................................. 60
7.6.3 Exceptions .................................................................................................................. 61
7.6.4 References ................................................................................................................. 61
7.7 Chapter 11. Hide information .......................................................................................... 61