← 返回刚才阅读的位置

知识卡片

普通读书笔记卡 · 5411.a

灵活机制需收回前期投资

理解等级:高级

可修改性有两笔成本:预先建立机制,以及每次借机制完成改变。直接改代码前期零机制成本,但每次需修改验证;生成器或自动适应则前期更贵、重复使用可能更省。应结合预计次数、机会成本与可等待时间比较总投入;频次不足时昂贵机制不划算,频繁硬改又可能积债。原文比较式方向未采用。

相关:[[修改计划先问四个问题]]。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • 可修改性 · 查看原书依据

      If fewer changes than expected come in, then an expensive modification mechanism may not be warranted. In addition, the cost of creating the modifiability mechanism could be applied elsewhere (opportunity cost)—in adding new functionality, in improving the performance, or even in non-software investments such as hiring or training.

    参考来源

    - 位置:《Software Architecture in Practice, 4th Edition》第8章《可修改性》(来源项目:book-sources;源文件:extracted/Software Architecture in Practice, 4th Edition/_epub-src/ch08.html) - 结论依据:原文的定义、机制或比较支持“可修改性有两笔成本:预先建立机制,以及每次借机制完成改变”;正文保留其条件与取舍。 - 原始内容:If fewer changes than expected come in, then an expensive modification mechanism may not be warranted. In addition, the cost of creating the modifiability mechanism could be applied elsewhere (opportunity cost)—in adding new functionality, in improving the performance, or even in non-software investments such as hiring or training.