The Pragmatic Programmer #1 — A Pragmatic Philosophy

Part one of a series on The Pragmatic Programmer by Hunt and Thomas: responsibility, broken windows, good-enough software and your knowledge portfolio

I’m starting a 9-part series on a book I think every developer should read at least once: The Pragmatic Programmer by Andrew Hunt and David Thomas (1999, second edition in 2019). It doesn’t teach a language, a framework or the architecture of the month. It teaches something rarer: how to think and work like a professional.

The first part of the book is called A Pragmatic Philosophy, and it holds six ideas. None of them is technical. All of them change the way you write code.

1. It’s your career, and your work

When something goes wrong you don’t make excuses: you offer solutions. The book puts it with an image that stuck with me: “the cat ate my source code” is not an answer.

There was no backup? The requirement was ambiguous? Fine, it happens. But before walking into your manager’s office, ask yourself what you can bring besides the problem: an alternative, a plan, an estimate. A problem with a proposal is a conversation; a problem with an excuse is a complaint.

2. The broken windows theory

A small defect left in the code — ugly code, a hack, a known bug — invites general decay. If a file already has a three-year-old // TODO: fix this, the next person to pass by will feel entitled to add another one.

The rule is simple: fix it right away, or at least flag it. For me it’s the hardest one to apply every day, because a broken window “just for today” stays there for months. And nobody remembers who broke it.

3. Stone soup and boiled frogs

Two fables, one lesson in two halves. Stone soup: you can be the one who sparks change by showing a small, concrete result. You don’t need a committee’s approval for a proof of concept: build it, show it, and others will start adding ingredients.

The boiled frog is the flip side: keep an eye on the big picture, because problems grow slowly, without anyone noticing. A build doesn’t go from 2 to 20 minutes overnight.

4. Good-enough software

Perfection doesn’t exist. What exists is software that solves the user’s problem, in the time they need it. The key point is who decides when it’s “enough”: involve the user in deciding when quality is sufficient. Not you alone, not your perfectionism, not the deadline alone.

5. Your knowledge portfolio

Invest in learning the way you’d invest in a portfolio: regularly, and diversified. Some risk (the new technology that might disappear), some safe bets (the fundamentals that never expire). The book gives concrete advice: learn a new language every year, read technical books, step out of your bubble.

6. Communicate!

Know what you want to say, know your audience, pick the right moment. Sounds obvious until you find yourself explaining an architecture to a salesperson in the same language you’d use in a code review. And remember: documentation is communication too.

The takeaway

None of these ideas needs a tool or a budget. They need an attitude: take responsibility, don’t tolerate decay, decide quality together with the people who use the software, keep learning, and make yourself understood.

In the next part: A Pragmatic Approach, covering ETC, DRY, orthogonality and tracer bullets.

So, what’s the broken window in your project?

#pragmatic-programmer#books#software-engineering#career#quality

‹ All posts