知识卡片
指标阈值须结合问题领域
圈复杂度没有跨所有领域都合适的硬阈值。原书说业界常把低于10视为可接受,作者更偏好低于5,但算法本身复杂时仍需解释路径数。复核时应看高值源自领域逻辑还是函数职责混杂,再决定是否拆分;只把数值压低可能掩盖真实复杂性。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Measuring and Governing Architecture Characteristics · 查看原书依据
Specifically, it depends on the complexity of the problem domain.
参考来源
- 位置:《Fundamentals of Software Architecture》第08章《Measuring and Governing Architecture Characteristics》(源文件:`OEBPS/ch06.html`)
- 结论依据:原文讨论常见阈值、作者偏好及复杂领域例外。
- 原始内容:Specifically, it depends on the complexity of the problem domain.