知识卡片
Smart UI扩展受规则重复限制
Smart UI 可让简单功能很快交付,各界面的改动也较局部;但同一业务规则会在多个操作里重复,跨应用整合主要依赖数据库。随着行为变复杂,缺少业务抽象会限制重构和复用。若日后转向模型驱动设计,往往要替换整个应用;仅预先选用通用语言并不会获得领域模型的可迁移性。复杂项目应从早期迭代就隔离领域层。参见[[Smart UI将规则放进界面]]、[[领域层承载模型实现]]。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 原书第04章|The Smart UI "Anti-Pattern" · 查看原书依据
Business rules have to be duplicated in each operation to which they apply. Rapid prototyping and iteration reach a natural limit because the lack of abstraction limits refactoring options.
参考来源
- 位置:《Domain-Driven Design: Tackling Complexity in the Heart of Software》第32章《原书第04章|The Smart UI "Anti-Pattern"》(源文件:_epub-src/0321125215_ch04lev1sec3.html)
- 结论依据:原文将简单功能的即时生产率与规则重复、整合困难、缺少抽象相对照,并明确指出迁移设计方式通常要替换整个应用,通用语言本身不能改变该结构限制。
- 原始内容:Business rules have to be duplicated in each operation to which they apply. Rapid prototyping and iteration reach a natural limit because the lack of abstraction limits refactoring options. ... Just using a flexible language doesn't create a flexible system, but it may well produce an expensive one.