The missing thinking behind the finished work

Share
The missing thinking behind the finished work
Photo by Galina Nelyubova / Unsplash

Reviewing other people's code takes up a good part of my week these days. Not because the work is particularly complicated, but because of the questions that keep coming up.
Why this approach? Could we have done it more simply? Does this fit the rest of the application? Do we actually need all of this?

None of these questions are new. We've always asked them during development. What's changing is when we're asking them. We used to work through these questions before the code existed. Now, quite often, I'm seeing them come up after the implementation is working and sitting in a pull request.

And I don't think that's just a change in how reviews are happening.

A small UI change doesn't need an architecture

I've seen relatively small changes come with multiple new files, a few helpers and layers of abstraction that nobody really needed. I didn't realise a small UI change needed quite so much architectural planning. The code works, which is exactly why it's sometimes difficult to push back. But once I read through it, I realise that parts of the implementation are solving problems the task never had.

AI gave a sensible answer to what it was told. It just didn't know what our codebase already had, what patterns we follow or whether the problem needed that much of a solution in the first place.

Sometimes I just want to thank both AI and the developer for adding another bit of technical debt. Someone will probably need a sprint to clean it up.

via GIPHY

And that's where I expect some judgement from the person using it. Could we reuse something? Is another helper actually making this easier? Are we introducing complexity just because the generated approach happens to include it?

Just because the code works doesn't mean all of it was necessary.

The thinking is happening during review

Most of the questions I'm asking when reviewing code aren't particularly even good. Why wasn't the existing function reused? Why does a simple condition need another helper? Why is there behaviour here that wasn't part of the requirement? These are things that should be considered while the work is being done.

When they come up in review, the reviewer ends up doing part of the problem-solving. Then there's a revision, another discussion, and sometimes the same question comes up again on a completely different task a few weeks later.

But there's another part to this. We're increasingly handing implementation decisions over to agents. We give them a task, some context and instructions and they work out how to implement it. The developer checks that the generated code works and ships it. But checking that something works isn't the same as thinking through the decisions that went into building it. Developers who spent years writing code themselves have had more practice making these decisions as part of the process. They know that before writing a function, there's a question of whether that function should exist at all. They know that an implementation needs to fit somewhere within the larger application.

With AI, it's becoming easier to skip that part. The agent makes a decision, the code looks reasonable, and the developer moves on without necessarily questioning it.

Those decisions still have consequences. They show up later as unexpected behaviour, awkward integrations or surprises in production. And by then, fixing them can involve much more than changing a few lines of code.

Faster code, same effort, different place

There's an interesting result from a 2025 METR study involving 16 experienced open-source developers. They expected AI to make them faster, but took 19% longer to complete the tasks when using it. Even afterwards, they estimated that AI had made them faster. The study is small, so I'm not going to stretch the findings into a universal rule.

But it does make me question what we're measuring when we say AI has made development faster. Code is certainly getting produced faster. But the time spent understanding the approach, questioning decisions and correcting unnecessary complexity hasn't disappeared. Some of it is simply showing up later, during reviews.

We're producing implementations faster, but I'm not sure the overall development process is getting faster. I see more time going into handling the chaos than actually building the product.

Following feedback isn't the same as understanding it

I ask someone to simplify an code. They make the changes, it gets approvedcand a few weeks later on a different task, we're having the same conversation.

The changes were made, but the person hasn't necessarily understood why I asked for them. With AI, it's easy to take the feedback, pass it back to the agent and get a revised version. The immediate issue gets fixed, but the next time a similar situation comes up, the same decisions are made again.

I don't want people to remember that I prefer fewer lines of code or fewer files. That's not the point. Sometimes code needs more files or another layer. Sometimes it doesn't. I want them to understand why we chose one approach over another, so they can make that judgement themselves next time.
Otherwise, your team is going to keep having the same conversations, just on different pull requests.

Before asking AI to build it

I don't think this needs another process or a document for every task. But I do think we need to spend a little more time figuring out what we're about to build.
What needs to change? Where does that change belong? Do we already have something that does it? What should the implementation look like when it fits into the existing application? That's it.

Even a rough plan gives the developer something to compare the generated output against. Without one, it's easy to accept whatever AI produces simply because it works. We've become much better at prompting AI. But knowing how to describe a task to a tool isn't the same as knowing how to visualise the solution ourselves.

The code might be generated by AI. But someone still needs to understand why it exists, what it does and whether it should be there at all.