C++ Coding Standards Item 5 : Give One entity one cohesive responsibility

来源:王朝搜索
 
C++ Coding Standards Item 5 : Give One entity one cohesive responsibility

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

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

C++ Coding Standards Item 2 : Use an automated build system Summary Push the (singular) button: Use

C++ Coding Standards:类型安全

By Herb Sutter, Andrei Alexandrescu 著 树人 译类型安全90. 避免使用类型转换,优先使用多态。 关闭转换:避免通过转换一个对象的类型来定制行为。通过模

C++ Coding Standards:STL:容器和算法

By Herb Sutter, Andrei Alexandrescu树人 译STL:容器 76. 默认情况下使用vector。否则,选择一个适当的容器。 使用“正确(合适)的容

C++ Coding Standards:模板和泛型

By Herb Sutter, Andrei Alexandrescu 著 树人译 模板和泛型 64. 明智地混合使用静态和动态多态。 比单纯的部分的总和更多:静态和动态多态是互补的。理解它

C++ Coding Standards:名字空间和模块

By Herb Sutter, Andrei Alexandrescu 著 树人译 名字空间和模块 57. 把类型和其非成员函数接口放在同一个名字空间中。 非成员函数也是函数:为了能被正确地

C++ Coding Standards:构造,析构和拷贝

By Herb Sutter, Andrei Alexandrescu 著 树人 译构造,析构和拷贝 47. 以相同的顺序初始化成员变量。 根据你的编译器:成员变量总是以它们在类定义中被声明

C++ Coding Standards:函数与操作符;类设计与继承

By Herb Sutter, Andrei Alexandrescu 著 树人译 函数和操作符 25. 合理地对待通过传值,传(智能)指针或传引用的参数。 合理地确定参数:区分输入,输出和

C++ Coding Standards:Summary of Summaries-编码风格

By Herb Sutter, Andrei Alexandrescu 著 树人 译编码风格 14. 优先使用编译时和链接时错误,而不是运行时错误。 不要把可以在构建时做的事情推迟到运行时来

 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
© 2005- 王朝网络 版权所有