Book Deep-Read · A Philosophy of Software Design · Chapter 21

Decide What Matters

A Philosophy of Software Design · Ch 21 · Decide What Matters · Ousterhout · 2nd ed 2021

中文 →

What is this chapter about?

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.

A curious fact first

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.

Why the old way was hard

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.

How it works, intuitively

What it gives you / how to choose

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.

Remember it in one line

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