The other day, I read a LinkedIn post by an experienced developer that genuinely inspired me. He described a time when he approved a junior developer’s pull request, even though he was sure it was wrong. And he was right; the updated code broke that same night.
At first, I was confused. Why would he do that? But as I continued reading, I understood: He wanted to give the junior developer the chance to learn from their own mistake, rather than just being told what to do. The blast radius was limited to one internal tool, and a rollback would take minutes, so the cost of being wrong was small. The junior developer found the bug, wrote up what happened, and fixed it in a way the more senior developer said he wouldn’t have thought of.
What stayed with me wasn’t his decision to approve something he thought was wrong. It was that the junior had room to work out what happened, with support and without a huge cost to being wrong. But we don’t have to deliberately ship a bug to make room for that kind of learning.
When the struggle becomes optional
The story brought me back to an issue that has rattled around in my brain over the last year, sitting somewhere in the intersection of early-in-career developers and modern-day developer skill building. I’ve seen the topic brought up a few times in online discourse: Recently graduated developers don’t know how to code anymore. And why would they, when AI can do it all for them?
Gone are the long nights of debugging, hours of tracing code, finally solving one error just for another to pop up, and emotional support rubber ducks. In a way, it’s for good reason: AI has allowed us to move faster, build faster, and ship faster. That speed is the new expectation, which means developers don’t have the time for friction anymore.
But we have also seen that this has come at a cost. It’s a worry that many of us share: that early-career developers are struggling to fully learn computer science concepts. And it’s not just jokes online. An Anthropic study found that participating developers who used AI to learn a new library averaged 50% on a comprehension quiz, compared to 67% for those who coded by hand. The largest gap was on questions that tested their ability to recognize when code is wrong and understand why it fails. How they used AI mattered, though: Those who asked conceptual questions scored much better than those who handed over the coding.
How do we close this learning gap, when the struggle that used to teach us is now optional, and nobody has time for optional?
Failure was always a good teacher. It was just expensive.
I think back to studying computer science in college, when I’d get so stuck on a bug that I’d spend hours staring at my computer screen and digging through Stack Overflow posts. But I also remember how, over time, I got better at tracing my code, understanding errors, and finding solutions. I also got better at writing code, so that those errors wouldn’t show up in the first place. And this continued into my early career as a software engineer. I spent so much time failing, but I also learned a tremendous amount. This is the experience early-career developers may miss when AI supplies the code or fix before they’ve had a chance to work through the problem. That learning cost hours at your desk, or it cost something real in production.
This experience is not just anecdotal. Research shows that struggling with a problem before being given the answer can lead to deeper learning. In fact, trying to solve a problem before receiving instruction can improve conceptual understanding and the ability to apply what was learned. In the Anthropic study, the hand-coding group also encountered more errors, and the researchers suspect that resolving those errors independently contributed to their increased learning. They also concluded that getting stuck is likely important for subject mastery. So it’s not AI use itself that concerns me; it’s when AI does the problem-solving before the developer gets a chance to try. These studies don’t test production failures directly, but they support the value of working through problems rather than having every answer supplied.
When the expectation is AI speed, early-career developers still building their skill set don't have time for this type of learning. However, guardrails like a small blast radius and a fast rollback may have created space for it to happen later, after shipping.
Rather than removing learning through failure, AI may have moved it down the pipeline.
Where one space for learning fades, another one emerges
I believe safe-release tools have the power to broaden these learning environments. Instead of managers or senior developers needing to predict failures, teams can leverage products like feature flags with guarded rollouts to help contain damage and make reverting changes easy. Managers and senior developers still need to review changes and assess the risks, but they can also facilitate learning when a failure gets past those checks. Junior developers can take advantage of these features as tools for their own learning by exploring where their work went wrong after it was shipped, and working through the fix themselves. This lets teams maintain high-speed shipping while giving junior developers the opportunity to learn from their mistakes.
The author of the LinkedIn post I mentioned at the beginning of this post knew the change he approved might break something, and he expected the consequences would be small. But the opportunity I see is broader than that specific decision. AI-generated code can look reasonable in review and still behave differently than expected when it reaches users. I’m not suggesting we leave known bugs in place. I’m suggesting that when a problem gets past review and tests, a contained, reversible release can give the junior developer room to investigate rather than having someone else hand them the fix.

How to let failure happen, safely
Before venturing down this path yourself, consider what constraints need to be met. A change that is contained and reversible could be an appropriate fit for this practice. For more senior developers, your role should be to stay close by without taking over the fix. AI can still help a junior developer understand the failure or get context, but they should debug and find the fix themselves. If they just hand the error back to the agent and apply whatever fix comes back, they risk skipping the same practice you were trying to make room for.
If I were on a team with junior developers who I wanted to help learn and grow, I’d start by putting their change behind a feature flag. Then, I’d expose it gradually with a guarded rollout, choosing metrics that could reveal a problem and enabling automatic rollback.
Suppose that even after review and tests, an issue slips through and causes a detected regression in one of those metrics. LaunchDarkly could then automatically return the rollout to the original variation, which stops further exposure to the new behavior. It doesn’t revert the deployed code or undo every side effect, and it depends on having useful metrics and enough traffic to detect the regression, so I wouldn’t treat automatic rollback as the only way to catch a problem.
With the immediate impact contained, there’s less pressure for someone else to jump in and hand over the fix. The junior developer can look at which metric regressed, use logs or traces to investigate what happened, and work out a solution. A senior developer can help them interpret what they’re seeing without taking over. The point is for the junior to connect the change they made to its behavior in production instead of waiting for someone else to solve it for them.
This method isn’t perfect. Failing safely only works if someone puts in the effort to understand why the failure happened. In the story I mentioned at the beginning of this post, the junior investigated and wrote up what happened. This step is crucial, and skipping it prevents learning. I’d also ask them to write a regression test that reproduces the bug and passes with the fix, and to explain why the fix works. That gives them a chance to check their understanding, while leaving the team with a test for the same failure next time. If the guardrail quietly reverts the change and nobody looks at why, you’ve protected the customers but taught no one anything.

Learn, keep learning
I keep thinking back to the junior developer from that LinkedIn post. They received support in learning, rather than a lecture or a fix handed to them. They got to break something small, find out why, and make it better themselves. That’s a kind of learning I thought AI might have put out of reach, but now I think it may have just moved.
If we want our still-growing developers to become engineers who can debug, question, and oversee what AI builds, we have to leave room for them to learn how.





