主题索引
行为型模式
把算法、职责与对象间通信分配清楚:责任链、命令、解释器、迭代器、中介者、备忘录、观察者、状态、策略、模板方法、访问者。
来源书籍
7/7
_workflow.md。V10 重跑(2026-10-02):历史表没有逐 spine 覆盖记录,已按
_coverage.md逐来源项、逐单元重读后全部恢复 done;卡片数为当前 cards 文件实数,合计 132 张(含 S4 补生成 3 张)。
| 章节号 | 章节标题 | 精读/略读 | 状态(pending/done) | 卡片数 |
|---|---|---|---|---|
| 01 | 第1章《简介》 | 精读 | done | 13 |
| 02 | 第2章《开发过程》 | 精读 | done | 17 |
| 03 | 第3章《类图:基础》 | 精读 | done | 20 |
| 04 | 第4章《序列图》 | 精读 | done | 10 |
| 05 | 第5章《类图:进阶概念》 | 精读 | done | 16 |
| 06 | 第6章《对象图》 | 精读 | done | 1 |
| 07 | 第7章《包图》 | 精读 | done | 9 |
| 08 | 第8章《部署图》 | 精读 | done | 2 |
| 09 | 第9章《用例》 | 精读 | done | 10 |
| 10 | 第10章《状态机图》 | 精读 | done | 9 |
| 11 | 第11章《活动图》 | 精读 | done | 10 |
| 12 | 第12章《通信图》 | 精读 | done | 3 |
| 13 | 第13章《组合结构》 | 精读 | done | 2 |
| 14 | 第14章《组件图》 | 精读 | done | 3 |
| 15 | 第15章《协作》 | 精读 | done | 2 |
| 16 | 第16章《交互概述图》 | 精读 | done | 1 |
| 17 | 第17章《时间图》 | 精读 | done | 1 |
| 18 | 附录A《UML版本之间的变化》 | 精读 | done | 3 |
| 术语名 | 出现章节 | 一句话语境 |
|---|---|---|
| CORBA | 第1章 | 作为OMG广为人知的互操作性标准被提及,未展开其机制。 |
| Smalltalk | 第1章 | 用于类比UML作为编程语言可能成为利基技术,未展开语言设计。 |
| CASE工具 | 第1章 | 作为蓝图/逆向工程工具类型被提及,未系统展开。 |
| J2EE/.NET | 第1章 | 作为PIM转PSM示例平台被提及,未展开平台架构。 |
| OCL | 第3章 | 作为形式对象约束语言被提及,未展开语法和推理规则。 |
| Liskov替换原则 | 第3章 | 作为可替换性的参考被提及,未展开证明或规则。 |
| xUnit/JUnit | 第2章 | 作为自动化回归测试工具族被提及,未展开框架用法。 |
| Petri网 | 第11章 | 作为活动图相关流技术被提及,未展开模型细节。 |
| 位置 | 术语 |
|---|---|
| 第1章 | OMG(对象管理组织)、CORBA、CASE 工具、双程/无转换工具、MDA、PIM/PSM、可执行 UML、架构型(archetype)、Smalltalk、OOPSLA、三友(Three Amigos) |
| 第2章 | RUP/UP、开发案例、阶段交付(staged delivery)、xUnit/JUnit、持续集成、极限编程(XP)、Scrum、FDD、Crystal、DSDM、CRC 卡、代理(Proxy)模式、JavaDoc |
| 第3章 | 性质字符串({readOnly} 等)、OCL(对象约束语言)、命令查询分离、Liskov 替换原则(LSP)、Eiffel、保护代理、Data Gateway |
| 第4章 | 生命线、激活条、寻获消息、交互框(loop/alt/opt)、伪消息、数据蝌蚪、CRC 卡 |
| 第5章 | 构造型(stereotype)、扩展机制(profile)、棒棒糖/球窝表示法、泛化集(鉴别器)、«temporal»、«bind»、«instantiate»、数据类型 |
| 第6–8章 | 实例规格、命名空间、门面(Facade)、共同封闭/共同复用原则、无环依赖原则、稳定依赖/稳定抽象原则、数据映射器、分离接口模式、节点/设备/执行环境、工件(artifact)、标记值 |
| 第9章 | 执行者/主执行者/辅助执行者、主成功场景(MSS)、扩展、«include»/«extend»、成功保证/最小保证、触发器、海平面/鱼/风筝级别、用户故事 |
| 第10章 | 初始伪状态、终止状态、内部活动、入口/出口活动、自转换、do-活动、超状态、正交区域、历史伪状态、状态模式、状态表 |
| 第11章 | 初始节点、分叉/结合、判断/合并、[else]、子活动(耙子符号)、分区(泳道)、时间信号、令牌、连接器、针脚、变换、扩展区域(«concurrent»)、流结束、结合规格、Petri 网 |
| 第12–17章 | 嵌套小数编号、«create»/«delete»、部件、委托连接器、端口、«component»、DLL 地狱、协作发生、交互概述图、引用交互框、时间图 |
| 附录A | 统一方法 0.8、OMG 分析与设计任务组、类型/实现类、{complete}/{mandatory}、«uses»/«extends»、扩展点、动作语义、UML Forum |
| 标题 | 类型(书/论文/框架/源码项目) | 出现章节 | 一句话语境 |
|---|---|---|---|
| 《Design Patterns》/Gang of Four | 书 | 第2章/第4章/第5章 | 作为模式、状态模式、接口等主题的延伸参考被多次提及。 |
| 《Patterns of Enterprise Application Architecture》 | 书 | 第2章/第7章 | 作为数据映射器、分离接口等模式参考被提及。 |
| 《Refactoring》 | 书 | 第2章 | 作为重构实践参考被提及。 |
| 《Writing Effective Use Cases》/Cockburn | 书 | 第9章 | 作为用例级别与格式的主要参考被提及。 |
| 《Object-Oriented Software Engineering》/Jacobson | 书 | 第9章 | 作为用例流行来源被提及。 |
| 《Object Constraint Language》/Warmer and Kleppe | 书 | 第3章 | 作为OCL约束语言参考被提及。 |
| 《Agile Software Development》/Cockburn | 书 | 第2章 | 作为敏捷过程概述参考被提及。 |
| 《UML User Guide》/Booch | 书 | 第10章 | 作为状态图进一步资料被提及。 |
| 《UML Reference Manual》/Rumbaugh | 书 | 第10章 | 作为状态图进一步资料被提及。 |
| 位置 | 文献 |
|---|---|
| 第1章 | [Kleppe et al.](MDA)、[Mellor and Balcer](可执行UML)、[Larman]、[Rumbaugh,UML Reference]、[Martin]、Booch/Coad/Jacobson/Odell/Rumbaugh/Shlaer-Mellor/Wirfs-Brock 早期方法论著作 |
| 第2章 | [McConnell]、[Fowler,refactoring]、[Fowler and Foemmel]、[Beck]、[Gang of Four]、[POSA1]、[POSA2]、[Core J2EE Patterns]、[Pont]、[Fowler,AP]、[Fowler,P of EAA]、[Kerth]、[Cunningham]、[Cockburn,agile]、[Highsmith]、[Ambler]、[Beck and Fowler]、[Kruchten] |
| 第3章 | [Meyer](按契约设计、命令查询分离)、[Martin](LSP、依赖管理)、[Warmer and Kleppe](OCL) |
| 第4章 | [Beck and Cunningham](CRC 原始论文)、[Wirfs-Brock] |
| 第5章 | [Rumbaugh,UML Reference](聚合是“建模安慰剂”);martinfowler.com/ap2/timeNarrative.html(时态模式) |
| 第7章 | [Martin](包设计原则)、[Fowler,P of EAA](映射器、分离接口)、[Gang of Four](门面) |
| 第9章 | [Jacobson,OOSE]、[Cockburn,use cases]、[Constantine and Lockwood] |
| 第10章 | [Booch,UML user]、[Rumbaugh,UML Reference]、[Douglass]、[Martin] |
| 第14章 | [Hohmann];Ralph Johnson, c2.com wiki “DoComponentsExist” |
| 附录A | [Fowler,AP];uml-forum.com;martinfowler.com |
| 序号 | 实践标题 | 实践方式 | 状态 | 关联章节 | 产出 |
|---|---|---|---|---|---|
| 1 | 给一个真实代码模块画类图区分聚合与组合 | 实现深读 | done | 类图相关章节 | cardbox模块类图(含聚合/组合标注) |
| 2 | 给一个真实流程画状态图只画有趣状态 | 实现深读 | done | 状态图相关章节 | book-notes流程状态图 |
V10 重筛(2026-10-02):新增卡中的“状态图的三种实现”“迭代回顾列三栏”等可形成个人练习,但与现有两项(类图区分聚合组合、状态图只画有趣状态)高度重合,未产生更优的新实践,维持原计划。
| 维度 | 覆盖状态(已覆盖/补充生成/未覆盖) | 关联卡片标题或未覆盖理由 |
|---|---|---|
| 建模方法论/流程 | 已覆盖 | [[草稿重在选择]]、[[迭代按功能切]]、[[过程必须裁剪]] |
| 核心构建块/元语言 | 已覆盖 | [[UML双层结构]]、[[类图刻画静态]]、[[序列图看协作]]、[[状态是反应差异]]、[[活动图支持并行]] |
| 边界划分原则 | 已覆盖 | [[包依赖看全局]]、[[依赖流要清晰]]、[[组件面向升级]]、[[客户包放接口]]、[[按变化和复用分包]]、[[稳定的包应更抽象]]、[[用门面收窄包接口]] |
| 模型与代码的映射关系 | 已覆盖 | [[封装不是字段]]、[[接口隔离实现]]、[[部署映射物理]]、[[组合结构看运行]] |
| 一致性与事务边界 | 已覆盖 | [[契约分清责任]]、[[组合拒绝共享]]、[[分叉结合同步]];本书覆盖模型内部一致性和流程同步,未展开分布式事务。 |
| 模型演化与重构 | 已覆盖 | [[预测依赖稳定需求]]、[[版本演化影响语义]]、[[文档记录取舍]]、[[返工靠测试重构集成]] |
| 反模式/常见建模误区 | 已覆盖 | [[聚合语义很弱]]、[[类图不要贪全]]、[[文本价值大于图]]、[[交互框别滥用]]、[[存取器泛滥说明行为放错]]、[[别把用例功能分解]]、[[图上没画不等于没有]] |
历史 v8:复用 4 个已有主题,新建 6 个建模主题。V10(2026-10-02)新增 46 张卡逐张判定,全部加入 15 个已有主题(成员已写入 notes/_topics/),无需加入 0、待复核 0;本表覆盖当前全部 132 张卡(含 S4 补生成 3 张)。未与数据库中既有人工索引“如何选择合适的UML图形类型”重名。
| 卡片标题 | 结论 | 主题文件或原因 |
|---|---|---|
| UML双层结构 | 已创建 | notes/_topics/modeling-purpose-notation.md |
| 草稿重在选择 | 已创建 | notes/_topics/modeling-purpose-notation.md |
| 蓝图追求完整 | 已创建 | notes/_topics/modeling-purpose-notation.md |
| 图形编程门槛 | 已创建 | notes/_topics/modeling-purpose-notation.md |
| 视角决定语义 | 已创建 | notes/_topics/modeling-purpose-notation.md |
| UML规则是描述性而非强制性 | 已创建 | notes/_topics/modeling-purpose-notation.md |
| MDA把模型编译切成两段 | 已创建 | notes/_topics/modeling-purpose-notation.md |
| 迭代按功能切 | 已创建 | notes/_topics/iterative-process-tailoring.md |
| 时间盒逼优先级 | 已创建 | notes/_topics/iterative-process-tailoring.md |
| 预测依赖稳定需求 | 已创建 | notes/_topics/iterative-process-tailoring.md |
| 过程必须裁剪 | 已创建 | notes/_topics/iterative-process-tailoring.md |
| UML服务沟通 | 已创建 | notes/_topics/modeling-purpose-notation.md |
| 文档记录取舍 | 已创建 | notes/_topics/modeling-purpose-notation.md |
| 类图刻画静态 | 已创建 | notes/_topics/static-structure-modeling.md |
| 性质两种画法 | 已创建 | notes/_topics/static-structure-modeling.md |
| 多重性定数量 | 已创建 | notes/_topics/static-structure-modeling.md |
| 封装不是字段 | 已创建 | notes/_topics/static-structure-modeling.md |
| 双向关联要同步 | 已创建 | notes/_topics/static-structure-modeling.md |
| 查询命令分离 | 已复用 | notes/_topics/interface-design-dispatch.md |
| 泛化需可替换 | 已复用 | notes/_topics/interface-design-dispatch.md |
| 依赖控制波动 | 已复用 | notes/_topics/modularity-information-hiding.md |
| 契约分清责任 | 已复用 | notes/_topics/interface-design-dispatch.md |
| 类图不要贪全 | 已创建 | notes/_topics/static-structure-modeling.md |
| 序列图看协作 | 已创建 | notes/_topics/interaction-responsibility-modeling.md |
| 分布控制局部化 | 已创建 | notes/_topics/interaction-responsibility-modeling.md |
| 生命周期可视化 | 已创建 | notes/_topics/interaction-responsibility-modeling.md |
| 交互框别滥用 | 已创建 | notes/_topics/interaction-responsibility-modeling.md |
| 异步降低耦合 | 已创建 | notes/_topics/interaction-responsibility-modeling.md |
| CRC聚焦责任 | 已创建 | notes/_topics/interaction-responsibility-modeling.md |
| 关键词扩展语义 | 已创建 | notes/_topics/modeling-purpose-notation.md |
| 聚合语义很弱 | 已创建 | notes/_topics/static-structure-modeling.md |
| 组合拒绝共享 | 已创建 | notes/_topics/static-structure-modeling.md |
| 派生表达约束 | 已创建 | notes/_topics/static-structure-modeling.md |
| 接口隔离实现 | 已复用 | notes/_topics/interface-design-dispatch.md |
| 只读不是冻结 | 已创建 | notes/_topics/static-structure-modeling.md |
| 值对象按值相等 | 已创建 | notes/_topics/static-structure-modeling.md |
| 限定关联像字典 | 已创建 | notes/_topics/static-structure-modeling.md |
| 谨慎使用是一个 | 已复用 | notes/_topics/inheritance-composition.md |
| 多重分类偏概念 | 已创建 | notes/_topics/static-structure-modeling.md |
| 关联类有限制 | 已创建 | notes/_topics/static-structure-modeling.md |
| 模板绑定不扩展 | 已创建 | notes/_topics/static-structure-modeling.md |
| 枚举是固定集合 | 已创建 | notes/_topics/static-structure-modeling.md |
| 主动类自控线程 | 已创建 | notes/_topics/static-structure-modeling.md |
| 可见性随语言变 | 已创建 | notes/_topics/modeling-purpose-notation.md |
| 对象图是快照 | 已创建 | notes/_topics/static-structure-modeling.md |
| 包是命名空间 | 已复用 | notes/_topics/modularity-information-hiding.md |
| 包依赖看全局 | 已复用 | notes/_topics/modularity-information-hiding.md |
| 依赖流要清晰 | 已复用 | notes/_topics/modularity-information-hiding.md |
| 客户包放接口 | 已复用 | notes/_topics/modularity-information-hiding.md |
| 包是编译分组 | 已复用 | notes/_topics/modularity-information-hiding.md |
| 部署映射物理 | 已复用 | notes/_topics/model-implementation-separation.md |
| 工件是物理显现 | 已复用 | notes/_topics/model-implementation-separation.md |
| 用例绑定目标 | 已创建 | notes/_topics/use-cases-requirements.md |
| 文本价值大于图 | 已创建 | notes/_topics/use-cases-requirements.md |
| 步骤写意图 | 已创建 | notes/_topics/use-cases-requirements.md |
| 用例粒度分层 | 已创建 | notes/_topics/use-cases-requirements.md |
| 特性粒度更细 | 已创建 | notes/_topics/use-cases-requirements.md |
| 状态是反应差异 | 已创建 | notes/_topics/state-activity-modeling.md |
| 转换三要素 | 已创建 | notes/_topics/state-activity-modeling.md |
| 内部活动不出入 | 已创建 | notes/_topics/state-activity-modeling.md |
| do活动可中断 | 已创建 | notes/_topics/state-activity-modeling.md |
| 正交状态降复杂 | 已创建 | notes/_topics/state-activity-modeling.md |
| 只画有趣状态 | 已创建 | notes/_topics/state-activity-modeling.md |
| 活动图支持并行 | 已创建 | notes/_topics/state-activity-modeling.md |
| 分叉结合同步 | 已创建 | notes/_topics/state-activity-modeling.md |
| 分区标明责任 | 已创建 | notes/_topics/state-activity-modeling.md |
| 令牌解释流动 | 已创建 | notes/_topics/state-activity-modeling.md |
| 扩展区域批处理 | 已创建 | notes/_topics/state-activity-modeling.md |
| 流结束非全局 | 已创建 | notes/_topics/state-activity-modeling.md |
| 通信图重链接 | 已创建 | notes/_topics/interaction-responsibility-modeling.md |
| 两图各有焦点 | 已创建 | notes/_topics/interaction-responsibility-modeling.md |
| 嵌套编号解决自调用歧义 | 已创建 | notes/_topics/interaction-responsibility-modeling.md |
| 组合结构看运行 | 已创建 | notes/_topics/static-structure-modeling.md |
| 端口组织交互 | 已创建 | notes/_topics/static-structure-modeling.md |
| 组件面向升级 | 已复用 | notes/_topics/modularity-information-hiding.md |
| 组件图画实际连接 | 已复用 | notes/_topics/modularity-information-hiding.md |
| 协作定义角色 | 已创建 | notes/_topics/interaction-responsibility-modeling.md |
| 协作发生映射 | 已创建 | notes/_topics/interaction-responsibility-modeling.md |
| 概述图是混合 | 已创建 | notes/_topics/interaction-responsibility-modeling.md |
| 时间图管约束 | 已创建 | notes/_topics/interaction-responsibility-modeling.md |
| 版本演化影响语义 | 已创建 | notes/_topics/modeling-purpose-notation.md |
| 用例关系曾分裂 | 已创建 | notes/_topics/modeling-purpose-notation.md |
| 扩展机制成集合 | 已创建 | notes/_topics/modeling-purpose-notation.md |
| 图上没画不等于没有 | 已复用 | notes/_topics/modeling-purpose-notation.md |
| 好设计胜过合法UML | 已复用 | notes/_topics/modeling-purpose-notation.md |
| 图到代码没有正式映射 | 已复用 | notes/_topics/model-implementation-separation.md |
| UML之外的图照样用 | 已复用 | notes/_topics/modeling-purpose-notation.md |
| 先学类图和序列图 | 已复用 | notes/_topics/modeling-purpose-notation.md |
| 形式规格证明不了需求 | 已复用 | notes/_topics/modeling-purpose-notation.md |
| 警惕伪迭代开发 | 已复用 | notes/_topics/iterative-process-tailoring.md |
| 只有可运行软件证明进度 | 已复用 | notes/_topics/iterative-process-tailoring.md |
| 返工靠测试重构集成 | 已复用 | notes/_topics/iterative-process-tailoring.md |
| 固定价格可变范围 | 已复用 | notes/_topics/iterative-process-tailoring.md |
| 少仪式是敏捷的结果 | 已复用 | notes/_topics/iterative-process-tailoring.md |
| RUP是需裁剪的框架 | 已复用 | notes/_topics/iterative-process-tailoring.md |
| 模式要讲清为什么 | 已复用 | notes/_topics/gof-design-patterns.md |
| 迭代回顾列三栏 | 已复用 | notes/_topics/iterative-process-tailoring.md |
| 全面是可理解性的敌人 | 已复用 | notes/_topics/technical-communication.md |
| 用工具图探索遗留代码 | 已复用 | notes/_topics/technical-communication.md |
| 多值性质默认无序唯一 | 已复用 | notes/_topics/static-structure-modeling.md |
| 别把裸集合交出去 | 已复用 | notes/_topics/modularity-information-hiding.md |
| 存取器泛滥说明行为放错 | 已复用 | notes/_topics/modularity-information-hiding.md |
| 操作是声明方法是实现 | 已复用 | notes/_topics/interface-design-dispatch.md |
| 子类型化不等于子类化 | 已复用 | notes/_topics/inheritance-composition.md |
| 表示层只依赖领域层 | 已复用 | notes/_topics/layered-architecture-ports.md |
| 依赖图交给工具生成 | 已复用 | notes/_topics/component-cohesion-coupling.md |
| 约束优先用自然语言 | 已复用 | notes/_topics/static-structure-modeling.md |
| 子类不能加强前置条件 | 已复用 | notes/_topics/design-by-contract.md |
| 返回箭头只在有用时画 | 已复用 | notes/_topics/interaction-responsibility-modeling.md |
| 按问题选行为图 | 已复用 | notes/_topics/interaction-responsibility-modeling.md |
| 责任清单过长要拆类 | 已复用 | notes/_topics/interaction-responsibility-modeling.md |
| 小对象小方法是范式转移 | 已复用 | notes/_topics/interaction-responsibility-modeling.md |
| 用时态关键词记历史 | 已复用 | notes/_topics/static-structure-modeling.md |
| 用门面收窄包接口 | 已复用 | notes/_topics/modularity-information-hiding.md |
| 按变化和复用分包 | 已复用 | notes/_topics/component-cohesion-coupling.md |
| 稳定的包应更抽象 | 已复用 | notes/_topics/component-cohesion-coupling.md |
| 分层与主题两种划分 | 已复用 | notes/_topics/layered-architecture-ports.md |
| 执行者是角色不是人 | 已复用 | notes/_topics/use-cases-requirements.md |
| 先头脑风暴扩展条件 | 已复用 | notes/_topics/use-cases-requirements.md |
| 别把用例功能分解 | 已复用 | notes/_topics/use-cases-requirements.md |
| 用例细节随风险增减 | 已复用 | notes/_topics/use-cases-requirements.md |
| 同一事件的警戒须互斥 | 已复用 | notes/_topics/state-activity-modeling.md |
| 超状态收拢共享转换 | 已复用 | notes/_topics/state-activity-modeling.md |
| 状态图的三种实现 | 已复用 | notes/_topics/gof-design-patterns.md |
| 显式画出合并与结合 | 已复用 | notes/_topics/state-activity-modeling.md |
| 信号与超时竞赛 | 已复用 | notes/_topics/state-activity-modeling.md |
| 结合规格放宽同步 | 已复用 | notes/_topics/state-activity-modeling.md |
| 活动图的适用边界 | 已复用 | notes/_topics/state-activity-modeling.md |
| 组件过细会失控 | 已复用 | notes/_topics/component-cohesion-coupling.md |
| 蓝图偏离须评审 | 已复用 | notes/_topics/modeling-purpose-notation.md |
| 用例不对应内部类 | 已复用 | notes/_topics/use-cases-requirements.md |
| 概念模型不画实现细节 | 已复用 | notes/_topics/static-structure-modeling.md |
执行模式:light
33ed2d27984ced1a6e1da6742a14a53396593a0434c6a67cc9494bc2a6c7ec1f。每张现存卡有一个主要讲解位置及至少一处原书出处。实践候选筛选:done
保留与实际项目有关的建模任务,不新增没有对象或明确产出的图形练习。
从本书的主题进入跨书阅读,对照其他书籍的讲解。下方数量包含主题关联的全部卡片与书籍。
主题索引
把算法、职责与对象间通信分配清楚:责任链、命令、解释器、迭代器、中介者、备忘录、观察者、状态、策略、模板方法、访问者。
主题索引
比较建模语言作为草稿、蓝图或编程语言的不同用途,以及表示法规则、元模型与版本演化的边界。
主题索引
比较以函数、闭包、包或服务划定模块边界并隐藏实现细节的方法。
主题索引
比较分层、洋葱与六边形架构如何隔离核心业务逻辑与外部技术细节,以及各层职责与调用规则。
主题索引
比较以用户目标组织需求的用例写法、粒度分层与特性粒度的取舍。
主题索引
比较 REP、CCP、CRP 的组件聚合张力,以及无依赖环、稳定依赖、稳定抽象原则与 I/A 指标对组件耦合的度量。
主题索引
比较面向不同受众的技术写作、演示与架构图方法:循序渐进的讲解、文档与幻灯片的取舍,以及让图表达连接与语义。
主题索引
比较用序列图、通信图、CRC 等描述对象协作与分配职责的方法。
主题索引
比较状态机与活动图在表达事件响应、并发、流程与责任划分上的用法。
主题索引
比较迭代与预测式开发、时间盒与过程裁剪在不同需求稳定性下的适用性。
主题索引
比较逻辑模型与物理实现、值与变量、派生视图与存储结构之间的边界。
主题索引
比较类、属性、关联、聚合与组合、值对象等静态结构的建模语义与取舍。
主题索引
比较接口粒度、隐式/显式实现、接口值表示与动态分派的取舍。
主题索引
模式之间的关系与意图对比、组合用法,以及模式在框架、语言与重构中的适用边界。
主题索引
比较类继承、原型继承、函数化构造与组合在代码复用上的取舍。
主题索引
比较前置条件、后置条件、不变式在划分调用方与实现方责任上的作用,以及检查开销和与测试的分工。