Ideas, , 6 min read
The wrong question about junior engineers and AI
“Will they be replaced?” gets the attention. The question that matters is how anyone builds judgement when tools write the first draft of the code.
On this page
Every few months the same question comes back: will AI replace junior engineers? It is a fair thing to worry about, and economists are studying it. Researchers at Stanford’s Digital Economy Lab, working from payroll data, have reported that employment of workers aged 22 to 25 has fallen behind in the occupations most exposed to AI, and that the gap comes mostly from fewer hires rather than more departures. The authors call these findings early and descriptive, and that is how to read them.
As a guide to what to do, though, it is the wrong question. It treats “junior” as a job title that either survives or doesn’t. Junior is not really a title. It is a stage in how a person becomes a senior engineer, and the question that matters is whether that stage still works.
Where judgement comes from
Senior engineers are not mainly faster typists. What they have is judgement. They look at a diff and sense that something is off before they can say what. They know which of twenty possible causes is worth checking first. They can tell when a confident answer is wrong.
Nobody is handed that. It is built from many hours of being stuck: writing code that fails, reading the error, forming a guess, being wrong, forming a better guess. Psychologists have a name for part of this. In the generation effect, described by Slamecka and Graf in 1978, people remember material they produced themselves better than the same material they only read. Producing an answer leaves a stronger trace than receiving one.
Now give a learner a tool that writes working code on request. The task gets done. Much of the struggle that used to build judgement quietly disappears with it.
What one trial found
There is early evidence that this is more than a worry. In a randomised trial published by Anthropic in January 2026, 52 developers, mostly junior, learned an unfamiliar Python library for asynchronous programming. One group had an AI assistant in a sidebar; the other did not. Afterwards, everyone took a quiz on the concepts they had just used.
The assistant group averaged 50 percent on the quiz, against 67 percent for the group that coded by hand. The largest gap was on debugging questions, the ones about understanding why code fails. The assistant group was not significantly faster either.
The more useful finding was inside the assistant group. People who used it only to generate code, or who handed it the debugging as well, scored lowest. People who asked it conceptual questions, asked for explanations along with the code, or generated code and then asked follow-up questions until they understood it, scored far closer to the hand-coding group.1
So the tool was not the variable that mattered most. The way people used it was.
A better question
“Will juniors be replaced?” leads to fatalism or to reassurance. “How does anyone build judgement when tools write the code?” leads to things you can do on Monday. These are the practices I think hold up.
For people who are learning
- Attempt first, then ask. Spend real time on a problem before you ask a model. When you do ask, compare its answer with your attempt. The difference is the lesson.
- Ask for reasons, not only code. “Why does this deadlock?” teaches more than “fix this deadlock”. When you take generated code, ask what would break it.
- Debug by hand, on purpose, sometimes. Debugging is where the trial found the largest gap. Reproduce the bug, form a hypothesis, test it, and only then compare notes with a tool.
- Rewrite from memory. A few days after a tool helped you build something, build the core part again without it. Where you get stuck is what you did not learn.
- Explain your diff. Before you open a pull request, write a sentence on why each change is there. If you can’t, you are shipping code you do not understand yet.
For teams
- Review for understanding, not only correctness. Ask the author to walk through the risky part of a change. It takes ten minutes and tells you whether they can maintain it.
- Keep some work tool-light. Give newer engineers a slice of tasks, such as small bugs in an unfamiliar module, where the point is learning the system. Say so out loud, so nobody feels slow.
- Make judgement visible. Let newer engineers sit in when someone experienced decides what to check first during an incident, or which design to push back on. That reasoning is rarely written down.
- Count more than throughput. If merged pull requests are the only number that matters, people will optimise for that number, and judgement will thin out without anyone noticing.
What does not change
None of this is an argument against the tools. Experienced engineers use them to move faster on work they already understand, and learners should become fluent with them early. The point is narrower. A tool that removes struggle also removes the practice the struggle used to provide. If you want the skill, you have to put some of that practice back on purpose.2
The juniors who do well in the next few years will probably not be the ones who avoid AI, or the ones who hand it everything. They will be the ones who can tell when generated code is wrong, and why. That skill can be learned, and it is learned the old way: by producing answers, being wrong, and finding out where.
If you are early on this path, the free tutorial Tool Calling From Scratch is built on exactly this idea. You write the agent loop by hand before any framework writes it for you.