
Technical Deflation: Why Your âClean Codeâ is a Bad Investment
In an economy, deflation is terrible. When prices drop, consumers stop spending because they know things will be cheaper tomorrow. The economy comes to a halt.
But what if the same logic applied to code? This is what Dan Shapiro describes in his blog Technical Deflation. The cost of producing and modifying code is dropping fast. And it will be even cheaper next month.
For decades, weâve created code with the following rule in mind: code is read ten times more often than it is written. So we invested heavily in readability. We debated variable names. We refactored until our functions were small and pure. Weâve âgold-platedâ our code because we take pride in it and argue that the investment is worth it, because maintaining code is expensive.
That rule is breaking.
The New Math
The technical debt you have today is cheaper to fix than ever. It will even be cheaper tomorrow. If itâs not actively slowing you down or causing bugs, why fix it now? Youâll pay less later.
And when writing new code, technical debt can be used to your advantage. As Shapiro puts it:
You are borrowing expensive human hours today, and you will get to pay them back with cheap AI hours tomorrow.
This isnât an excuse for writing garbage or AI-slop. Itâs a shift in the economics of software development. If the end-of-year refactoring sprint isnât removing real friction, itâs an investment with a negative return. Youâre paying premium prices today for maintenance work that will cost pennies in the near future. However, the cost of fixing a badly architected data model will deflate slower than code-shape debt like a messy class or naming.
Different types of tech debt deflate at different rates.
The Swiss Watch Moment
We are in the Quartz Crisis of software development. For centuries, Swiss craftsmen built mechanical movements by hand. Then quartz arrived. Many watchmakers âthought that moving into electronic watches was unnecessaryâ. They were wrong, and the Swiss watch industry plunged into a crisis.
The handmade watch became a luxury. It didnât tell the time any better than a quartz watch.
I wrote about this in 2026: The Year the IDE Died. Creating code is becoming a commodity. The developerâs value isnât in writing code anymore. Itâs in making sure the correct code gets generated.
The Purist (Level 0) worries about syntax. The Architect (Level 6) is concerned about whether weâre solving the right problem.
The Objections
âAI wonât understand my spaghetti code any better than a developer would.â
Consider this: Todayâs AI is the worst youâll ever use. It gets better every month. Messy code is less expensive for an AI agent than for us humans, and the gap is growing. The things that make messy code expensive for humans (cognitive load and context-switching) donât apply to an LLM the same way. Whatâs messy for us isnât necessarily messy for the AI agent. But keep in mind that we still pay a price. Missing tests, unclear boundaries, flaky builds, and unstable contracts make both humans and agents slow and error-prone. This is friction which makes you slower and needs to be fixed.
âWhat if we end up with a mess? Developers will need to fix that.â
That argument denies the whole point of Technical Deflation. Itâs essentially betting that AI will go away and weâll have to start hand-coding everything again. Remember the watchmakers?
The real question isnât whether your code is clean. Itâs whether your code is blocking you right now. If not, move on. The cleanup will be cheaper when you actually need it.
The Uncomfortable Conclusion
In a deflationary environment, the smartest move is to delay spending. For code, that means: ship the feature, defer the polish, fix problems when they become problems.
This feels wrong. It violates everything we were taught. But the developers who understand this will ship faster. And in a world where code is cheap, the only thing that remains expensive is time.
Your clean code repo might be a museum piece. Beautiful, maintainable, and months behind the competition.
Remarks:
- Alef Arendsen rightfully pointed out that the terminology in the title is not entirely correct. Itâs the work that is getting cheaper, not the technology.
- Some people seem to take this blog as an advice to no longer think about the quality of the code. An advice to create a âmessâ. Thatâs not the point. Itâs about code getting cheaper, how does that affect our choices?
Related Articles
The Kotlin Paradox
Kotlin may be a nicer language, but Java might be the best choice when paired with AI. Here is why.
Battle of the Infographics: GPT 5.2 vs Gemini
The Reviewer
How I stopped reviewing bad code and started building better software with AI assistance.