索引
条目沿用英文版的排列顺序,数字为原书页码。
-
抽象(abstraction):21
-
聚合异常(aggregating exceptions):82
-
敏捷开发(agile development):2, 153
-
变更放大(change amplification):7, 99
-
类的接口注释(class interface comment):110
-
类膨胀症(classitis):26
-
编码风格(coding style):141
-
认知负担(cognitive load):7, 43, 99
-
注释(comments)
-
注释:作为设计工具(as design tool):131
-
注释:益处(benefits):98
-
注释:预警作用(canary in the coal mine):131
-
注释:书写约定(conventions for):102
-
注释:重复(duplication):138
-
注释:帮助建立直观认识(for intuition):107
-
注释:提供精确信息(for precision):105
-
注释:实现(implementation):116
-
注释:接口(interface):110
-
注释:靠近代码(near code):137
-
注释:过时(obsolete):98
-
注释:拖延(procrastination):129
-
注释:重复代码(repeating code):103
-
注释:在抽象中的作用(role in abstraction):101
-
注释:没有价值(worthless):98
-
注释:先写注释再写代码(writing before code):129
-
复杂性(complexity)
-
复杂性:成因(causes of):9
-
复杂性:定义(definition):5
-
复杂性:逐步积累的特性(incremental nature of):11, 161
-
复杂性:向下转移(pulling downwards):55, 82
-
复杂性:症状(symptoms):7
-
组合(composition):152
-
配置参数(configuration parameters):56
-
相互纠缠的方法(conjoined methods):71
-
一致性(consistency):141, 146
-
上下文对象(context object):51
-
跨模块设计决策(cross-module design decisions):117
-
装饰器(decorator):49
-
深模块(deep module):22
-
默认值(defaults):36
-
依赖(dependency):9
-
设计两次(design it twice):91
-
设计模式(design patterns):142, 156
- designNotes 文件(designNotes file):118, 139
-
磁盘 I/O(disk I/O):160
-
分派器(dispatcher):47
-
自动做出合适的处理(do the right thing):36
-
编辑器文本类示例(editor text class example):40, 50, 56
-
事件驱动编程(event-driven programming):148
-
示例(example)
-
示例:链表(linked list):25
-
示例(examples)
-
示例:配置参数(configuration parameters):56
-
示例:编辑器文本类(editor text class):40, 50, 56, 91
-
示例:文件数据丢失(file data loss):121
-
示例:文件删除(file deletion):79
-
示例:HTTP 参数(HTTP parameters):34
-
示例:HTTP 响应(HTTP response):36
-
示例:HTTP 服务器(HTTP server):32, 60
- 示例:IndexLookup:112
-
示例:Java I/O:26, 49, 61
-
示例:Java substring:80
-
示例:参数缺失(missing parameter):82
-
示例:NFS 服务器崩溃(NFS server crash):81
-
示例:选区不存在(non-existent selection):87
-
示例:内存不足(out of memory):86
-
示例:RAMCloud Buffer:163
-
示例:RAMCloud 错误提升(RAMCloud error promotion):85
-
示例:RAMCloud Status:117
-
示例:选区与光标(selection/cursor):65
-
示例:Tcl unset:78
-
示例:撤销(undo):67
-
示例:Unix I/O:23
-
示例:网站配色(Web site colors):7
-
异常(exception):75
-
异常:聚合(aggregation):82
-
异常:屏蔽(masking):81
-
Facebook:17
-
错误的抽象(false abstraction):22, 43
-
撤销操作的边界标记(fence, for undo):69
-
文件数据丢失示例(file data loss example):121
-
文件删除示例(file deletion example):79
-
文件描述符(file descriptor):23
-
闪存(flash storage):160
-
垃圾回收(garbage collection):160
-
通用类(general-purpose class):40, 66
-
通用代码(general-purpose code):62, 67
-
泛型容器(generic containers):149
-
getter:156
-
全局变量(global variable):51
-
Go 语言(Go language):126
-
Go 语言:其中的短名称(short names in):126
-
Google:17
-
HTTP 参数示例(HTTP parameters example):34
-
HTTP 响应示例(HTTP response example):36
-
HTTP 服务器示例(HTTP server example):32, 60
-
实现(implementation):19, 50
-
实现文档(implementation documentation):116
-
实现继承(implementation inheritance):152
-
增量开发(incremental development):2, 39
- IndexLookup 示例(IndexLookup example):112
-
信息隐藏(information hiding):29
-
信息泄漏(information leakage):30
-
继承(inheritance):151
-
集成测试(integration tests):154
-
接口(interface):19, 50
-
接口:形式化部分(formal parts):20
-
接口:非形式化部分(informal parts):21
-
接口注释(interface comment)
-
接口注释:类(class):110
-
接口注释:方法(method):110
-
接口文档(interface documentation):110
-
接口继承(interface inheritance):151
-
不变量(invariants):142
-
投资心态(investment mindset):15, 128, 136, 144
-
Java I/O 示例(Java I/O example):26, 49, 61
-
Java substring 示例(Java substring example):80
-
链表示例(linked list example):25
-
长方法(long method):70
-
屏蔽异常(masking exceptions):81
-
动态内存分配(memory allocation, dynamic):160
-
方法的接口注释(method interface comment):110
-
微基准测试(micro-benchmark):160
-
参数缺失示例(missing parameter example):82
-
模块化设计(modular design):2, 19
-
模块(module):20
- 名称(names)
-
名称:一致性(consistency):126, 141
-
名称:泛化名称(generic):123
-
名称:怎样选择(how to choose):121
-
名称:让代码更容易看懂(making code more obvious):146
-
名称:精确的名称(precise):123
-
名称:Go 中的短名称(short names in Go):126
-
网络通信(network communication):160
-
NFS 服务器崩溃示例(NFS server crash example):81
-
选区不存在示例(non-existent selection example):87
-
非易失性内存(nonvolatile memory):160
-
面向对象编程(object-oriented programming):151
-
晦涩性(obscurity):10, 145
-
一目了然的代码(obvious code):9, 145
-
内存不足示例(out of memory example):86
- David Parnas(Parnas, David):29
-
透传方法(pass-through method):46
-
透传变量(pass-through variable):50
-
性能(performance)
-
性能:微基准测试(micro-benchmark):160
-
面向性能的设计(performance, designing for):159
-
私有变量(private variables):30
- RAMCloud Buffer 示例(RAMCloud Buffer example):163
-
RAMCloud 错误提升示例(RAMCloud error promotion example):85
-
RAMCloud Status 示例(RAMCloud Status example):117
-
选区与光标示例(selection/cursor example):65
-
自解释代码(self-documenting code):96
-
setter:156
-
浅模块(shallow module):25
-
小类(small classes):26
-
专用代码(special-purpose code):62, 67
-
形式化规约(specification, formal):21
-
战略式编程(strategic programming):14, 135
-
编码风格(style, coding):141
-
substring 示例(Java)(substring example (Java)):80
-
系统测试(system tests):154
-
战术式编程(tactical programming):13, 135, 153
-
战术龙卷风(tactical tornado):14
-
Tcl unset 示例(Tcl unset example):78
-
按时间顺序分解(temporal decomposition):31
-
测试驱动开发(test-driven development):155
-
测试(tests)
-
测试:集成(integration):154
-
测试:系统(system):154
-
测试:单元(unit):154
- try 块(try block):77
-
撤销示例(undo example):67
-
单元测试(unit tests):154
-
Unix I/O 示例(Unix I/O example):23
-
未知的未知(unknown unknowns):8, 99
-
URL 编码(URL encoding):34
- VMware:17
-
瀑布模型(waterfall model):2
-
网站配色示例(Web site colors example):7
-
空白(white space):146