← 返回刚才阅读的位置

知识卡片

普通读书笔记卡 · 1971.o.1.b.1.a.2.a.3.f.3

成熟领域模型不该被称作天真隐喻

理解等级:高级

有些项目找不到合适的系统隐喻,便把领域模型本身称为“天真隐喻”。原书反对:经过多轮专家协作和工作系统检验的成熟领域模型,既不是天真的类比,也不需换名才能发挥协调作用。

当项目没有贴切隐喻时,通用语言已可承担共同理解的功能。系统隐喻或其他大型结构只是适合时追加的辅助结构,不是所有项目的必备项。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 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.

    参考来源

    - 位置:《Domain-Driven Design: Tackling Complexity in the Heart of Software》第129章《System Metaphor》(源文件:_epub-src/0321125215_ch16lev1sec2.html;单元01) - 结论依据:原文明确建议弃用“天真隐喻”说法,并指出通用语言可承担XP实践中的协作功能,隐喻仅在适配时补充。 - 原始内容: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. - 转录说明:原 EPUB 两段相邻,未省去正文;强调标签边界造成的 `S YSTEM` 等断词及术语前空格已规范转录。