Navigation
index
next
|
The Art of Readable Code 1.0 documentation
»
Welcome to The Art of Readable Code’s documentation!
¶
Contents:
1. 代码因该容易被理解
1.1. 什么使代码“更好”
1.2. 可读性的基本定理
1.3. 越小越好?
1.4. 直到理解的时间是否与其它的目标相冲突?
1.5. 最困难的部分
2. 包装信息到名字
2.1. 选择特定的词
2.2. 避免像
tmp
和
retval
这样通用的名字
2.3. 喜欢具体的而不是抽象的名字
2.4. 附加额外的信息到一个名字
2.5. 一个名字应该有多长?
2.6. 利用名字格式化来传达含义
2.7. 小结
3. 不会被误解的名字
Indices and tables
¶
Index
Module Index
Search Page
Table Of Contents
Welcome to The Art of Readable Code’s documentation!
Indices and tables
Next topic
1. 代码因该容易被理解
This Page
Show Source
Quick search
Enter search terms or a module, class or function name.
Navigation
index
next
|
The Art of Readable Code 1.0 documentation
»