知识卡片
形式体系适配局部领域规则
若领域的某个局部确实符合通用形式体系,如算术或谓词逻辑,可把该部分抽出,借其明确规则建立模型。这样可以减少含混的特殊约定,让领域专家与开发者更容易检验同一组规则。
适用前提是先确认领域关系符合该形式;形式体系只处理契合的片段,不应反过来强迫整个业务迁就数学结构。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 原书第13章|Prior Art · 查看原书依据
Likewise, when a common formalism, such as arithmetic or predicate logic, fits some part of a domain, you can factor that part out and adapt the rules of the formal system. This provides very tight and readily understood models.
参考来源
- 位置:《Domain-Driven Design: Tackling Complexity in the Heart of Software》第94章《Prior Art》(源文件:_epub-src/0321125215_ch13lev1sec3.html;单元01)
- 结论依据:原文明确举算术和谓词逻辑,要求其与某个领域部分相符后再抽出并调整形式系统的规则。
- 原始内容:Likewise, when a common formalism, such as arithmetic or predicate logic, fits some part of a domain, you can factor that part out and adapt the rules of the formal system. This provides very tight and readily understood models.