知识卡片
领域对象与技术职责隔离
解决业务问题的领域部分可能只占系统一小块,却承载不成比例的重要性。若领域对象混在系统其他功能中,团队难以把模型元素看成一个整体,还可能混淆领域概念与软件技术概念,甚至看不见领域本身。隔离领域对象,是为了让团队能清楚观察和讨论领域模型。本段只提出隔离目标;具体分层方式需结合后续设计。参见 [[模型驱动设计兼顾分析与实现]]。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Chapter Four. Isolating the Domain · 查看原书依据
The part of the software that specifically solves problems from the domain usually constitutes only a small portion of the entire software system, although its importance is disproportionate to its size. To apply our best thinking, we need to be able to look at the elements of our model and see them as a system. We must not be forced to pick them out of a much larger mix of objects, like trying to identify constellations in the night sky. We need to decouple the domain objects from other functions of the system, so we can avoid confusing the domain concepts with other concepts related only to software technology or losing sight of the domain altogether in the mass of the system.