知识卡片
入向与出向耦合
入向耦合Ca统计有多少代码构件引用当前构件;出向耦合Ce统计当前构件依赖多少其他构件。拆单体时,一个被多处复用的Address类不只是“可直接拿走”的工具:其入向连接揭示拆分影响范围,出向连接揭示需一同处理的依赖。度量可针对组件、类或函数,比较前要统一粒度。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 选择架构分解方法 · 查看原书依据
In 1979, Edward Yourdon and Larry Constantine published Structured Design: Fundamentals of a Discipline of Computer Program and Systems Design (Yourdon), defining many core concepts, including the metrics afferent and efferent coupling. Afferent coupling measures the number of incoming connections to a code artifact (component, class, function, and so on). Efferent coupling measures the outgoing connections to other code artifacts.
参考来源
- 位置:《Software Architecture: The Hard Parts》第4章《选择架构分解方法》(来源项目:book-sources;源文件:extracted/Software Architecture The Hard Parts Modern Trade-Off Analyses for Distributed Architectures (Neal Ford, Mark Richards, Pramod Sadalage etc.)/_epub-src/OEBPS/ch04.xhtml)
- 结论依据:原文的定义、比较或案例支持“入向耦合Ca统计有多少代码构件引用当前构件;出向耦合Ce统计当前构件依赖多少其他构件”;正文据此解释其用途与适用边界。
- 原始内容:In 1979, Edward Yourdon and Larry Constantine published Structured Design: Fundamentals of a Discipline of Computer Program and Systems Design (Yourdon), defining many core concepts, including the metrics afferent and efferent coupling. Afferent coupling measures the number of incoming connections to a code artifact (component, class, function, and so on). Efferent coupling measures the outgoing connections to other code artifacts.