Directing Work You Cannot Read
The Economics Of Borrowing
Cunningham did not mean sloppy code. Debt is priced by what it sits on, which makes some of it free and data-model debt expensive, and the interest only exists if you write it down.
Ward Cunningham coined the phrase technical debt in 1992 and later said plainly that he did not mean sloppy code. He meant the gap between what you now understand about the problem and what the code currently encodes, accumulated because you had to ship before you understood. Nearly every use of the term you will hear is a misreading of its origin, and the misreading leads to the wrong remedy: tidying style instead of rewriting the parts whose model of the world is out of date.
Four kinds, only one of which is a decision
Fowler's quadrant sorts debt on two axes, deliberate against inadvertent and prudent against reckless. Deliberate and prudent is the only one that is a decision: we know the right way and we are choosing the fast way for a stated reason. Inadvertent and prudent is Cunningham's case, the normal price of learning a business, which means it is not a failure and no amount of discipline prevents it. Reckless, whether deliberate or not, is not debt at all. Nobody lent you anything. It is damage, and calling it debt is how it gets tolerated.
The price depends entirely on what it sits on
This is the part founders are never told and the part that makes the subject actionable. Debt is not uniformly expensive. Its interest rate is set by how many things depend on the thing you compromised.
- Free: code behind a flag you will delete in six weeks, a one-off import script, an internal admin page three people use, a landing page. Write it badly on purpose if badly is faster. There is no interest on a loan that matures before the first payment.
- Cheap: ugly code with one caller, sitting behind a clear interface. You can replace it on a quiet afternoon whenever you like.
- Expensive: the data model, because migrations are the only refactor your users can see. Your public API and webhook payloads, because other people's code depends on their shape. Your authorization model, because every endpoint reads it. And your build and deploy pipeline, because it taxes every change you will ever make.
So the practical rule is not borrow less. It is borrow against things with short lives, and refuse to borrow against those four even when refusing costs you a week.
Make the interest visible or it is not debt
Interest you cannot see is not a cost you can weigh. Write the borrowing down at the moment you take it: what you did, what the right version would be, the concrete weekly tax it imposes, what would trigger repaying it, and who owns that. The tax has to be specific. Not this is messy, but every new endpoint has to remember this flag, or every release needs two manual steps, or nobody can change the pricing table without asking one person. Keep the list in the repository, date the entries, read it monthly.
Why later never comes, structurally
The person who took the shortcut understood the trade. The person who pays is whoever touches that code next, months later, under a different deadline, with no idea a trade was made. That is not weak willpower, it is an accounting problem: the cost lands in a budget that did not borrow. Conway's Law is the sharper version. Your system takes the shape of your communication structure, which is why debt created at a boundary between two teams or two contractors never gets paid. Nobody owns both sides.
The rewrite, and what to do instead
Joel Spolsky made the argument in 2000 and it has not aged: the ugly code contains bug fixes nobody remembers and edge cases nobody documented, so rewriting restarts you at zero known bugs, which feels like progress and is the loss of years of accumulated corrections. The mechanical problem is worse than the sentimental one. A rewrite has no shippable intermediate state, so you cannot stop, cannot change your mind, and cannot release anything for however long it takes.
The strangler fig pattern is the alternative and the name is literal. Put the new implementation behind the same interface, route one narrow slice of traffic to it, keep both alive, compare their behaviour on real traffic, move the next slice, and delete the old path when its traffic reaches zero. Every step ships, and any step can be the last one. And before removing the thing you do not understand, apply the fence rule from the schema lesson.
The mainstream advice that is debt in disguise
Split it into microservices is the most expensive advice available to a small team. A service boundary converts function calls, which are reliable, debuggable and transactional, into network calls, which are none of the three. You take a permanent debugging and operations tax in exchange for organisational independence, and what justifies that trade is a team boundary you cannot coordinate across, not the size of a codebase. For a team of three it is almost always wrong. The same logic governs tool count. The cost of a tool is not learning it, it is operating it for a decade of upgrades, advisories and on-call knowledge, and every tool has to interoperate with the ones already there, so n tools carry n times n minus one over two integration pairs: five tools is ten, eight is twenty-eight.
Key takeaways
This is one lesson of 541.
The whole Foundation is free — 16 subjects, beginner to advanced. Sign in to track what you have read, take the end-of-module quizzes, and use the terminal.