Essays

Measure Once, Cut Many Times

Doug Routledge • August 3, 2026

Read Essay
← All essays

Measure Once, Cut Many Times

The Current Reality of AI Coding

Doug Routledge

Workshop scene linking woodworking measurement tools with a laptop of code — illustration for Measure Once, Cut Many Times
AI coding today: measure once, then cut, recut, and recut until it fits.

In traditional craftsmanship, the maxim “measure twice, cut once” encodes a hard-won truth: precision in preparation prevents waste. A careful measurement, a considered mark, and a single decisive cut produce clean results. Rush the measurement and you end up trimming, adjusting, and discarding pieces until something approximates the intended shape.

AI-assisted coding today lives almost entirely in the second regime. We measure once—often hastily—and then cut, recut, and recut again until the code behaves.

The Iterative Loop as Standard Practice

A typical interaction with current models follows a recognizable pattern. The developer supplies a natural-language specification, sometimes accompanied by context files or partial implementations. The model produces a plausible first draft. That draft usually contains subtle misunderstandings of edge cases, incorrect assumptions about the surrounding codebase, incomplete error handling, or performance characteristics that only become visible under real load.

The human then enters a cycle of observation, diagnosis, and correction: “That function doesn’t handle the empty case.” “You’re using the wrong import.” “This works for the happy path but fails when the network is flaky.” Each correction is itself a new measurement of sorts, and each response is another cut. Over multiple rounds the code converges. The final artifact may be solid, but the process that produced it was closer to successive approximation than to precise fabrication.

This is not a failure of the technology so much as a reflection of its current statistical nature. Large language models are extraordinarily good at generating text that looks like correct code and that often is correct for the central cases described in the prompt. They remain weaker at the combinatorial explosion of real-world constraints: implicit invariants maintained by the rest of the system, unstated performance budgets, security boundaries, concurrency hazards, and the long tail of environmental quirks. Because those constraints are rarely fully articulated in the initial prompt, the model cannot reliably satisfy them on the first attempt.

The practical consequence is that “one-shot” success remains the exception rather than the rule for anything beyond well-scoped, relatively isolated tasks. For larger features, refactoring efforts, or systems with nontrivial state, iteration is the expected mode of work.

Why the Analogy Fits So Tightly

The woodworking parallel is almost exact. Measuring once with incomplete information is equivalent to prompting with an underspecified or partially wrong mental model of the problem. The first cut (the initial generation) is therefore almost guaranteed to be imperfect. Subsequent cuts are the debugging and refinement loop. Skilled practitioners learn to write better prompts and to supply richer context, just as a carpenter learns to measure more carefully. Yet the fundamental process remains iterative because the measurement itself is incomplete.

There is also a second, quieter cost. Each round of correction consumes attention and introduces the possibility of new errors. A human who has spent twenty minutes refining a generated function is less likely to notice that the overall design has drifted. The very ease of generation can therefore reduce the pressure to think carefully upstream.

A Plausible Future: Measure Twice, Cut Once

A different equilibrium is imaginable. In that future, the majority of non-trivial coding tasks are completed in a single generation pass, or at most a very short, high-confidence verification loop. The model receives a sufficiently complete specification—explicit requirements, relevant architectural constraints, test oracles, performance envelopes, security policies—and produces code that is correct, idiomatic, and integrated on the first try for the large majority of cases.

Several technical and methodological shifts would be required for this to become the dominant mode rather than an occasional happy accident.

First, the models themselves must become more reliable at long-horizon consistency and constraint satisfaction. This likely involves stronger internal planning, better tools for symbolic reasoning about code, and tighter integration with formal methods or highly effective test generation. Pure next-token prediction, even at enormous scale, has so far proven insufficient for the full spectrum of software correctness.

Second, the interface between human and model must change. Instead of a single natural-language request, the interaction may more often take the form of a structured specification that is itself refined until it is complete. The “measurement” phase becomes longer and more deliberate: clarifying intent, enumerating edge cases, stating non-functional requirements, and supplying or generating the verification criteria that will be used to accept or reject the output. Only when that measurement is thorough does the cut occur.

Third, the surrounding development environment must close the loop. Continuous verification—static analysis, property-based testing, differential testing against previous versions, formal contracts—must be cheap and automatic enough that the model can be held to a high correctness bar before the human ever sees the result. When the cost of verifying a candidate solution approaches the cost of generating it, one-shot or few-shot generation becomes economically rational.

If these conditions are met, the economics of software construction shift. The scarce resource moves from “writing code” to “stating precisely what the code must do and proving that it does it.” The craft of programming becomes more like the craft of specification and less like the craft of successive approximation.

The Path Between the Two States

We are not there yet, and the transition will not be abrupt. Intermediate stages are already visible: models that can maintain longer context windows, agents that can run tests and revise their own output, systems that propose both code and the tests that should pass, and environments that treat generation as a proposal subject to automated scrutiny. Each of these reduces the average number of human-mediated cuts required.

Yet the deeper change is cultural as much as technical. As long as it remains cheaper and faster to generate imperfect code and then iterate than to invest heavily in precise measurement up front, the iterative style will dominate. Only when the expected cost of incomplete measurement exceeds the cost of thorough measurement will the “measure twice” discipline become the default.

The analogy therefore points to a real fork. One path continues the present practice of rapid, approximate generation followed by human-guided correction. The other path treats the specification itself as the primary artifact and the generation step as a relatively deterministic transformation of that specification into working software. Both paths are compatible with powerful AI; they simply place the locus of human effort in different places.

For now, most of us still measure once and cut many times. The interesting question is how deliberately we will choose to change that habit when the tools finally make the alternative practical.

Let's Connect

Find me across the web.