# Technical Debt

> Source: https://modeladay.com/models/technical-debt/
> Category: principle | Topics: business, time | Difficulty: 3/5

## Definition

A second-best implementation chosen to ship sooner works like borrowing: speed today, repaid later with interest in higher maintenance and change costs. Stopgap fixes, pasted code, missing tests, aging architecture.

## Core Rule

A "suboptimal implementation" chosen for faster short-term delivery—like borrowing to buy speed now, repaid later with "interest": higher maintenance and modification costs. Common signs: temporary workarounds, copy-pasted code, missing tests, outdated architecture.

## Opening Context

The New York market had barely opened when Knight Capital's computers started sending orders in a rush. A trade would go through and another order would follow it. Employees were still looking for the fault as the firm picked up positions it had never meant to take.

How did a firm that made its living from automated trading get tripped up by code it had gone years without using?

That's technical debt, the work a shortcut leaves you to pay for when you run, fix, or change a system. Let's follow Knight's bill back to where it began and see when it makes sense to carry a debt and when to pay it down.

## How It Works (Preview)

Go back a few days, to the summer of 2012. The New York Stock Exchange was about to launch a program for retail trades. Knight's system would have to know what to do with the orders that came in under the new program.

Knight started installing new software on the servers that routed its orders. It went on in stages. One machine missed the update, so it kept doing things the old way while the rest moved on.

## When It Fails (Preview)

A bill this big makes it tempting to clean up every old piece of code you see. Start by figuring out which pieces could still run up a charge.

## Full Lesson, Audio & Practice

Get the full Technical Debt breakdown, 5-minute audio lesson, interactive mechanism animation, and decision checklist in the ConceptFlow app:
- iOS App Store: https://apps.apple.com/app/conceptflow-mental-models/id6756862333
- Google Play: https://play.google.com/store/apps/details?id=com.juxianyp.conceptflow
- Web page: https://modeladay.com/models/technical-debt/

## Related Mental Models

- [Prototype](https://modeladay.com/models/prototype/)
- [Tight and Loose Coupling](https://modeladay.com/models/tight-and-loose-coupling/)
- [Friction](https://modeladay.com/models/friction/)
