Topic 1 of 5 · 4 min read
Coding by hand to keep your skills
Goal: Decide which parts of a task to write yourself to build a skill, and use AI as a tutor rather than the author.
When you are learning something, type the core of it yourself and use AI to explain, quiz and critique, not to write it for you. Skill grows from struggling with a problem and fixing your own mistakes. If an agent does that part, you get working code and keep the gap in your head.
Check yourself · 1 of 3
You are learning a new language and want to build skill. What is the best way to use an AI assistant?
Why it matters
You review every line an agent writes. Review needs knowledge: what idiomatic code looks like, which API is deprecated, why a query is slow. Anthropic ran a study in which developers learned a new Python library, and the group that delegated code to an AI assistant understood the library less afterwards than the group that wrote it themselves. Handing over the learning part of a task weakens the skill you need to check the output.
How to do it
- Name the goal of the task. Is it "ship this feature" or "learn how async I/O works"? Ship goals can lean on an agent. Learn goals cannot.
- Split the work. Write the core logic by hand: the loop, the state, the query. Let AI handle scaffolding you already understand: config files, boilerplate, test fixtures.
- Use AI as a tutor. Ask "explain what this error means, do not fix it". Ask for three practice exercises. Paste your own solution and ask for a critique and the edge cases you missed.
- Predict before you run. Write down what you expect the code to print or return. A wrong guess is the lesson.
- Retype, do not paste. When you do accept a generated snippet, close it and rewrite it from memory.
Before and after
Weak plan, for a developer new to Rust:
Prompt the agent: "Build a CLI that parses a CSV and prints totals."
Read the result. Run it. Move on.
Better plan:
1. Write the CSV row parser myself, with my own error handling.
2. Ask the assistant: "Review this parser. List the ownership and error-handling problems. Do not rewrite it."
3. Let the agent generate the argument parsing and the README.
4. Next day, rewrite the parser from a blank file without help.
What goes wrong
- The illusion of understanding. Code you read feels familiar. You only know it when you can write it without the page open.
- Debugging by prompt. Pasting every error back into the chat means you never build a mental model of the failure.
- Using it as a rule forever. This is for skills you want to own. Hand-coding a language you will never use again is a waste of time.
Examples
Tutor, not author
A developer learning SQL window functions writes this prompt:
I wrote this query to rank each customer's orders by date. It returns the wrong
rank when two orders share a timestamp. Do not give me a corrected query.
Give me one hint about what to look at, then wait.
The hint points at tie-breaking in the ORDER BY clause. The developer fixes it, and now knows why.
Splitting a task
Learning goal: understand Go channels.
- By hand: the worker pool and the shutdown logic.
- Delegated: the HTTP handler that feeds it and the table-driven tests.
- Afterwards: ask the assistant to list deadlocks possible in the hand-written pool, then check each one.
Key points
- Decide first whether a task is for shipping or for learning; only shipping tasks should lean on an agent.
- Write the core logic of an unfamiliar area yourself and let AI handle boilerplate you already understand.
- Ask AI to explain, quiz and critique your code instead of writing it.
- Predicting an output before running it turns every wrong guess into learning.
- Reviewing agent code needs the very skills that delegating everything lets decay.
Common mistakes
- Treating a working agent result as proof that you learned the topic.
- Pasting every error into the chat instead of reading the stack trace first.
- Asking for the full solution when a hint would do.
- Hand-coding everything, including boilerplate that teaches nothing.
Check yourself · 2 of 3
A teammate needs a config file and a test fixture generated, and also wants to learn how Rust ownership works. What should they write by hand?
Check yourself · 3 of 3
After an agent writes a snippet you want to learn from, which step helps most?
Practice items, not counted towards your mastery.
Start here
- Measuring the Impact of Early-2025 AI on Experienced Open-Source Developer Productivity (opens in a new tab)PaperFree
A randomised trial where experienced developers were slower with AI yet believed they were faster.
- How AI assistance impacts the formation of coding skills (Anthropic) (opens in a new tab)ArticleFree
A vendor's own study of how delegating code to AI affects learning a new library.
- Do Users Write More Insecure Code with AI Assistants? (opens in a new tab)PaperFree
A user study where AI-assisted participants wrote less secure code and felt more sure of it.