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?
- A. Postel's law
- B. Conway's law
- C. Brooks' law
- 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.
Practise more Software Engineering, Git and Cloud Basics questionsSoftware Engineering, Git and Cloud Basics: notes and key points
More Software Engineering, Git and Cloud Basics questions
- A dependency-injection container registers ReportCache as a singleton, and ReportCache takes a DbSession in its constructor; DbSession is…
- Counting each if, loop header, and/or operator, conditional expression and except clause as one decision (V(G) = decisions + 1), what is…
- A function has three if-else statements in sequence, followed by a loop that runs either 0 or 1 time (decided by the input) and whose body…
- For a function of two independent bounded inputs, match each boundary-value technique with the number of test cases it needs. P. Normal…
- A decision table has three yes/no conditions and four rules: R1: C1 = N (C2, C3 don't care) → A; R2: C1 = Y, C2 = N (C3 don't care) → B…
- A state machine has transitions a: S1→S2, b: S2→S3, c: S3→S1 and d: S2→S1. How many test items does 0-switch (every transition) coverage…