the thinker of code complete --General Control Issues
来源:互联网 发布:千年软件下载 编辑:程序博客网 时间:2024/06/06 02:32
1. 布尔变量是很好的, 不支持的话, 创造条件也要上. 用于复杂的判断, 用于解释说明处, 用于把隐式的比较转换显示的比较.
2.当函数if或者case语句嵌套太多的时候, 证明这样不行了, 需要改变结构. 不然后果自负, 一定要简化到易于阅读. 重复判断或转换if-else或提取出来写成函数或重新设计.
3. if(1 == MAX) ;多用括号易读;
0 0
- the thinker of code complete --General Control Issues
- the thinker of code complete -- general issues in using variables
- the thinker of code complete --
- the thinker of code complete
- 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
- [Code Complete] CH10 General Issues in Using Variable
- General Control Issues
- Control Statements of Java -from The Complete Reference Java
- Arrival of the General
- Performance Issues of the Blockchain
- [转]20 issues of porting C++ code on the 64-bit platform
- 20 issues of porting C++ code on the 64-bit platform
- 20 issues of porting C++ code on the 64-bit platform
- 20 issues of porting C++ code to the 64-bit platform
- 遥感图像处理步骤及经验
- xapian-document,term,value
- 参数use_stored_outlines
- js浮点数,整数相加
- windows程序设计--设备上下文
- the thinker of code complete --General Control Issues
- A+B Problem IV
- NDK开发(1)——JAVA通过JNI调用C代码详细步骤
- 广州传智播客Java培训课程让学员拼搏出一片蓝天
- 从外包走向自主开发 --- 大连现状
- 名牌老校广州传智播客最牛的.Net培训课程
- 插入排序
- 正则小结
- SQL 存储过程实现行转列、手动增加列、列的个数由不同的行数决定