知识卡片
成熟领域模型不该被称作天真隐喻
有些项目找不到合适的系统隐喻,便把领域模型本身称为“天真隐喻”。原书反对:经过多轮专家协作和工作系统检验的成熟领域模型,既不是天真的类比,也不需换名才能发挥协调作用。
当项目没有贴切隐喻时,通用语言已可承担共同理解的功能。系统隐喻或其他大型结构只是适合时追加的辅助结构,不是所有项目的必备项。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 原书第16章|System Metaphor · 查看原书依据
One trouble with this term is that a mature domain model is anything but naive. In fact, "payroll processing is like an assembly line" is likely a much more naive view than a model that is the product of many iterations of knowledge crunching with domain experts, and that has been proven by being tightly woven into the implementation of a working application. The term naive metaphor should be retired. SYSTEM METAPHORS are not useful on all projects. Large-scale structure in general is not essential. In the 12 practices of Extreme Programming, the role of a SYSTEM METAPHOR could be fulfilled by a UBIQUITOUS LANGUAGE. Projects should augment that LANGUAGE with SYSTEM METAPHORS or other large-scale structures when they find one that fits well.