此卡片不在当前主题的阅读序列中,可返回主题继续阅读。
知识卡片
入耦合与出耦合
入耦合描述有多少外部元素依赖某个代码制品,出耦合描述该制品依赖多少外部元素。两者共同帮助识别变化传播方向:出依赖多意味着容易受外部变化影响,入依赖多意味着修改自己可能影响更多调用者。数值只是结构线索,不能脱离职责直接判定质量。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
- · 入耦合与出耦合
原书出处 · 1 处
- Automating Architectural Governance · 查看原书依据
In 1979, Edward Yourdon and Larry Constantine published Structured Design: Fundamentals of a Discipline of Computer Program and Systems Design (Prentice-Hall), 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, etc.). Efferent coupling measures the outgoing connections to other code artifacts.
参考来源
- 位置:《Building Evolutionary Architectures Automated Software Governance, 2nd Edition》第04章《Automating Architectural Governance》(来源项目:a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Building Evolutionary Architectures Automated Software Governance, 2nd Edition/_epub-src/OEBPS/ch04.html;段落定位:Afferent coupling measures the number)
- 结论依据:原文对“入耦合与出耦合”的定义或案例,支撑“入耦合描述有多少外部元素依赖某个代码制品,出耦合描述该制品依赖多少外部元素”的归纳。据其上下文,两者共同帮助识别变化传播方向:出依赖多意味着容易受外部变化影响,入依赖多意味着修改自己可能影响更多调用者。
- 原始内容:In 1979, Edward Yourdon and Larry Constantine published Structured Design: Fundamentals of a Discipline of Computer Program and Systems Design (Prentice-Hall), 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, etc.). Efferent coupling measures the outgoing connections to other code artifacts.