Module 6
Design for Change
What will change, how fast, and what should be easy to change?
If you only do one thing: Before your next request is estimated, write down the slowest-changing part you think it touches.
Last time
Two questions on Module 5: Map the Domain. Answer in your head, then check.
Parents see grades in an app that copies them from the gradebook each night. What do you find out before promising they’re current?
Three teams read the gradebook’s tables directly, and one breaks whenever a column changes. What would make that data a product for them?
Why this matters
Your product will change over time, and its parts change at different speeds. Learn which parts, how often, and at what cost. The slowest layer a request touches usually sets its cost of change, so the pain comes when fast parts are tied to slow ones. Once you can see which is which, you’ll estimate more accurately and have a case for the work that makes likely changes cheap. Module 4: Mind the Seams asked where the boundaries fall. For a system, David Parnas’s answer is to draw them around the decisions likely to change, so each change stays inside one part.
Slow isn’t the enemy, though. A school’s record of grades moves slowly on purpose, because every transcript depends on it. Each layer has its own right pace, which Stewart Brand calls pace layering: “Fast learns, slow remembers.” Data is often the slowest layer you own, because so much reads it, and the data a feature creates outlives the feature. Module 5: Map the Domain traced its copies, and each copy is one more place a change has to reach. Some slow layers you only half own, like your app on students’ phones. You can’t roll back a version they’ve installed the way you’d roll back a server. Every fix to the app’s own code waits on the app store’s review and on each student updating, and old versions keep calling your APIs, so the APIs must keep answering them. Retiring an old version saves your team the upkeep and hands the bill to students who can’t update, often those on the oldest or cheapest phones.
There’s a precise word for what makes a change costly: complexity. John Ousterhout uses it for anything in a system’s structure that makes it hard to understand and change, and names three symptoms. Change amplification is a simple change that needs edits in many places. Cognitive load is how much you must know to make a change safely. And with unknown unknowns, nobody can tell in advance what a change will touch. With those words, you can explain why a small request took a month without blaming anyone.
The short path
-
Stewart Brand, “Pace Layering: How Complex Systems Learn and Keep Learning”
Look for: Two points: slow layers control fast ones, and a layer forced to another’s pace ends badly, whichever way the push goes. One of his examples is the Soviet Union forcing a five-year-plan pace on commerce and art.
Why this source
- Why trust it
- An argument. It’s Brand’s own, built on the architect Frank Duffy’s shearing layers of a building and refined over the years since through feedback.
- What you’ll get
- Why each layer needs its own pace. Brand’s layers are a civilization’s, and this module borrows the idea for a product.
-
Coupling Is About a Change
Look for: The question to ask whenever someone says two parts are tightly coupled.
-
Check yourself
Look for: Why a change that looks small takes months, and when making the next one cheap is worth the wait.
Do
List your product’s layers (30 minutes). Take one product or journey you own and list its parts from fastest-changing to slowest: wording, screens, business rules, APIs, the data model, core systems of record, the contracts and laws it must meet. Guess roughly how often each changed in the last year. Then take the last request that ran long. Which layers did it touch, and which symptom of complexity showed?
For your decision log. Pick the slowest layer your team changes, and write how long you expect the next request that touches it to take, and how sure you are. You’ll know when it ships.
What a good one looks like
Try yours first. Judgment comes from trying, then calibrating against an example.
Journey: handing in homework.
Layers, fastest first, with a guess at how often each changed last year:
- Wording: about 30 times.
- Screens: 8 times or so.
- Rules: 4 times, for late penalties, resubmissions, and group projects.
- Gradebook API: once.
- Data model: once, for group projects.
- District student records: not at all.
- Contracts and privacy law: not at all.
Last long request: teachers asked for group projects in September and wanted them by October, and they shipped in February. It touched the screens, the rules, the gradebook API, and the data model, the slowest of the four. Two symptoms showed, change amplification and unknown unknowns: the gradebook, the plagiarism check, and parent emails each assumed one student to an assignment, and the team found each one late.
Decision log:
- Slowest layer: the data model.
- Next request: keeping both grades after a resubmission.
- Expect: four to six months, since group projects took five.
- Confidence: 50% for that range, because a changed grade may have to reach district records.
- Know by: the day it ships, which is May if work starts in December and the estimate holds.
What makes it good:
- It logs the slowest layer the team itself changes, rather than a law it can’t touch.
- Its symptoms come with evidence: three places that each assumed one student, found late.
- The estimate comes from the last request into the same layer, and the reason for its 50% names a slower layer this request might reach.
Optional: walk a likely change (15 minutes). Architects run an anticipated change across a design while it’s still cheap to change. Pick a change you expect next year, such as letting students take a course pass or fail, and trace what it would touch. Outside the 15 minutes, ask a tech lead: “If we did this, which parts would have to change?” If most would, what boundary would have contained it?
To bring to engineers
Bring the changes you expect in the next year, who’s asking for each, and how likely it is, so the design can make the likely ones cheap.
- Which of these layers is hardest to change, and why?
- Where in our system is change amplification worst?
- Given these changes, is the pattern you’re proposing earning its complexity, or would a plainer design do?
Check yourself
Answer in your head, then check.
Letting a student take two classes in the same period looks small on the screen. Why might it take months?
An engineer says the gradebook and the course calendar are tightly coupled. What do you ask?
Module 1: Know Who It’s For put a price on every week of waiting. This module asks you to spend weeks making likely changes cheap. When does each win?
Beyond this module. Your list stops at what you build and the contracts and laws it must meet. What slow layer lives in your customers’ heads?
Go deeper: the full path
Optional, and not counted in the time above.
If you read one: A Philosophy of Software Design. It gives you the words for why a feature that ships fast can make every later one slower.
-
Seeing Like a State, James C. Scott
Read the introduction, then chapter 1, “Nature and Space,” on the scientific forestry of eighteenth-century Prussia and Saxony, and chapter 10, “Conclusion.” It’s dense in places, so take your time as needed.
Why this source
- Why trust it
- An argument. Scott was a political scientist and anthropologist at Yale, and he builds his case from real schemes, from a planned capital city to collectivized farms.
- What you’ll get
- Why planners sure of one future build what can’t change, and four rules for doing better that apply to your own work: “Take small steps.” “Favor reversibility.” “Plan on surprises.” “Plan on human inventiveness.”
-
A Philosophy of Software Design, John Ousterhout
Read it whole. Chapters 2 and 3, on complexity and on tactical against strategic work, are the heart of it for this module.
Why this source
- Why trust it
- An argument. Ousterhout taught a software design course at Stanford, and the book grew out of it. It’s one designer’s view, made from experience.
- What you’ll get
- The three symptoms of complexity in full, and the difference between tactical work, which gets this feature out, and strategic work, which keeps the next one cheap. That difference is the case you can make for engineering time.
-
On the Criteria To Be Used in Decomposing Systems into Modules, David Parnas (Communications of the ACM, 1972)
It’s short and dense, so read it slowly. The argument is in his comparison of two ways to split the same program, and you can skim the technical detail.
Why this source
- Why trust it
- An argument. It’s the classic case for information hiding, keeping each decision likely to change inside one module, and he makes it from a single worked example.
- What you’ll get
- Why a system’s boundaries go around the decisions likely to change. Engineers can draw them only as well as they know what’s coming, and often you’re the one who knows.
-
Yes Minister, written by Antony Jay and Jonathan Lynn (BBC, 1980 to 1984)
Watch series 1, episode 4, “Big Brother.” A new minister wants safeguards on a national database. His predecessor drafted the same ones. He tells the new minister how the permanent secretary stalled them, one polite stage at a time, until an election took the predecessor out of office and the department wiped the slate clean.
Why this source
- What you’ll get
- Pace layers in a government department. Ministers come and go while the civil service stays, so a change that has to pass through it slows to its speed.
Answers
Last time
- What current needs to mean: how fresh the data must be, and what breaks if it’s a day old. Freshness has a price, so promise only what parents need.
- An owner, and a promise they can count on: how fresh it is, and which changes they hear about first.
Check yourself
- The slowest layer it touches sets the cost. If the timetable’s data model assumes one class a period, the change reaches that model and everything that reads it, and it moves at that layer’s pace.
- For which change? Parts are coupled only with respect to a particular change, so name the one you expect and ask whether it would make both move.
- Price both. When a change is likely and soon, making it cheap pays for itself in the weeks it saves later. When it’s a guess, ship the value now, and count the rework in the price of the decision.
- Their habits, and what they’ve learned to do on your screens (and those of other apps). A redesign that’s quick for you can be slow for them. After your next change to a screen people use every day, read your support queue for a week.
Why these sources
Stewart Brand, “Pace Layering: How Complex Systems Learn and Keep Learning”
- Why trust it
- An argument. It’s Brand’s own, built on the architect Frank Duffy’s shearing layers of a building and refined over the years since through feedback.
- What you’ll get
- Why each layer needs its own pace. Brand’s layers are a civilization’s, and this module borrows the idea for a product.
Seeing Like a State, James C. Scott
- Why trust it
- An argument. Scott was a political scientist and anthropologist at Yale, and he builds his case from real schemes, from a planned capital city to collectivized farms.
- What you’ll get
- Why planners sure of one future build what can’t change, and four rules for doing better that apply to your own work: “Take small steps.” “Favor reversibility.” “Plan on surprises.” “Plan on human inventiveness.”
A Philosophy of Software Design, John Ousterhout
- Why trust it
- An argument. Ousterhout taught a software design course at Stanford, and the book grew out of it. It’s one designer’s view, made from experience.
- What you’ll get
- The three symptoms of complexity in full, and the difference between tactical work, which gets this feature out, and strategic work, which keeps the next one cheap. That difference is the case you can make for engineering time.
On the Criteria To Be Used in Decomposing Systems into Modules, David Parnas (Communications of the ACM, 1972)
- Why trust it
- An argument. It’s the classic case for information hiding, keeping each decision likely to change inside one module, and he makes it from a single worked example.
- What you’ll get
- Why a system’s boundaries go around the decisions likely to change. Engineers can draw them only as well as they know what’s coming, and often you’re the one who knows.
Yes Minister, written by Antony Jay and Jonathan Lynn (BBC, 1980 to 1984)
- What you’ll get
- Pace layers in a government department. Ministers come and go while the civil service stays, so a change that has to pass through it slows to its speed.