知识卡片

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

解释模型不驱动实现

理解等级:中级

解释模型是帮助团队学习领域的另一种视图,可纳入实现模型刻意省略的背景,并采用更易理解的图像、比喻或文字。它不必是对象模型,也不要求与设计中的类和关系逐项对应;否则容易被误当作第二套实现模型。原书货运例子中,路线类图与装卸、在途和港口存放的示意图互补,后者用于解释业务过程,并非代码结构。参见 [[图示聚焦关键概念]]。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    参考来源

    - 位置:《Domain-Driven Design: Tackling Complexity in the Heart of Software》第21章《原书第02章|Explanatory Models》(源文件:_epub-src/0321125215_ch02lev1sec5.html;图2.4、2.5) - 结论依据:原文区分驱动设计的精简模型和教育用途的解释模型,后者可补背景、采用不同表达且不宜让读者误认与软件设计完全对应;原书两图分别展示路线类关系与货物运作过程。 - 原始内容:An explanatory model can include aspects of the domain that provide context that clarifies the more narrowly scoped model. ... There is no need for explanatory models to be object models, and it is generally best if they are not. ... This does not correspond in detail with the class diagram, but it reinforces key points from the domain.