Keeping a Public Interface Focused

A small interface makes it easier for callers to understand provided guarantees and for implementations to change behind them.

Source
Anbloq
Language
English
Created
Updated
Chapters
2
Reading time
1 min
In this article2 chapters
  1. Trace a lookup result
  2. Give extensions a deliberate home

Trace a lookup result

A consumer of catalogue entries may need identifiers, titles, and public links. Exposing every stored property creates more ways for callers to rely on implementation details. See data minimization.

Give extensions a deliberate home

If another consumer needs more metadata, add an explicit field or separate endpoint with its own contract. Function interface design states that promise.[1]

References

  1. David L. Parnas, On the Criteria to Be Used in Decomposing Systems into Modules, CMU-CS-71-101 ↩