Don't outsource the learning: code with AI and keep learning

Don't outsource the learning: code with AI and keep learning
50% / 67%comprehension quiz score with AI and without it (Anthropic trial)
>65% / <40%conceptual questions versus copy-pasting the generated code
83%of LLM users couldn't quote a single line of their own essay (MIT)
80 / 100ship 80% and learn 100%: Osmani's preference
Don't outsource the learning: code with AI and keep learning
I also explain it in this video, on my channel Articulator EN.

The default looplink

Most of us have settled into the same loop. You paste in a spec or an error message. The model hands you a fix and the symptom vanishes. You ship it, and around you go again. Somewhere in that loop, the messy struggle between problem and solution stops happening at all.

The default loop: paste the error, the model hands you a fix, the symptom vanishes, you ship.
Paste, accept, ship, repeat: no step requires you to understand the problem.

Osmani had already written about cognitive surrender: the moment an AI reviewer's verdict quietly replaces your own. This is the solo version, just you and the model. The model is faster, so you stop trying to compete on comprehension. And across thousands of small interactions, what you can actually build without an AI looking over your shoulder gets a little weaker every week. The treacherous part is that none of these moments feels like a problem on the day it happens.

To be clear, Osmani is not anti-AI. He uses these tools daily, and says he has shipped more with them in the last year than in the years before. His point is different: the default way we use them is optimized for one thing, closing tasks. And that is a completely different goal from staying sharp enough to steer them over a long career.

The studies convergelink

According to Osmani, several pieces of research over the last year have landed in roughly the same place. He cites three.

1. The Anthropic trial: posture decides

In early 2026, Anthropic ran a randomized trial: engineers learned a new Python library, half with AI assistance and half without. Both groups finished the tasks at the same speed. But on the follow-up comprehension quiz, the AI group scored 50% versus 67% for the manual group, and the gap widened on debugging.

The most interesting cut was inside the AI group itself. Engineers who used AI to ask conceptual questions scored above 65%, close to the manual group. Engineers who copy-pasted the generated code scored under 40%. In Osmani's words: the tool didn't determine the outcome; the posture did.

Quiz scores: 50% with AI versus 67% without, with a wider gap on debugging.
Same tool, very different scores depending on how it's used.

2. MIT: cognitive debt

The second study comes from MIT and is called Your Brain on ChatGPT. It compared essay writing across three groups: with a language model, with a search engine, and brain only. Brain activity was measured with EEG, and brain connectivity scaled down with every layer of external support. The language model group showed the weakest coupling.

And here is the striking number: right after writing the essay, 83% of the language model users couldn't quote a single line of what they had just produced. The researchers called this cognitive debt: you save mental effort today and pay for it tomorrow in critical thinking.

Three groups writing essays: brain only, search engine and language model; connectivity drops with each layer of support.
More external support, less connectivity. Note: these were essays, not code.

3. CHI 2026: who frames the problem

The third was presented at the CHI 2026 conference. When people had access to the model at the start of a task, the model framed the entire problem. Even when the person did the rest of the work themselves, that initial anchoring produced measurably worse decisions. The order of operations mattered more than the total amount of AI used.

Having the model at the start of a task anchors the problem and leads to worse decisions.
What you see first sets where you end up.

Different methods, same conclusion, says Osmani: using AI without an active intent to learn quietly degrades the very skill you're being paid for.

One caveat worth keeping in mind: these studies measure a single task or a few sessions. That the erosion compounds week after week over years is Osmani's reading, not something they measured. And the MIT study is about essays, not code.

Built to ship, not to teachlink

If you fire up a coding agent and stick to the defaults, everything is tuned for one metric: getting the task done. The model writes the code, you accept it, the loop repeats. At no point does the tool pause and ask "what do you think the problem is?" or "try writing the first five lines yourself."

That's where the gravity of product design sits right now. Product teams get rewarded for merged changes and shorter cycle times, not for making you a sharper engineer. We all want fewer keystrokes, so the tools have sanded the friction away. The trouble is that friction was where the learning lived.

The tools sand the friction away, and the learning goes with it.
The friction the tools remove was exactly where the learning happened.

A few companies have tried to push back. Anthropic shipped Learning Mode for Claude, which uses Socratic questioning and stops to ask you to write code before continuing; OpenAI and Google have shipped similar features. But honestly, almost nobody uses them for real production work. We've filed them under "for students", and according to Osmani that's a mistake: the same feature that helps a sophomore learn React works for a senior engineer learning Rust. You just have to be willing to feel like a beginner again.

Why understand it?link

"If the AI can do it, why do I need to understand it?" Osmani admits it's a fair question, and that for some work the answer is: maybe you don't. If it's boilerplate, glue code, or a throwaway CI script you'll never look at again, delegate it. Memorizing that syntax costs more than it's worth.

But for real software, pure delegation breaks down in five specific places:

  1. When something breaks. AI-generated code crashes the same way human code does, and "the agent wrote it" doesn't help you debug. Somebody on the team has to understand the architecture.
  2. When it's confidently wrong. Models still hallucinate, and the only defense against a plausible-looking incorrect answer is enough expertise to spot it. Band-aids like skills or CLIs only get you so far.
  3. When the foundation changes. Code is temporary; systems are permanent. When a framework updates or a security review flags a structural issue, you can't re-prompt your way out. You need engineers who understand the system well enough to migrate it.
  4. When you leave the median. AI is brilliant at problems that have been solved a million times on GitHub. The further you stray, the worse it gets. And the hard, undocumented problems, the ones that justify a senior salary, still require deep understanding.
  5. When the market adjusts. In Osmani's view, engineers who can only ship with AI, and not without it, are entering a labor pool that is already re-pricing what expertise is worth. If you use it to skip learning, you're trading future relevance for a slightly easier Tuesday.
The five places where pure delegation breaks down.
When it breaks, when it's confidently wrong, when the foundation changes, off the median, and when the market adjusts.

The fix is in how you promptlink

The good news is that the same tools that produce cognitive debt can produce sharper engineers. The difference is in what you ask of them. Osmani proposes six habits:

  1. Form a hypothesis before you ask. Before requesting a fix, write down two or three sentences on what you think the problem is. Use the model's answer to test your theory, not to replace it.
  2. Ask for the explanation before the code. In unfamiliar territory, your first prompt should be something like "explain how this works, what the alternatives are, and what the tradeoffs are." Ask for the code only after you've grasped the concepts.
  3. Turn on Learning Mode when you're out of your depth. Yes, it feels slower. That's the point.
  4. Treat AI output like a pull request from a junior engineer. Read it, critique it, push back on it. Would you merge it just because the tests passed? If not, don't merge it here either.
  5. Re-derive things by hand once in a while. Take a piece of code the model wrote for you and try to recreate it from scratch. It's the calibration check that tells you how much you've quietly lost.
  6. Ask the model to teach you what it just did. After it writes a clever function, ask what concepts it used and what you'd need to read to understand that design choice. One extra prompt changes what you take away from the session.
A prompt asking for the explanation, the alternatives and the tradeoffs before the code.
Explanation first; code after.

None of these are dramatic. They're small posture shifts inside the same tools you're already using every day.

Two metrics, not onelink

Osmani has started ending his coding sessions with a simple question: did I learn anything today, or did I just close issues? Sometimes the honest answer is "I just closed issues", and that's fine. But if it's the answer for months in a row, cognitive debt is piling up in the background.

Shipping and learning are two separate metrics. Your manager and your customers will only ever ask about the first one. The second one is on you. Osmani says he'd rather ship 80% of what he could and learn 100% of what he needed than the reverse. It isn't a measured rule, it's his preference, but the argument is clear: over the years, those two strategies produce very different engineers.

Two bars: ship at 80% and learn at 100%.
Shipping and learning, measured separately.

Summarylink

You don't have to choose between using AI and learning, but you do have to choose a workflow that does both, because the defaults won't choose it for you. The studies Osmani cites point the same way: what matters is not how much AI you use, but with what posture and in what order. Form your hypothesis first, ask for explanations before code, review its output as you would a junior's, and every so often, do it by hand. As he puts it, the next boring task you were about to delegate is a good place to start.

In one sentence

Let AI close your tasks, but don't hand it your learning too.

Sourceslink

Continue reading

Last posts -->

Have you seen these projects?

Gymnasia

Gymnasia Gymnasia
Expo
React Native
TypeScript
OpenAI
Anthropic

Fitness app with two agents that run entirely on the device, with no backend, so the user's data never leaves the phone. A BYOK conversational coach with local tools and a remote system prompt with offline fallback, plus a food estimator that pulls macronutrients out of a photo of the plate, with barcode scanning against OpenFoodFacts.

LangGraph Deep Researcher

LangGraph Deep Researcher LangGraph Deep Researcher
Python
LangGraph
FastAPI
React
TypeScript
Docker

Multi-agent research system built with LangGraph. A supervisor breaks your question down into topics and launches search sub-agents in parallel; each one compresses its findings before handing them to a writer agent that produces the final sourced markdown report. Live streaming over WebSockets, a configurable model per role and bring-your-own API keys that are never persisted server-side.

Tau

Tau Tau
Python
LangChain

Multi-agent tutoring system for secondary school students, with one agent per subject and course material written and validated by a team of teachers. It was used with real students at a private school in Spain and at a secondary school in Colombia.

View all projects -->
>_ Available for projects

Do you have an AI project?

Let's talk.

maximofn@gmail.com

Machine Learning and AI specialist. I develop solutions with generative AI, intelligent agents and custom models.

Do you want to watch any talk?

Last talks -->

Do you want to improve with these tips?

Last tips -->

Use this locally

Hugging Face spaces allow us to run models with very simple demos, but what if the demo breaks? Or if the user deletes it? That's why I've created docker containers with some interesting spaces, to be able to use them locally, whatever happens. In fact, if you click on any project view button, it may take you to a space that doesn't work.

Flow edit

Flow edit Flow edit

FLUX.1-RealismLora

FLUX.1-RealismLora FLUX.1-RealismLora
View all containers -->
>_ Available for projects

Do you have an AI project?

Let's talk.

maximofn@gmail.com

Machine Learning and AI specialist. I develop solutions with generative AI, intelligent agents and custom models.

Do you want to train your model with these datasets?

short-jokes-dataset

HuggingFace

Dataset with jokes in English

Use: Fine-tuning text generation models for humor

231K rows 2 columns 45 MB
View on HuggingFace →

opus100

HuggingFace

Dataset with translations from English to Spanish

Use: Training English-Spanish translation models

1M rows 2 columns 210 MB
View on HuggingFace →

netflix_titles

HuggingFace

Dataset with Netflix movies and series

Use: Netflix catalog analysis and recommendation systems

8.8K rows 12 columns 3.5 MB
View on HuggingFace →
View more datasets -->