Reader-supported: when you buy through links on our site, we may earn an affiliate commission. Learn more

Cover of A Philosophy of Software Design
Buy on AmazonBuy on Bookshop.orgListen on Audible

We earn a commission if you buy through these links. Learn more

A Philosophy of Software Design

by John K. Ousterhout

Guide by the Books of the Day editors · Updated · How we write our guides

A short, opinionated book that treats managing complexity as the central job of software design, and gives working programmers a vocabulary for arguing about design tradeoffs.

What Creators Say About A Philosophy of Software Design

2 creators reviewed A Philosophy of Software Design on YouTube between 2020 and 2024, with 43.1K views between them. Their opinions are their own; we picked these reviews, we didn't write them.

A Philosophy of Software Design: Book Review and VerdictThe Pragmatic Engineer on YouTube32.5K views · 2020
John Ousterhout Reflects on "A Philosophy of Software Design"Book Overflow on YouTube10.6K views · 2024

What It's About

A Philosophy of Software Design is a short argument that the central problem in software engineering is complexity, meaning anything in a system's structure that makes it harder to understand or change. Ousterhout builds his case around symptoms he sees in real codebases, such as one idea requiring edits in many places and a growing pile of facts a developer has to hold in their head. Rather than offering a checklist of rules, he tries to build judgment about where complexity comes from and how to keep it under control.

The approach is conversational and deliberately contrarian. Much of the book contrasts tactical programming, where you get a feature working as fast as possible, with strategic programming, where you invest a little extra in design every time you touch the code. His examples come from real code, mostly in Java and C++, and he often argues against popular advice, which makes the book more interesting than a list of best practices.

The experience is less like consulting a reference and more like a long talk with an experienced reviewer. Some ideas land immediately, while others, like deciding where a module boundary belongs, only become clear after you have applied them to your own work. Many readers find it rewards a second reading after a few projects.

Read this if you…

  • are a working programmer who wants a shared vocabulary for design tradeoffs
  • have been told to keep functions tiny and want a more nuanced argument
  • lead or review code and need to explain why a design feels wrong

Skip it if you…

  • want a step-by-step method or concrete patterns with code to copy
  • are looking for hard empirical evidence or a formal design methodology

Key Ideas

  1. 1

    Complexity is the real enemy of good software

    Ousterhout defines complexity as whatever makes a system hard to understand or modify, and argues that it accumulates through many small decisions rather than one big mistake. The useful move is to treat every design choice as either adding to or reducing that burden, and to notice the symptoms early: change amplification, cognitive load, and unknown unknowns.

  2. 2

    Deep modules beat shallow ones

    A deep module offers a simple interface that hides a lot of functionality behind it, while a shallow module exposes almost as much complexity as it contains. The book pushes you to ask whether a new class or function genuinely simplifies what callers must know, or just adds another layer to read through.

  3. 3

    Strategic programming pays off over time

    Tactical programming optimizes for finishing the current task, which slowly erodes the codebase. Strategic programming accepts a small extra cost on each task to improve the design. Ousterhout's point is that this investment compounds, and that it is a habit to build rather than a luxury for big projects.

  4. 4

    Comments are part of the design

    He argues that interface comments should describe what a caller needs to know, including units, invariants, and edge cases, and should be written before the implementation. Comments that merely restate the code are treated as a failure of design, not as harmless documentation.

  5. 5

    Pull complexity downward into the module

    When complexity cannot be eliminated, it is usually better to absorb it inside a module so that the many callers do not have to handle it. The book argues that a module's author is usually the right person to take on this work, since they have the most context and it saves effort across every user.

Limitations

Critics say the book is more persuasive than precise. Ideas like deep modules and complexity are hard to measure, so readers are left to judge for themselves when a design has improved. Its examples lean toward systems and object-oriented code, with less on web front ends, data pipelines, or scripting. Some of its stances, such as skepticism toward very small methods and its view of comments, are debatable and may be disputed by readers who have strong views on those topics. It also does not cover team process or architecture at large scale.

Questions Readers Ask

Is A Philosophy of Software Design still relevant?
Largely yes. Its core ideas about complexity, module boundaries, and interfaces are not tied to a particular language or framework. Some code examples use older styles and languages, so a reader may need to translate them, but the reasoning carries over to modern codebases.
How does it compare to Clean Code?
Clean Code is prescriptive and offers many small rules, while Ousterhout argues from principles and often disagrees with the advice to keep functions tiny. Readers who have absorbed Clean Code often find this book a useful counterweight rather than a replacement.
Do I need professional experience to benefit from it?
Some experience helps a great deal. The prose is plain and accessible, but ideas like deep modules and strategic investment make more sense after you have maintained code for a while and felt the cost of a poor design yourself.
Published
2018
ISBN
9781732102217
Difficulty
intermediate

Book details and cover from Google Books.

Ready to read A Philosophy of Software Design?

Get your copy on Amazon, or listen to it on Audible. We earn a commission if you buy through these links.

Explore More