知识卡片

普通读书笔记卡 · 1841.h.1.a.1.a.3.c

算法共变要求一致

理解等级:中级

当两端必须使用同一算法得到相容结果时,算法细节成为共享约束。任一方改变算法都可能破坏协作。应识别哪些细节是契约组成部分,并避免把它们隐藏在独立实现中;不能因两边测试各自通过,就推断跨端一致。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • Evolutionary Architecture Topologies · 查看原书依据

      A common case for this type of connascence occurs when a developer defines a security hashing algorithm that must run on both the server and client and produce identical results to authenticate the user. Obviously, this represents a high form of coupling: if either algorithm changes any details, the handshake will no longer work.

    参考来源

    - 位置:《Building Evolutionary Architectures Automated Software Governance, 2nd Edition》第05章《Evolutionary Architecture Topologies》(来源项目:a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Building Evolutionary Architectures Automated Software Governance, 2nd Edition/_epub-src/OEBPS/ch05.html;段落定位:A common case for this type of connascence occurs) - 结论依据:原文对“算法共变要求一致”的定义或案例,支撑“当两端必须使用同一算法得到相容结果时,算法细节成为共享约束”的归纳。据其上下文,任一方改变算法都可能破坏协作。 - 原始内容:A common case for this type of connascence occurs when a developer defines a security hashing algorithm that must run on both the server and client and produce identical results to authenticate the user. Obviously, this represents a high form of coupling: if either algorithm changes any details, the handshake will no longer work.