Why read a design book when AI writes the code?
I reopened A Philosophy of Software Design a year after presenting it at work, and wondered whether it still mattered. It matters more now. Here's why, with three ideas from the book and the AI mistakes they catch.
- books
- software-design
- ai
A year ago, our company ran knowledge-sharing sessions. Each of us picked a topic and presented it to the rest. Mine was a book: A Philosophy of Software Design by John Ousterhout.
Then, for reasons that don't matter here, the sessions stopped.
This week I'm trying to restart them, so I went back to the book to prepare. And for the first few pages I had a doubt I didn't have a year ago: why am I reading this? AI writes most of the code now. If a module gets too complicated, I can ask it to clean up. Design books were for when humans typed everything.
I kept reading, and by the end of the first chapters the doubt had flipped. I think we need this book more now than we did before AI. Let me explain, without spoiling it.

What the book is
It's a short book, under two hundred pages, and it's about one thing: complexity. Where it comes from, how it creeps in one small decision at a time, and how to design modules so it stays out.
The part that stuck with me a year ago was the early chapters on interfaces. Ousterhout's argument is that a module's value is the gap between how much it does and how much you have to know to use it. Big functionality behind a small interface is good design. A thin layer that makes you learn an interface and gives you almost nothing back is bad design, however clean the code inside it looks.
He's not shy about naming examples. The one everyone remembers is from Java's standard library: to read objects from a file you build a file stream, wrap it in a buffered stream, then wrap that in an object stream. Three classes to learn, and if you forget the middle one, your program is slow and nothing tells you why. Buffering is what you almost always want, so it should have been the default, not an extra class you have to remember. That example did more for my sense of good interfaces than any pattern catalogue.
The doubt, and why it's wrong
Here's the thing I noticed when I started reading with AI in mind. Every mistake the book warns against is a mistake I now see in generated code, every day, more often than I used to see it in code written by people.
That led me to three reasons the book matters more now.
AI makes these mistakes more than we did. It's fast, confident, and it optimises for making the current task work. That's the exact mindset the book spends a chapter warning against. Generated code is usually correct. It's rarely well-designed unless someone pushes it there.
You need the words to push. "Make this cleaner" gets you renamed variables. "This module is shallow, pull the retry and the parsing behind one interface" gets you a better module. The vocabulary in this book is what lets you say precisely what's wrong, both to the AI and to yourself when you read the diff.
Most of the rules are trade-offs. The book rarely says "always". It says: here is the cost of this choice, here is the cost of the other one, and here is how to tell which matters in your case. A model will happily pick either side. Deciding which side is right for this codebase, this team, this year, is the job that stays with us. You can't make that call if you don't know the trade-off exists.
Three ideas, three AI mistakes
To make that concrete, here are three ideas from the book and the AI-generated flaw each one helps me spot. In my words, not the author's.

Tactical versus strategic programming. Tactical means getting the feature working as fast as possible and moving on. Strategic means spending a bit more time now so the next change is easy. The book argues that complexity is incremental, so a codebase built tactically never has one big problem, just a hundred small ones nobody chose to fix. An AI assistant is the purest tactical programmer ever built. Every prompt is "make this work", and it does. Someone has to be the strategic one, and it has to be you.
Deep versus shallow modules. A deep module hides a lot behind a small interface. A shallow one has an interface almost as big as its implementation. Ask an AI to add a feature and watch it produce a service that calls a helper that calls a utility, each one a few lines long, each one passing arguments through to the next. Every one of those layers is something the next reader has to understand and gets nothing for. When I see a diff like that, I now have a name for what's wrong, and I can ask for the layers to be collapsed.
Define errors out of existence. Instead of detecting a condition and throwing, design the operation so the condition isn't an error at all. Deleting a file that's already gone can simply succeed. Taking a substring past the end of a string can simply return what's there. Generated code goes the other way by default: a guard clause at the top of every function, a try/catch around every call, an exception for every edge. Each one is a case the caller now has to handle. Half of them can be designed away, and the book shows how.
How I use it now
In practice this changes three moments in my day.
When I write the prompt, I name the concept. "Keep this module deep", "don't add a wrapper, extend the existing interface", "handle the empty case by returning an empty list, not by throwing".
When I read the diff, I read it against the book, not against "does it pass". Is there a pass-through layer? Did the interface grow more than the functionality? Did a special case leak into the caller?
When the AI and I disagree, I check whether it's a trade-off. If it is, I decide, and I write down why in the PR. That decision is the part of the work that didn't get automated.
Read it
So, a year later, I'm presenting this book again, and this time with more conviction. If you write code with an AI next to you, and most of us do now, read A Philosophy of Software Design. It's short, it's opinionated, and it gives you the words to ask for better code and to recognise it when you see it.
The code is cheaper than ever. The design is still ours.