AI Coding Weekly

DHH says DRY is a human pattern, Kent Beck disagrees

An old argument about duplication and abstraction, restarted on the premise that code is now cheap to generate.

DHH posted that web frameworks built for agents will look nothing like the past. His list of properties is short. Massive parallelism, minimal abstractions, small low-level libraries to wrap access, and then something like Fowler's transaction scripts, which put the logic for an operation in one straight-line procedure rather than spreading it across a layered object model. The load-bearing claim in the middle is five words. DRY is a human pattern.

DHH
@dhh
X
They need to focus on massive parallelism and minimal abstractions. DRY is a human pattern.
Dec 2, 2026 路 View on X

DRY, don't repeat yourself, is the rule that every piece of knowledge should live in one place in a codebase. The implicit argument is that the rule exists because humans have to maintain the duplicates by hand, and an agent that can regenerate code on demand does not pay that tax the same way.

Beck's objection

Kent Beck replied that this gets the purpose of the rule wrong. DRY is not about saving typing, he wrote, it combats coupling when done right, and coupling creates power-law distributed costs. In other words, the expensive thing is not the duplicated lines, it is that a change in one place forces changes in others, and in a badly coupled system the number of forced changes does not grow politely.

"Even the genie doesn't have enough power to overcome exponentially increasing costs."

That is the whole disagreement. DHH is arguing that the constraint was always the human writing and editing the code. Beck is arguing the constraint is structural and sits in the code itself, so a faster writer does not help.

What is not here

Neither of them has shown a codebase. This is two experienced people making opposing predictions about what agent-written systems will cost to change over time, and nobody has posted the maintenance data that would settle it. Treat it as an argument worth having rather than a result.

For working engineers, the practical question is narrower than the slogan fight. If you let an agent duplicate logic across modules, you are betting that regenerating all the copies correctly later is cheaper than maintaining one abstraction now. DHH thinks that bet is good for agent-first frameworks. Beck thinks the bill still arrives, just on a curve.

Kent Beck 馃尰
@KentBeck
X
Even the genie doesn't have enough power to overcome exponentially increasing costs.
Dec 3, 2026 路 View on X

Have the good opinion, not the loud one

One email a day. Under three minutes. What working engineers found out about coding with AI.

Get the next one by email

Coding with AI, read daily so you do not have to. The experiments, the receipts and the arguments from engineers shipping real software. Not a changelog.