知识卡片
混合范式须共享同一模型
把规则引擎接入对象系统时,规则与对象仍需表达同一套领域概念。若对象只存静态数据、规则变成独立小程序,两端就失去模型联系。应让规则名、对象名及二者关系在两种实现环境中一致,并在团队的通用语言里持续使用(参见[[通用语言以模型为骨架]]);工具若无法清晰表达这些关系,其额外范式可能得不偿失。原书这里讨论的是设计风险,不是某款规则引擎的实测评价。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 原书第05章|Modeling Paradigms · 查看原书依据
The most effective tool for holding the parts together is a robust UBIQUITOUS LANGUAGE that underlies the whole heterogeneous model.
参考来源
- 位置:《Domain-Driven Design: Tackling Complexity in the Heart of Software》第42章《原书第05章|Modeling Paradigms》(源文件:_epub-src/0321125215_ch05lev1sec6.html)
- 结论依据:原文以规则引擎为例,说明对象与规则断裂的结果,并要求两端共享模型、名称及通用语言;工具表达力不足时须重审选型。
- 原始内容:The team has to find a single model that can work with both implementation paradigms. ... With tight, clear relationships between the rules and the objects, the meaning of both pieces is retained. ... The most effective tool for holding the parts together is a robust UBIQUITOUS LANGUAGE that underlies the whole heterogeneous model.