Book Deep-Read · A Philosophy of Software Design · Chapter 21
A Philosophy of Software Design · Ch 21 · Decide What Matters · Ousterhout · 2nd ed 2021
Open the camera on your phone and you can shoot right away: focus, exposure and white balance are all decided for you, and the one big thing on screen is the shutter button. That is this chapter's idea: good design first separates what matters from what doesn't, then puts what matters front and center and quietly tucks the rest away.
The author added this chapter specifically for the second edition. The first twenty chapters cover deep modules, information hiding, comments, names… Looking back, he saw that all of that advice is really one thing: every rule is a way of telling what matters from what doesn't.
Programmers tend to make one of two mistakes. One is treating everything as important: a fifty-page manual, every switch put in front of the user, and the one thing that really matters drowns. The other is hiding the important thing in the wrong place: something users must know is buried in a corner, discovered only when it bites.
Code, documents, a presentation — same move: first ask "what are the two or three things that really matter here," then organize the rest around them. One honest cost: there is no formula for deciding what matters; you often have to guess first and adjust as you go, and the first guess is rarely complete.
Separate what matters from what doesn't; keep what matters few and visible, and hide everything else.
Want to see how to find leverage, the three ways to emphasize, the two most common misjudgments, and why Google's style guide says every rule must be worth making everyone remember it? → Switch to the deep read
You might think the first twenty chapters are twenty unrelated tricks; the chapter new to the second edition ties them into one: one of the most important parts of good design is separating what matters from what doesn't — structure the system around what matters and make it visible; minimize the impact of what doesn't on the rest of the system and hide it.
Chapter 21, new in the second edition (2021), after Chapter 20 "Designing for Performance" and before Chapter 22 "Conclusion." It adds no new technique; it gives every earlier technique a common root. In practice it maps to every "what should this interface expose" or "what should this design doc lead with" decision.
After twenty chapters the reader holds a long list of rules: make modules deep, hide information, define errors out of existence, comment what isn't obvious, choose precise names… The trouble is that a long list of rules is itself a burden, and in concrete cases the rules pull against each other: should this parameter be exposed? Does this detail belong in the interface comment?
This chapter offers a deeper test that still points a direction when the rules run out or conflict: decide what matters first. Skip that and the typical result is "equal weight everywhere" — a class has 20 public methods, only 3 of which you need day to day, yet they're listed and commented just like the other 17, so a newcomer has to read all of them to learn which 3 count. That's how cognitive load piles up.
The author's clue is leverage: something matters if solving it also solves many other problems, or if knowing it makes many other things easy to understand.
Intuitively, the important things are the decisions that, once made, settle much of the rest. Take the text editor from Chapter 6: what matters is a general pair of operations — insert or delete text at a position. "Handle the backspace key" or "delete the selection" are UI-level uses; with the general pair in hand, each takes a few lines. Do it the other way — one method on the text class per UI action — and the interface fills up with things that don't matter.
The judgment isn't made once. Early in a design you may not be able to tell, so make a guess, organize the system around it, and revise as you use it — the same attitude as Chapter 11's "Design It Twice": judgment grows out of comparison.
The most overlooked point in the chapter: the fewer things that matter, the simpler the system. Every extra thing users must care about is extra cognitive load. So the goal isn't only finding what matters but actively making more things not matter.
Earlier chapters are concrete tools for exactly this: deep modules pull details into the implementation (Ch 4); information hiding keeps design decisions inside the module (Ch 5); pulling complexity downward means a configuration parameter the system can compute itself shouldn't be handed to users (Ch 8); defining errors out of existence means callers never have to think about that case (Ch 10). A sensible default for the common case is the same idea — most users never need to know the option exists.
Once you've found what matters, readers need to see it at a glance. The author gives three tools:
Conversely, things that don't matter should be hidden as much as possible: kept out of the interface and off the hot path, findable in the implementation or a corner of the docs by those who need them, invisible to everyone else.
The author names two errors that point in opposite directions:
Guard against both together. Guard only against the first and you hide what should be exposed; only against the second and you put everything on stage. The test stays the same: what is the least a user must know to do the common task?
The author ends by pushing the principle beyond software: writing technical documentation or giving a talk works the same way — decide what the audience most needs to take away, then make everything else serve it. In his view, much of what we call design "taste" is the ability to tell what matters from what doesn't.
Table 1 · Where should a thing go: tiers by importance
| Judgment | Treatment | Example | Cost / risk |
|---|---|---|---|
| Core, high leverage | Central + prominent: in names, in the interface, structure built around it | Text class insert / delete; driver interface | Get it wrong and the change ripples everywhere |
| Most don't need it, a few do | Give it a default; advanced options out of the way | Buffering, timeouts, retry counts | A bad default silently hurts everyone |
| The system can decide | Push it into the implementation; don't expose it | Parameters computable from load | Harder to implement; a few cases lose control |
| Can be removed semantically | Define it out of existence so no one has to care | Unsetting a missing variable counts as success (Ch 10) | Needs redefined semantics; not always possible |
| Unsure | Guess first, adjust with use | The first interface of a new system | Wrong guesses mean rework; retracting a public interface is expensive |
The test: each time you add something users must care about, ask is it worth making every user remember it? If not, default it, push it down, or define it away. Google's style guide, below, turns that question into an explicit rule.
The chapter's value is a meta-test for the whole book. Reviewing an interface, first ask "what are the two or three things that matter most for this class, and are they in its name and the first lines of its docs?" Writing a design doc, list the three key decisions before anything else. For every new config option, explain why it can't have a default. Asked in an interview "how do you judge whether an API is well designed," starting from "the least a user must know" lands better than reciting REST conventions.
Industry evidence · public record
① One of the most important parts of good design: separate what matters from what doesn't, and organize the system around what matters.
② Find importance through leverage: solving one solves many; understanding one explains many.
③ You can guess first and correct with use — the same attitude as "Design It Twice."
④ Keep the important things few: deep modules, information hiding, pulling complexity down, defining errors away, and good defaults are all tools for this.
⑤ Three ways to emphasize: prominence (names, interface docs, hot-method parameters), repetition, centrality.
⑥ Hide what doesn't matter — don't delete it.
⑦ Two mistakes: treating too much as important (more common; shallow modules), and missing what really matters (unknown unknowns).
⑧ Evidence: Google's C++ guide says rules must pull their weight; Go uses gofmt to make formatting not matter and zero values to skip initialization.
⑨ The principle reaches past code: writing and talks work the same way; much of "taste" is telling what matters from what doesn't.