the thinker of code complete -- convention
来源:互联网 发布:java继承作用 编辑:程序博客网 时间:2024/05/23 10:36
1. 名字要尽量详细。
2. 变量和函数名全部小写 并用 _ 分开。
3.整个工程的 全局变量用g_标注,一个文件的全局变量全部小写和局部变量一样。
4.自己定义的变量类型typedef 第一个字母大写,其后的每一个单词第一个字母大写TypeName。
5.enum的成员变量加上类型名Color_red。
6.count和index 替代num。
7.尽可能使用一样的缩写num & number。
8.真的是临时循环变量i,j,k,如果不是循环变量还是表示具体意义。
9.状态变量和函数名字,不要加上Is,如find,ok,done,error。
0 0
- the thinker of code complete -- convention
- the thinker of code complete --
- the thinker of code complete
- the thinker of code complete -- Defensive Programming
- the thinker of code complete -- Refactoring
- the thinker of code complete -- general issues in using variables
- the thinker of code complete -- High-Quality Routines
- the thinker of code complete -- Fundamental Data Types
- the thinker of code complete --General Control Issues
- The C# Complete Reference code
- [Code Complete] CH11 The Power of Variable Names 变量名的力量
- code convention
- Code Convention
- the code of love
- The Complete (?) List Of Cocos2D Tools
- The Complete (?) List Of Cocos2D Tools
- The Complete List of MIME Types
- 《CODE COMPLETE》
- 通用makefile是如何炼成的(IV)
- Android百度地图如何计算两点之间距离?
- 运放总结
- linux jira安装
- JSON对象
- the thinker of code complete -- convention
- VMware下ubuntu上网设置2
- java获取classpath路径
- Oracle “CONNECT BY” 使用
- unity3d 新版本功能思考
- 如何编写firefox插件
- 黑马程序员--编码(重点,不可不知。)
- dojo实现表格数据无法展示
- 基于visual Studio2013解决面试题之1403插入排序