知识卡片
复用一致性也有协调成本
本章用cohesion描述同类能力在系统中一致复用,把DRY扩展到架构;这一用法侧重横向一致性,不应直接替换模块内部功能内聚的定义。强制所有服务调用共享配置或提炼小块功能,可能引入大量传递依赖和跨队协调。少量重复有时比复杂共享更便宜,灵活性和统一复用都须算代价。
相关:[[架构策略服从长期收益]]。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 理解系统设计与架构 · 查看原书依据
Usually, it is not worth doing this to reduce duplication slightly. I have done this and paid the price. With hindsight, I am now willing to live with some level of duplication and inconsistencies when fixing those results in significant complexity. The cure, sometimes, can be worse than the disease.
参考来源
- 位置:《Software Architecture and Decision-Making》第2章《理解系统设计与架构》(来源项目:book-sources;源文件:extracted/Software Architecture and Decision-Making Leveraging Leadership, Technology, and Product Management to Build Great Products… (Srinath Perera)/_epub-src/ch02.xhtml)
- 结论依据:原文的定义、比较或例子支持“本章用cohesion描述同类能力在系统中一致复用,把DRY扩展到架构;这一用法侧重横向一致性,不应直接替换模块内部功能内聚的定义”;正文据此说明用途和边界。
- 原始内容:Usually, it is not worth doing this to reduce duplication slightly. I have done this and paid the price. With hindsight, I am now willing to live with some level of duplication and inconsistencies when fixing those results in significant complexity. The cure, sometimes, can be worse than the disease.