C++ Coding Standards Item 5 : Give One entity one cohesive responsibility Summary Focus on one thin
C++ Coding Standards Item 3: Use a version control system Summary The palest of ink is better than
C++ Coding Standards Item 2 : Use an automated build system Summary Push the (singular) button: Use
By Herb Sutter, Andrei Alexandrescu 著 树人 译类型安全90. 避免使用类型转换,优先使用多态。 关闭转换:避免通过转换一个对象的类型来定制行为。通过模
By Herb Sutter, Andrei Alexandrescu树人 译STL:容器 76. 默认情况下使用vector。否则,选择一个适当的容器。 使用“正确(合适)的容
By Herb Sutter, Andrei Alexandrescu 著 树人译 模板和泛型 64. 明智地混合使用静态和动态多态。 比单纯的部分的总和更多:静态和动态多态是互补的。理解它
By Herb Sutter, Andrei Alexandrescu 著 树人译 名字空间和模块 57. 把类型和其非成员函数接口放在同一个名字空间中。 非成员函数也是函数:为了能被正确地
By Herb Sutter, Andrei Alexandrescu 著 树人 译构造,析构和拷贝 47. 以相同的顺序初始化成员变量。 根据你的编译器:成员变量总是以它们在类定义中被声明
By Herb Sutter, Andrei Alexandrescu 著 树人译 函数和操作符 25. 合理地对待通过传值,传(智能)指针或传引用的参数。 合理地确定参数:区分输入,输出和
By Herb Sutter, Andrei Alexandrescu 著 树人 译编码风格 14. 优先使用编译时和链接时错误,而不是运行时错误。 不要把可以在构建时做的事情推迟到运行时来