By Herb Sutter, Andrei Alexandrescu 著 树人 译组织和方针问题 0. 不要为小事斤斤计较。(或者说是:知道什么东西不需要标准化) 少说废话,捡有必要的说:
By Herb Sutter, Andrei Alexandrescu 著 树人 译编码风格 14. 优先使用编译时和链接时错误,而不是运行时错误。 不要把可以在构建时做的事情推迟到运行时来
C++ Coding Standards Item 2 : Use an automated build system Summary Push the (singular) button: Use
参看
By Herb Sutter, Andrei Alexandrescu 著 树人译 函数和操作符 25. 合理地对待通过传值,传(智能)指针或传引用的参数。 合理地确定参数:区分输入,输出和
http://www.gotw.ca/publications/c++cs.htm Table of Contents Preface Organizational and Policy Issu
By Herb Sutter, Andrei Alexandrescu 著 树人 译类型安全90. 避免使用类型转换,优先使用多态。 关闭转换:避免通过转换一个对象的类型来定制行为。通过模
By Herb Sutter, Andrei Alexandrescu树人 译STL:容器 76. 默认情况下使用vector。否则,选择一个适当的容器。 使用“正确(合适)的容
By Herb Sutter, Andrei Alexandrescu 著 树人 译错误处理和异常 68. 使用断言(assert)来证明内部假设和不变量。 Be assertive!对一个
By Herb Sutter, Andrei Alexandrescu 著 树人译 模板和泛型 64. 明智地混合使用静态和动态多态。 比单纯的部分的总和更多:静态和动态多态是互补的。理解它