# AI saves the typing, not the judgment

Date: 2026-09-23
Category: Technology
Tags: AI Programming, Code Review, Workflows
Summary: Time spent writing code has been compressed, and nearly all the time saved goes into clarifying requirements and acceptance. This piece documents which parts of my workflow have gotten faster over the past two years, which have actually become more expensive, and the part I still dare not hand over to the model.

I switched an internal service's auth from session to JWT. The whole process took less than an hour, and the actual typing time was maybe a few minutes. The rest of the time I spent digging through old code to confirm which routes had the auth middleware attached, adding a test for expired tokens, and hunting through logs for the reason "why the session was still valid after logout."

That ratio is roughly what AI-assisted programming feels like to me: it compresses the "writing" segment down to almost nothing, then hands the saved time back, untouched, to "thinking" and "verifying."

## The parts that got faster are narrower than I first assumed

I initially thought the productivity gain would be spread evenly across all coding steps. Half a year in, I've found it isn't. There are a few categories of work that genuinely got noticeably faster.

Boilerplate. CRUD handlers, config struct parsing, error wrapping, parameter validation—no intellectual challenge to writing them, but typing them line by line eats a lot of time.

Cross-language translation. Turning a chunk of Python CSV-cleaning logic into Go—I know both languages, I just don't want to write it. The model does this well. But last time I translated over three hundred lines, it compiled on the first try, and checking the float formatting and blank-line handling took longer than writing it by hand would have. So now I only use it for translation tasks where "the output can be compared by eye immediately."

Looking up SDK usage. Faster than digging through docs, but the version is often stale, the signatures don't match, and you have to go back and double-check.

Mechanical refactoring. Changing function signatures, batch-replacing call sites, swapping a pile of `if err != nil` for a wrapper function—these changes have the compiler as a safety net, so you know immediately when something's wrong.

Test skeletons. The framework for table-driven tests, the mock boilerplate—it writes them faster than I do.

What these tasks have in common is that the cost of verification is lower than the cost of writing by hand: correctness is either guaranteed by the compiler or visible at a glance. That line is roughly the dividing line—cross it, and the productivity gain starts turning negative.

In terms of proportion, this kind of work is maybe half my daily code volume, but less than half my working hours. Writing itself was never the most time-consuming step; it's just that in the past it was scattered in tiny fragments, so it was easy not to notice.

Take retry logic. I asked the model to write an HTTP call with backoff. What it gave me runs, but the exponential backoff has no jitter and no cap:

```go
func doWithRetry(ctx context.Context, req *http.Request, max int) (*http.Response, error) {
	var lastErr error
	for i := 0; i < max; i++ {
		resp, err := http.DefaultClient.Do(req.Clone(ctx))
		if err == nil && resp.StatusCode < 500 {
			return resp, nil
		}
		lastErr = err
		// 下面几行是我补的：加抖动、加上限，并且能被 ctx 打断
		base := time.Duration(1<<i) * 200 * time.Millisecond
		if base > 5*time.Second {
			base = 5 * time.Second
		}
		sleep := base/2 + time.Duration(rand.Int63n(int64(base/2)))
		select {
		case <-time.After(sleep):
		case <-ctx.Done():
			return nil, ctx.Err()
		}
	}
	return nil, lastErr
}
```

A retry without jitter turns into a synchronized retry storm when the server side stumbles all at once. The model won't bring this up on its own, because what it wrote is "a working retry," not "a retry that works in our system."

## The parts that didn't change got more expensive instead

The JWT example is more typical. The version the model gave me had login and validation running in ten minutes, but there are three things it doesn't handle.

First, key rotation. Signing and validation use the same hardcoded string, so the day you rotate the key, every online user's token dies at once. Second, clock skew. There's no tolerance in the validation, so two machines a few seconds apart start throwing random 401s. Third, permissions are baked into the token's claims, so changing a permission means waiting for the token to expire.

None of these three are code problems—they're problems of how this system runs. What the model sees is the few hundred lines I pasted in. It can't see the release process, can't see whether ops gets woken up at midnight, and can't see who inherits this in three months.

Requirement clarification is the same. The model won't ask me "when this field is empty, should the export be an empty string or should we skip the row?" It just picks something that looks reasonable and keeps writing. When I wrote it myself, I'd stop and think for two seconds; now those two seconds are saved, at the cost of wrong things being written faster and in greater quantity. Scaled up to the team level, those two seconds are the question nobody asks in the review meeting.

Boundary conditions are even more obvious. Empty collections, time zones, idempotency, duplicate submissions under concurrency—these are the dark side of the requirements, usually not written in the spec, and not present in the model's training data either. I can't get it to "help me think about what else I haven't considered"—it'll give me a list that looks comprehensive but is actually very generic, and I still have to filter it item by item.

Observability is something I've almost never seen the model add on its own. Logs and metrics—unless I explicitly ask, it won't think "entering this branch means something went wrong" is worth recording.

Causal reasoning is another one. When something breaks in production, a human still has to piece together what actually happened from logs and timelines. I haven't felt any change in efficiency here—if anything, because there's more code, there's more log noise.

## My workflow got squeezed to both ends

My coding process now looks more like a sandwich: me at both ends, the model in the middle.

The front end is stating things clearly: type definitions, interface signatures, failing test cases, constraints that must not be touched. This part has gotten noticeably longer. I often spend ten minutes writing a comment and a type just so the next two hundred generated lines have a boundary.

The back end is acceptance. When I look at a piece of generated code now, my first question isn't "is it written correctly" but "under what circumstances will it go wrong, and how would I know." Syntax-level errors have basically disappeared; intent-level errors have increased, and the focus of review has shifted up a layer overall. That's actually good news for me, because reading code to judge intent is what I'm better at and what I'd rather do anyway.

What got compressed is the middle segment. My order of writing tests has changed too: first write a test that fails, then let the model fill in the implementation. The test has to be written by me, because it expresses "what I want"—once that's outsourced, there's no acceptance baseline left.

This is also something I've been paying more attention to lately: AI raises output volume, but if acceptance capacity doesn't keep up, problems pile up downstream. Some teams adopt it and their development-speed metrics look better while production issues actually increase—that's probably the reason. Not that the model writes badly, but that it writes fast, faster than review can digest.

One thing I haven't settled: by skipping the stage of hand-writing boilerplate, can someone just entering the field still build up the underlying mental models? In my own case, I had to hand-write pagination many times, retries many times, error wrapping many times before I developed the ability to spot at a glance where generated code is wrong. Whether that order can be reversed, I don't have an answer. I lean toward no, but I don't want to use that to discourage anyone.

## A habit I have now

Every time the model gives me a piece of code that runs, I first ask myself: if this code goes wrong, who's the first to find out?

If the answer is the compiler, a test, or me running it locally, I use it with confidence. If the answer is a user three days later, or an alert at midnight, then I have to think it through from scratch myself—even if what I end up writing is roughly the same as what it gave me.

There's one exception: one-off scripts and prototype validation. The cost of verifying that kind of code is already close to zero—if it's wrong, delete it and start over—so letting the model write the whole thing and giving it a quick scan is completely worth it. So the dividing line is really "who finds out when it goes wrong," not "whether this code is important."

The model can't answer this question, because it doesn't know who bears the cost of failure in my system.

Further reading: [I Only Keep One AI Coding Tool: It Has to Find the Context Itself](/2025/04/12/claude-code-the-ai-tool-i-still-pay-for/), [The Four-Stage Vibe Coding Pipeline: Code Is the Cheapest Part](/2026/11/14/vibe-coding-full-stack-workflow/)
