知识卡片
主序列距离提示结构失衡
主序列距离把[[抽象度与不稳定度描述结构位置]]合并成 D = |A + I - 1|。在原书的 A/I 坐标图中,A + I = 1 是理想化的平衡线;D 越大,离这条线越远。
原书把高抽象且高不稳定的一侧称为“无用区”,低抽象且低不稳定的一侧称为“痛苦区”。它们是提示进一步调查的模型区域,不是自动判错器;指标还需结合代码用途、变化频率与实际约束解释。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Modularity · 查看原书依据
The Distance metric imagines an ideal relationship between Abstractness and Instability; classes that fall near this idealized line exhibit a healthy mixture of these two competing concerns.
参考来源
- 位置:《Fundamentals of Software Architecture》第05章《Modularity》(源文件:`OEBPS/ch03.html`,Distance from the Main Sequence,公式3-5及图3-2至3-4)
- 结论依据:原文给出 D 公式、主序列和两区图示,随后的“指标局限”段强调所有代码级度量均需解释;最后的具体考量为应用推断。
- 原始内容:The Distance metric imagines an ideal relationship between Abstractness and Instability; classes that fall near this idealized line exhibit a healthy mixture of these two competing concerns.