CS FundamentalsHardProduct-company placement

A web API's documentation says nothing about the order of items in a JSON list, which happened to be sorted by id. After an internal change returns them in a different order, several client apps break. Which principle describes this?

  1. A. Postel's law
  2. B. Conway's law
  3. C. Brooks' law
  4. D. Hyrum's law: with enough users, every observable behaviour of an interface will be depended on by someone

Correct answer: D. Hyrum's law: with enough users, every observable behaviour of an interface will be depended on by someone

Hyrum's law says clients rely on whatever they can observe, documented or not, so even 'free' changes can break them. Mitigations include explicitly randomising or documenting order and contract tests.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic