Book Deep-Read · A Philosophy of Software Design · Chapter 3
A Philosophy of Software Design · Ch 3 · Working Code Isn't Enough (Strategic vs. Tactical Programming) · Ousterhout · 2nd ed 2021
The last chapter said software complexity piles up a little at a time. This one asks: if everyone knows that, why do we keep piling it up? The answer is a mindset. Do you "just get it working," or do you "tidy the house as you go"? Those two habits decide whether a project gets faster or slower a year from now.
Two people move into new homes. The first drops things wherever and says "let's just move in" — the first week is wonderful. The second spends ten extra minutes a day putting things away and labeling cupboards, and looks slow at first. Three months later, the first person digs for everything; the second just reaches for it. Who is faster in the first week and who is faster after a year are often reversed.
Most programmers live in a loop of "take a task, finish it, hand it in." In that rhythm the easiest move is always to patch around the problem: add a special case here, copy some code there, "clean it up next time." Each choice is reasonable and genuinely faster. The trouble is that "next time" rarely comes, patches pile on patches, and the system turns into a knot nobody dares touch. Teams even grow a certain kind of star: ships fast, gets praised, and leaves a mess that others spend extra time cleaning up.
It turns "is this code clean?" from personal taste into a trade you can discuss: spend a little time today so every future change is a bit faster. The author's verdict is clear: default to strategic, even at a rushed startup. One honest cost: you really are slower for the first few months, and "how much faster later" is a judgment from experience — nobody has measured it precisely.
Working is only the passing grade; put a little time into the design every day, like saving — slower at the start, much faster a year later.
Want the full picture of tactical programming and the "tactical tornado," where the 10–20% figure comes from, proactive vs. reactive investment, why technical-debt interest never gets paid off, why Facebook changed its motto, and where this argument is weakest? → Switch to Deep
You think "ship it now, refactor later" is pragmatic; Ousterhout calls it tactical programming — faster every single time, slower in total. He wants strategic programming instead: your primary goal is a great design that also happens to work, achieved not by one big up-front design but by spending about 10–20% of every effort on small, continual investments.
Chapter 3 is the door from "what complexity is" (Chapter 2) to "how to fight it." Chapter 2 said complexity accumulates incrementally; this chapter explains which mindset makes it accumulate, and sets the precondition for every later technique: you must be willing to spend time on design. It leads into Chapter 4, "Deep Modules," the first concrete weapon. In real life it maps to every planning meeting that ends with "ship this week, clean up next week."
Every technique in the chapters ahead — deep modules, information hiding, defining errors out of existence — costs extra time. If a team's default rhythm is "done means shipped," those techniques never make it onto the schedule. So the author first tackles something more basic: making time for design part of the job instead of an extra, and explaining why it pays.
A scenario (illustrative): a six-person team runs a service that has been live for two years. Adding a field used to take half a day. Today the same request touches 7 files, steps around 3 historical special cases and needs another regression pass — 3 days. No single commit "broke" the system; each was just "this for now, we'll revisit." Without changing the mindset, that curve only keeps climbing — until someone proposes a rewrite, and the rewrite usually starts out tactical too.
What it is: in tactical programming the main goal is to get something working as fast as possible — a new feature or a bug fix. That sounds entirely sensible: what could matter more than working code? The problem is that it is short-sighted. You focus on the task in front of you and don't spend time looking for the best design.
The mechanism: each task slips in a little complexity — a special case, some duplicated code, a patch around a problem — and each time you can convince yourself "this bit is fine, the task matters more." That is exactly the engine behind the previous chapter's incremental accumulation. The author adds a detail: once you program tactically, fixing the design gets harder, because a design fix usually touches several places, and the tactical mindset naturally reaches for "one more patch" instead.
The tactical tornado: the author's extreme case — a prolific programmer who pumps out code far faster than colleagues but works in a totally tactical way. Nobody implements a feature faster; management often treats them as a hero. But they leave a wake of destruction, and the engineers who come after spend a lot of time cleaning up, so they look like they are making slower progress. The counterintuitive point: the person who looks fastest on the team may be the one making the whole team slower, and normal performance metrics can't see it.
The first step toward being a good designer is realizing that working code isn't enough. Introducing unnecessary complexity to finish a task faster is not acceptable. What matters most is the long-term structure of the system: most code in any system is written by extending existing code, so your most important job is to make future extensions easier.
Strategic programming requires an investment mindset: spend some time now improving the design so you go faster later. The author splits investments into two kinds:
The key word is "every": strategic programming isn't a refactoring campaign at some moment, it is the default move of every developer in every change.
The author explicitly rejects the other extreme: a huge up-front design investment (say, waterfall-style designing the whole system first) won't work, because many design problems only show up once the system is in use. The best approach is lots of small investments on a continual basis; he suggests about 10–20% of total development time.
The logic of the number: small enough not to hurt schedules noticeably, large enough to pay off significantly over time. So your first project will take roughly 10–20% longer than a purely tactical one; but the better design starts paying back soon — in the author's judgment, before long you will be developing at least 10–20% faster than you would tactically. These figures are the author's experience-based advice, not measurements.
The author closes the case against tactical programming with the technical-debt metaphor: programming tactically borrows time from the future. But unlike financial debt, technical debt is rarely paid off in full, so you keep paying interest — and the total you pay back usually far exceeds what you borrowed. The procrastination mechanism is simple: the longer you wait, the bigger the problems, the more intimidating the fixes, and the easier it is to keep waiting. Once "clean it up later" starts, it easily becomes "never."
The most common pushback is "we're a startup, we must be fast." The author grants the pressure is real; many startups program tactically, figuring they'll hire people to clean up once they succeed. His reply has three layers: ① once code turns to spaghetti it is nearly impossible to fix, and you may pay high development costs for the life of the product; ② the payback comes sooner than you think; ③ the most important factor in a company's success is the quality of its engineers, and great engineers care about design — companies that value it recruit better.
The book's contrasting cases: Facebook's early motto was "Move fast and break things," its codebase became notorious for its mess, and the motto was changed to something like "Move fast with solid infrastructure"; Google and VMware, by contrast, had strong engineering cultures that emphasized code quality, and both succeeded too. The author's verdict: people have succeeded both ways, but it is a lot more fun to work at a company that cares about design.
Table 1 · The two mindsets compared
| Dimension | Tactical | Strategic |
|---|---|---|
| Primary goal | Get this task working | A great design that also happens to work |
| On a design problem | Work around it, add a special case | Spend a little time to fix it |
| Short-term speed | Faster | About 10–20% slower |
| Long-term speed | Keeps slowing (complexity piles up) | Author's estimate: at least 10–20% faster |
| Who pays | Successors, the whole team, your future self | You, now — small and controlled |
| How it looks in reviews | Ships fast, looks heroic (tactical tornado) | Looks slower early; gains spread across the team |
Table 2 · How to spend design investment
| Approach | What it looks like | You get | Cost / risk |
|---|---|---|---|
| No investment | Done means shipped; "clean up later" | Fastest today | Compounding debt; "later" usually never comes |
| Huge up-front design | Waterfall: design the whole system first | Looks thorough | Explicitly not recommended: many problems only appear in use |
| Batch repayment | Save it all for a "refactoring quarter" or a rewrite | One big cleanup | Problems grow intimidating and keep getting deferred; rewrites repeat the pattern |
| Small and continual (recommended) | 10–20% of each task: proactive alternatives, reactive fixes | Complexity stays low, faster over time | A bit slower early; needs everyone doing it — culture, not heroics |
The rule of thumb: when a change ships, the design should be at least as good as before it — if this change made the design worse, that extra bit of time is worth spending. In review you can ask: "If we had known about this requirement from the start, would the system look like this?" (Chapter 16 develops that question.)
When an interviewer asks "how do you trade delivery speed against code quality?", this chapter gives a repeatable answer: it's not either/or, it's a ratio — by default every task carries 10–20% design investment, because the interest on technical debt costs more. In architecture reviews, it reminds you to look at what the "fastest" changes left behind, not just how fast they shipped.
Evidence · public sources
① Working is the passing grade: adding unnecessary complexity to finish faster is not acceptable.
② Tactical programming fixates on the task at hand and leaves a little complexity each time — the engine of the previous chapter's incremental accumulation.
③ The tactical tornado: the person who looks fastest may be slowing the whole team; normal metrics can't see it.
④ Strategic programming: the primary goal is a great design that also happens to work; most code extends existing code, so write for future extensions.
⑤ Two kinds of investment: proactive (alternative designs, comments, anticipating change) and reactive (fix design problems when found, don't route around them).
⑥ How much: a continual 10–20% of development time; not waterfall-style up-front design.
⑦ About 10–20% slower at first, and in the author's judgment soon at least 10–20% faster — experience, not a measured curve.
⑧ Technical debt is rarely repaid and the interest exceeds the principal; "clean it up later" gets harder to start the longer it waits.
⑨ Startups are no exception: Facebook changed its motto, while Google and VMware valued design and still succeeded; great engineers care about design.