知识卡片
统一语言反映逻辑复杂度
复杂业务逻辑通常包含相互作用的规则、不变量和算法;简单逻辑主要围绕输入验证。统一语言若主要描述CRUD,和描述复杂生命周期、规则的语言相比,往往提示较低复杂度。这个判断可帮助选择模式,也能反查对子域类型的假设,避免把业务战略重要性直接等同于技术复杂性。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 设计启发式 · 查看原书依据
In general, complex business logic includes complicated business rules, invariants, and algorithms. A simple approach mainly revolves around validating the inputs. Another heuristic for evaluating complexity concerns the complexity of the ubiquitous language itself. Is it mainly describing CRUD operations, or is it describing more complicated business processes and rules? Deciding on the business logic
参考来源
- 位置:《Learning Domain-Driven Design》第10章《设计启发式》(来源项目:book-sources;源文件:extracted/Learning Domain-Driven Design/_epub-src/OEBPS/ch10.html)
- 结论依据:原文围绕本卡所述机制给出定义、适用条件及相关取舍,以下摘录为直接依据。
- 原始内容:In general, complex business logic includes complicated business rules, invariants, and algorithms. A simple approach mainly revolves around validating the inputs. Another heuristic for evaluating complexity concerns the complexity of the ubiquitous language itself. Is it mainly describing CRUD operations, or is it describing more complicated business processes and rules? Deciding on the business logic