Replacing an Implementation Behind an Interface

An implementation can change independently when the stable inputs, outputs, failure outcomes, and observable effects of its interface survive.

Source
Anbloq
Language
English
Created
Updated
Chapters
2
Reading time
1 min
In this article2 chapters
  1. Trace a lookup change
  2. Check older uses directly

Trace a lookup change

A scan and an index can both return the first record for an ID. A newly built index that keeps the last duplicate changes the result. See two-pass indexing for where duplicate policy enters.

Check older uses directly

Keep tests for a unique match, a duplicate, and an absent key if all can occur. Function postconditions help specify what the new version has to preserve.[1]

References

  1. Python Software Foundation, Python Tutorial: Classes ↩