← 返回刚才阅读的位置

知识卡片

普通读书笔记卡 · 4918.b.2.a.2.b

去重关注知识的一致性

理解等级:中级

DRY关注同一项知识是否在多个地方独立维护。两端移动客户端重复同一核心业务规则,会使修改和测试出现分歧;共享实现可能有价值,但应比较后端集中与客户端共用库等不同边界。仅看代码相似就抽取,未必对应相同知识。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • The Architecture Advice Process · 查看原书依据

      This was the real DRY (don’t repeat yourself) principle: the issue here was duplication of knowledge, not simply of code. These were key business rules, so having to code and test them twice was opening the teams up to undue risk. The best explanation of this I’ve ever found is in Mathias Verraes’s blog post

    参考来源

    - 位置:《Facilitating Software Architecture》第04章《The Architecture Advice Process》(来源项目 /Users/wangyi/claudecodeProject/bookBase/book-sources;源文件:extracted/Facilitating Software Architecture/_epub-src/OEBPS/ch04.html) - 结论依据:脚注明确不是简单代码重复,而是key business rules的知识重复;主例比较多种实现位置。 - 原始内容:This was the real DRY (don’t repeat yourself) principle: the issue here was duplication of knowledge, not simply of code. These were key business rules, so having to code and test them twice was opening the teams up to undue risk. The best explanation of this I’ve ever found is in Mathias Verraes’s blog post