此卡片不在当前主题的阅读序列中,可返回主题继续阅读。
知识卡片
知识丰富模型不止数据结构
知识丰富的领域模型不只列出对象有哪些字段和关联,还让相关对象表达领域行为并约束业务规则。这样,模型能参与解决问题,而非仅作为存放数据的结构。检查模型时,可问:面对具体业务场景,哪些对象负责作出判断、保证规则成立?如果答案只能在模型外部找到,现有对象结构可能尚未表达关键领域知识。参见 [[领域模型是选择性抽象]]。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 原书第01章|Ingredients of Effective Modeling · 查看原书依据
The objects had behavior and enforced rules. The model wasn't just a data schema; it was integral to solving a complex problem. It captured knowledge of various kinds.
参考来源
- 位置:《Domain-Driven Design: Tackling Complexity in the Heart of Software》第11章《原书第01章|Ingredients of Effective Modeling》(源文件:_epub-src/0321125215_ch01lev1sec1.html)
- 结论依据:原文明确说对象具有行为且执行规则,并指出模型不仅是数据模式,还参与解决复杂问题;末句的检查问题是据此提出的建模判断,不是原书的实测结论。
- 原始内容:The objects had behavior and enforced rules. The model wasn't just a data schema; it was integral to solving a complex problem. It captured knowledge of various kinds.