← 返回刚才阅读的位置

知识卡片

普通读书笔记卡 · 5387

复用要核算全部成本

理解等级:高级

当收益超过成本时,应复用成熟库与框架,而不是重新实现常见能力。维护和测试经验能减少自己的工作,但还应计入集成复杂度、架构约束、不确定性和性能开销。复用不是只比较几行代码或采购价格;在服务内遵守清晰职责与简单设计,也能避免一次引入把局部便利变成长期负担。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • 服务端架构 · 查看原书依据

      Do not reinvent the wheel. Borrow libraries and frameworks instead of writing code from scratch when the benefits outweigh the costs. Libraries and frameworks are typically more stable, are tested, and provide a maintained implementation, which means you do less work.

    参考来源

    - 位置:《Software Architecture and Decision-Making》第11章《Server Architectures》(来源项目:book-sources;源文件:extracted/Software Architecture and Decision-Making Leveraging Leadership, Technology, and Product Management to Build Great Products… (Srinath Perera)/_epub-src/ch11.xhtml) - 结论依据:摘录说明当收益超过成本时,应复用成熟库与框架,而不是重新实现常见能力。其余条件结合本章相邻例子与取舍说明,数字示例不作当前性能承诺。 - 原始内容:Do not reinvent the wheel. Borrow libraries and frameworks instead of writing code from scratch when the benefits outweigh the costs. Libraries and frameworks are typically more stable, are tested, and provide a maintained implementation, which means you do less work.