Why is messy code like a debt?
A lesson on Martin Fowler's Technical Debt post. Computing, work level.
Ward Cunningham came up with a name for this: technical debt.
Think of cruft like money you owe.
Interest is the extra cost you keep paying on a debt.
Here, the interest is extra work.
Say a new feature would take four days if the modules were clear.
With the cruft, it takes six days.
Those two extra days are the interest.
Questions in this lesson
- Your team skips cleaning up a messy part of the code to ship faster. What do you think happens to later features that touch that part?
- In your own words, why is messy code like a debt? Use a feature your team might build as the example.