知识卡片

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

多模型可优于万能模型

理解等级:中级

同一对象可以有多个各司其职的模型。验证冰箱能否通过厨房入口时,纸板表示底面积,卷尺验证高度,两个简单模型比完整三维复制更直接。模型是否有用应按它要解决的问题判断;跨语境定义不同并不自动构成错误,追求统一可能制造过度设计。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • 管理领域复杂度 · 查看原书依据

      So, we ended up with two models of the same fridge. Using two models, each optimized for its specific task, reflects the DDD approach to modeling business domains. Each model has its strict bounded context: the cardboard verifying that the refrigerator’s base can make it through the kitchen’s entry, and the tape measure verifying that

    参考来源

    - 位置:《Learning Domain-Driven Design》第3章《管理领域复杂度》(来源项目:book-sources;源文件:extracted/Learning Domain-Driven Design/_epub-src/OEBPS/ch03.html) - 结论依据:原文对该概念的定义、应用条件及相邻概念的比较支撑本卡解释。 - 原始内容:So, we ended up with two models of the same fridge. Using two models, each optimized for its specific task, reflects the DDD approach to modeling business domains. Each model has its strict bounded context: the cardboard verifying that the refrigerator’s base can make it through the kitchen’s entry, and the tape measure verifying that