"Every line of code is a liability" has guided how great engineers think about complexity, maintenance, and technical debt for decades.
AI coding tools are pressure-testing that principle at scale. They generate more code, faster—but the carrying cost does not magically disappear. If anything, it compounds.
It is tempting to assume the old maxim is obsolete. After all, if a model can write a thousand lines in thirty seconds and rewrite them in another thirty, why treat code as a liability at all? The answer is that writing code was never the expensive part.
What AI Actually Made Cheap (and What It Didn't)
To think clearly about this, it helps to separate two costs that used to be bundled together:
- Production cost (writing and refactoring): This has collapsed. Scaffolding services, writing glue code, building one-off internal utilities, and translating boilerplate between formats are now nearly free. In narrow, isolated contexts, code really is closer to disposable.
- Carrying cost (operating and evolving): This has not disappeared. Every extra code path still expands runtime surface area, state transitions, dependency graphs, security exposure, and cognitive load during an outage.
Even if an agent can regenerate a module on demand, whatever is deployed in production still interacts with real traffic, real data, and real failure modes. When latency spikes at 2 a.m. or a subtle race condition corrupts state across services, nobody cares how fast the code was generated. You still pay the full carrying cost of everything running in your fleet.
From Scarcity to Over-Generation
For most of software engineering history, human typing and implementation speed acted as a natural throttle on complexity. Building a custom abstraction or introducing a new pattern took days of effort, which forced teams to ask whether they actually needed it.
Remove that throttle and the default failure mode flips. Instead of under-building, teams drift into over-generating locally plausible code:
- Duplicate helpers that solve the same problem in slightly different ways.
- Defensive layers and fallback paths nobody asked for, each adding branches that have to be reasoned about later.
- Sprawling pull requests that look clean enough on the surface to get rubber-stamped, leaving no single engineer with a crisp mental model of the whole change.
Complexity used to creep in one carefully debated pull request at a time. With AI coding tools, it can arrive in bulk.
Ruthless Control vs. Knowing When to Trust
The engineers who thrive over the next few years will not just ship faster. They will fall into—and increasingly master both sides of—two instincts:
- Ruthlessly controlling what the machine produces, and
- Developing a sixth sense for when to trust the machine.
Early on, it was easy to treat these as two different kinds of engineers: the strict gatekeeper who reviews every token versus the high-trust delegator who lets agents run at full speed. In practice, neither extreme holds up on its own. Micromanaging every line throws away the leverage of modern tooling; trusting blindly turns a codebase into an unmaintainable tangle within months.
The real skill is calibrating between the two based on blast radius, reversibility, and verifiability:
- Lean into trust where the blast radius is small and verification is strong—isolated scripts, prototypes, unit and integration tests, data backfills with dry-run checks, or leaf-level features behind clean boundaries. If the output is wrong, you catch it immediately or regenerate it cheaply.
- Enforce ruthless control where mistakes compound—shared platform abstractions, storage schemas, concurrency and retry semantics, public contracts, and security boundaries. A locally reasonable design from an LLM can quietly lock in accidental complexity that you will live with for years.
Keeping Carrying Cost Low on Purpose
If code generation is abundant, discipline has to move upstream into structure and taste:
- Tighten boundaries so more code can be disposable: Clean interfaces and isolated modules expand the surface area where high trust is safe.
- Invest in invariants over line-by-line policing: Strong types, contract tests, and runtime assertions scale with AI throughput; fatigued humans skimming 1,500-line diffs do not.
- Delete aggressively: If code is cheap to generate, it should be even cheaper to throw away. Fight the instinct to keep generated code around "just in case."
AI did not repeal the law that every line of code is a liability. It raised the stakes. Writing code is no longer the bottleneck—deciding what deserves to exist in production, and knowing when to tighten the reins versus let the machine run, is the craft now.