知识卡片
延迟绑定把变化外部化
预先建立参数与可替换点,可让改变从源码阶段推迟到构建、部署或运行:构建选组件与参数,初始化读资源配置,运行时用发现、参数解释或多态等。开发者创建机制,管理员或用户后来使用,即变化外部化。晚绑定降低单次修改成本,但前期更复杂,只有总成本合适才值得。
相关:[[灵活机制需收回前期投资]]。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 可修改性 · 查看原书依据
Installing a mechanism so that someone else can make a change to the system without having to change any code is sometimes called externalizing the change. 8.3 Tactics-Based Questionnaire for Modifiability Based on the tactics described in Section 8.2, we can create a set of tactics-inspired questions, as presented in Table 8.2.
参考来源
- 位置:《Software Architecture in Practice, 4th Edition》第8章《可修改性》(来源项目:book-sources;源文件:extracted/Software Architecture in Practice, 4th Edition/_epub-src/ch08.html)
- 结论依据:原文的定义、机制或比较支持“预先建立参数与可替换点,可让改变从源码阶段推迟到构建、部署或运行:构建选组件与参数,初始化读资源配置,运行时用发现、参数解释或多态等”;正文保留其条件与取舍。
- 原始内容:Installing a mechanism so that someone else can make a change to the system without having to change any code is sometimes called externalizing the change. 8.3 Tactics-Based Questionnaire for Modifiability Based on the tactics described in Section 8.2, we can create a set of tactics-inspired questions, as presented in Table 8.2.