← 返回刚才阅读的位置

知识卡片

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

分开建模提高未来合并成本

理解等级:高级

分开发展能减少当前协作和妥协,但两个模型长期独立演化后,未来若真的需要集成,通常必须增加翻译层,且可能复杂。因此“分开发展”不是零成本的可逆开关。

决策应比较现在同步的确定成本与未来接入的可能成本;若当前没有不可或缺的交互,让小范围模型先独立,往往比为假想需求预付全面集成成本更合理。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • 原书第14章|Separate Ways · 查看原书依据

      Taking SEPARATE WAYS forecloses some options. Although continuous refactoring can eventually undo any decision, it is hard to merge models that have developed in complete isolation. If integration turns out to be needed after all, translation layers will be necessary and may be complex. Of course, this is something you will face anyway.

    参考来源

    - 位置:《Domain-Driven Design: Tackling Complexity in the Heart of Software》第110章《Separate Ways》(源文件:_epub-src/0321125215_ch14lev1sec9.html;单元01) - 结论依据:原文明确独立演化的模型难以合并,后续需要的翻译层可能复杂。 - 原始内容:Taking SEPARATE WAYS forecloses some options. Although continuous refactoring can eventually undo any decision, it is hard to merge models that have developed in complete isolation. If integration turns out to be needed after all, translation layers will be necessary and may be complex. Of course, this is something you will face anyway.