知识卡片
领域提炼技术按改造力度选择
原书把本章后续方法按对设计的改动强度排列,而非规定必须逐项执行的时间顺序:
- 领域愿景声明、突出核心:主要帮助沟通和决策,几乎不改模型。
- 分离通用子域、封装连贯机制:移开干扰,让[[核心域应小而集中高水平设计]]更清楚。
- 分离核心:重排代码,使核心在结构上可见。
- 抽象核心:提炼最根本的概念与关系,需大幅重组和重构。
这些技术越往后需要越大投入;作者把持续提炼的整体效果与速度、敏捷性、执行精度联系起来,没有逐项量化收益。当前小节是导航;每项如何做、是否适合具体项目,须按后文和实际约束判断。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 原书第15章|An Escalation of Distillations · 查看原书依据
And most ambitious is the ABSTRACT CORE, which expresses the most fundamental concepts and relationships in a pure form (and requires extensive reorganizing and refactoring of the model).
参考来源
- 位置:《Domain-Driven Design: Tackling Complexity in the Heart of Software》第118章《An Escalation of Distillations》(源文件:_epub-src/0321125215_ch15lev1sec2.html;单元01)
- 结论依据:原文说明各技术可近乎任意顺序应用,但对设计的修改力度和所需投入逐级增加;速度、敏捷性、精度是持续提炼整体产生的资产,不是每项收益逐级增加的保证。
- 原始内容:The various distillation techniques that make up the rest of this chapter can be applied in almost any order, but there is a range in how radically they modify the design. A simple DOMAIN VISION STATEMENT communicates the basic concepts and their value with a minimum investment. The HIGHLIGHTED CORE can improve communication and help guide decision making—and still requires little or no modification to the design. More aggressive refactoring and repackaging explicitly separate GENERIC SUBDOMAINS, which can then be dealt with individually. COHESIVE MECHANISMS can be encapsulated with versatile, communicative, and supple design. Removing these distractions disentangles the CORE. Repackaging a SEGREGATED CORE makes the CORE directly visible, even in the code, and facilitates future work on the CORE model. And most ambitious is the ABSTRACT CORE, which expresses the most fundamental concepts and relationships in a pure form (and requires extensive reorganizing and refactoring of the model). Each of these techniques requires a successively greater commitment, but a knife gets sharper as its blade is ground finer. Successive distillation of a domain model produces an asset that gives the project speed, agility, and precision of execution.
- 转录说明:原 EPUB 的异常破折号编码 `` 规范为 `—`,强调标签边界造成的术语前空格已规范转录;所引六段在原文中连续。