知识卡片

普通读书笔记卡 · 4365.g.2

依赖与接口的双重视角

理解等级:中级

依赖是系统消费而无法控制排期与演进的外部能力,可能来自供应商,也可能来自同公司其他团队。接口是反方向:别人消费你的能力,你的改动会给消费者带来迁移成本。互相调用会同时具备两种责任,需要从双方影响审视变化。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • To Practice Architecture Is to Decide · 查看原书依据

      I like to think of dependencies as things your system interacts with that you do not control. This lack of control may be because this system is a service provided by a third party. Or it’s a platform that you run on (such as the container provided by a framework like Drupal, or a

    参考来源

    - 位置:《Facilitating Software Architecture》第02章《To Practice Architecture Is to Decide》(来源项目 /Users/wangyi/claudecodeProject/bookBase/book-sources;源文件:extracted/Facilitating Software Architecture/_epub-src/OEBPS/ch02.html) - 结论依据:原文以lack of control界定依赖,继而把interface定义为别人依赖你,指出多向关系的管理难度。 - 原始内容:I like to think of dependencies as things your system interacts with that you do not control. This lack of control may be because this system is a service provided by a third party. Or it’s a platform that you run on (such as the container provided by a framework like Drupal, or a