知识卡片
通用子域隔离支撑而不稀释核心
通用子域是系统需要、却不承载本项目专门知识的领域部分,例如组织图、通用会计或时区处理。它们可能关键且必须正确,但与[[核心域应小而集中高水平设计]]的区别在于不构成项目差异化动机。
原书建议识别内部连贯的通用子域,抽出通用模型放入独立模块,避免混入行业专属概念。分离后仍要维护,但通常降低其开发优先级,并考虑现成方案或已发布模型;让核心人才多积累核心领域知识。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 原书第15章|Generic Subdomains · 查看原书依据
Some parts of the model add complexity without capturing or communicating specialized knowledge. Anything extraneous makes the CORE DOMAIN harder to discern and understand. The model clogs up with general principles everyone knows or details that belong to specialties which are not your primary focus but play a supporting role. Yet, however generic, these other elements are essential to the functioning of the system and the full expression of the model.
参考来源
- 位置:《Domain-Driven Design: Tackling Complexity in the Heart of Software》第119章《Generic Subdomains》(源文件:_epub-src/0321125215_ch15lev1sec3.html;单元01)
- 结论依据:原文要求把不构成项目动机的连贯子域抽成独立模块、保持通用,并将开发优先级放在核心域之后。
- 原始内容:Some parts of the model add complexity without capturing or communicating specialized knowledge. Anything extraneous makes the CORE DOMAIN harder to discern and understand. The model clogs up with general principles everyone knows or details that belong to specialties which are not your primary focus but play a supporting role. Yet, however generic, these other elements are essential to the functioning of the system and the full expression of the model.