← 返回刚才阅读的位置

知识卡片

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

共同语言贯穿交付媒介

理解等级:中级

基于领域模型的共同语言,由模型中的概念、术语及其关系构成。要让它真正连接业务讨论和软件实现,同一套含义应贯穿不同媒介:

  • 书面文档、随手图和日常谈话用于解释领域问题。
  • 代码与测试也应表达相同的概念,便于从讨论追到行为。

因此,仅画一张 UML 图而其他交流与实现继续各说各话,模型仍难成为共同语言。参见 [[团队共享领域模型]]。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • Chapter Two. Communication and the Use of Language · 查看原书依据

      To make most effective use of a model, it needs to pervade every medium of communication. It increases the utility of written text documents, as well as the informal diagrams and casual conversation reemphasized in Agile processes. It improves communication through the code itself and through the tests for that code.

    参考来源

    - 位置:《Domain-Driven Design: Tackling Complexity in the Heart of Software》第16章《Chapter Two. Communication and the Use of Language》(源文件:_epub-src/0321125215_ch02.html) - 结论依据:原文先将模型的术语和关系视为项目语言的语义基础,再明确要求模型进入所有沟通媒介,列举文档、非正式图、谈话、代码和测试,并否定只限于 UML 图;末句是据此概括的失败情形。 - 原始内容:The model is a set of concepts built up in the heads of people on the project, with terms and relationships that reflect domain insight. ... To make most effective use of a model, it needs to pervade every medium of communication. It increases the utility of written text documents, as well as the informal diagrams and casual conversation reemphasized in Agile processes. It improves communication through the code itself and through the tests for that code.