知识卡片
主序距离联合看结构
主序距离D=|A+I−1|联合抽象度A与不稳定度I,靠近A+I=1的组件较平衡。低抽象且低不稳定的组件进入痛苦区:具体实现被广泛依赖,难改;高抽象且高不稳定的组件进入无用区:抽象难以使用。它是诊断线索,不能独自证明系统可拆或必须重写。
相关:[[不稳定度关注外部牵动]]。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 选择架构分解方法 · 查看原书依据
Components that fall too far into the upper-right corner enter into what architects call the zone of uselessness: code that is too abstract becomes difficult to use. Conversely, code that falls into the lower-left corner enter the zone of pain: code with too much implementation and not enough abstraction becomes brittle and hard to maintain, illustrated in Figure 4-4.
参考来源
- 位置:《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)
- 结论依据:原文的定义、比较或案例支持“主序距离D=|A+I−1|联合抽象度A与不稳定度I,靠近A+I=1的组件较平衡”;正文据此解释其用途与适用边界。
- 原始内容:Components that fall too far into the upper-right corner enter into what architects call the zone of uselessness: code that is too abstract becomes difficult to use. Conversely, code that falls into the lower-left corner enter the zone of pain: code with too much implementation and not enough abstraction becomes brittle and hard to maintain, illustrated in Figure 4-4.