知识卡片

普通读书笔记卡 · 1971.o.3.a.1.b.1.a.3

规格涵盖识别规则收紧

理解等级:高级

规格涵盖(subsumption)比较两条规则的严格程度:若任何满足新规格的候选都必满足旧规格,记为 new.subsumes(old) = true,即“新 ⇒ 旧”。原书的装箱教学例子:旧要求通风,新要求通风且防爆,则新涵盖旧;反向不成立,见图10.15。

这与检查现有库存中哪些容器不再合格不同。库存检查只能报告当前不合格的桶;即使某种化学品暂未入库、或现有桶已满足更严要求,业务仍可能需要知道其规则本身已收紧。规格比较直接回答这个问题。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    参考来源

    - 位置:《Domain-Driven Design: Tackling Complexity in the Heart of Software》第81章《A Declarative Style of Design》(源文件:_epub-src/0321125215_ch10lev1sec8.html;单元04) - 结论依据:原文区分库存验证与化学品规则变更报告,定义新规格满足时旧规格也满足的涵盖关系;图10.15给出通风与通风且防爆的方向。 - 原始内容:But what they asked for was a list of chemicals whose handling has become more stringent. Perhaps there are none in-house right now, or perhaps they just happened to be packed into a more stringent container. In either case, the report just described would not list them.