the thinker of code complete -- general issues in using variables
来源:互联网 发布:淘宝航模电池套装包邮 编辑:程序博客网 时间:2024/06/05 11:39
1. 变量声明的时候尽量初始化.
2. 不能初始化的变量,尽量在第一次使用的时候初始化.
3. 尽量要变量的生命周期短.
4. 尽量让 相关代码放在一起.
5.一个变量尽量要让它只有一个用途,不要吝惜变量的声明.
0 0
- the thinker of code complete -- general issues in using variables
- the thinker of code complete --General Control Issues
- the thinker of code complete --
- the thinker of code complete
- [Code Complete] CH10 General Issues in Using Variable
- the thinker of code complete -- convention
- the thinker of code complete -- Defensive Programming
- the thinker of code complete -- Refactoring
- the thinker of code complete -- High-Quality Routines
- the thinker of code complete -- Fundamental Data Types
- General Issuess in Using Variables
- Code Complete --- (Note3 Variables)
- Naming Variables-From "Code Complete"
- The art in general operation of linux
- The art in general operation of Windows
- 代码大全学习-13-如何使用变量(General Issue in Using Variables)
- Using Variables in OBIEE
- How (not) to complete workflow tasks using code in WSS3
- 如何将tomcat图标换成自己的
- 友员函数
- 平安夜,广州传智播客老师们的另一种狂欢
- 高效能的七个习惯
- Shell 基础学习
- the thinker of code complete -- general issues in using variables
- google mock C++单元测试框架
- 将n个字符串中相同的字符串删除
- 我的2013生活和工作总结-成功转行之年
- 【8】coco2d-x事件处理机制一
- Regularized logistic regression
- JAVA5线程池使用
- Mocks Aren't Stubs
- 查看LINUX版本命令