Learn by Doing: Why Practice Beats Passive Study
What the research on active learning and retrieval practice says about learning by doing, where the evidence stops, and how to study practically.
By Code Nexus team · 6 min read · Published · Updated · Reviewed by Code Nexus team
Following a worked example and producing a solution are different tasks. Practical learning gives you a place to try the decision, inspect the result and explain what changed. It explains the teaching choices behind Code Nexus and our AI engineering guides.
The feeling of understanding is not the same as learning
When you reread a chapter or watch a clear explanation, the material becomes familiar. Familiarity feels like knowledge. But recognising an idea when you see it is a different skill from producing it when you need it, and engineering work is almost always about producing.
This is one of the most consistent findings in the science of learning: what feels easy in the moment is often not what builds lasting skill, and what feels harder, such as struggling to recall something or getting a task wrong first, tends to build more.
What the research shows
Two bodies of evidence are worth knowing. We describe what each did and did not test, because it is easy to overstate research in either direction.
Active learning in the classroom
In 2014, Scott Freeman and colleagues published a meta-analysis in the Proceedings of the National Academy of Sciences. They pooled results from 225 studies that compared undergraduate science, technology, engineering and mathematics (STEM) courses taught by traditional lecturing with courses that used active learning, where students work on problems, discuss and apply ideas during class.
The findings:
- On average, exam and concept-inventory performance was 0.47 standard deviations higher under active learning.
- Students in traditional lecture courses were more likely to fail: the odds ratio for failing was 1.95, and failure rates under lecturing were 55% higher than under active learning.
- The authors noted that the size of the exam gain would raise average grades by about half a letter.
What this does not show. These were university STEM classes, not adult learners working on their own, and "active learning" covered many different methods. It does not prove that any particular practical technique beats every other. What it does show, across a large number of studies, is that getting students to do something with the material improves results compared with having them listen.
Retrieval practice
In 2006, Henry Roediger and Jeffrey Karpicke published a study in Psychological Science on what is now called the testing effect. Students studied prose passages and then either restudied them or took recall tests without feedback. When they were tested five minutes later, the students who had restudied did better. But on tests given after a delay, prior testing produced substantially greater retention than restudying, even though restudying made students feel more confident about what they would remember.
What this does not show. The materials were text passages, not programming tasks, and the participants were students in a lab. It supports the idea that pulling information out of memory strengthens it, and it warns that your own sense of how well you have learned can be misleading. It does not measure how a coding skill develops.
Putting the two together
Neither study is about learning to code. But together they point the same way: active use beats passive exposure, and effortful recall beats rereading. For technical skills, where the goal is performance, that is a strong reason to design learning around doing.
Theory and practice are partners
"Learn by doing" is sometimes heard as "skip the theory." That is a mistake, and the research does not say it. What it says is about the order and balance.
- Theory first, then practice leaves people holding ideas they have never used. They remember little, because nothing hooked the idea to a problem.
- Practice with no theory produces people who can follow a recipe and cannot debug it. When the recipe breaks, they have no model of why.
- Practice with just-in-time theory works best. You meet a problem, feel why you need an idea, learn it in a few minutes, and use it straight away. Then you step back and explain why it worked.
In short, theory gives you the map and practice gives you the ability to walk it.
How to study practically
Here is a routine that applies the research. It works for Python, Linux, cloud services and AI alike.
- Start with a task, not a topic. "Filter this list of comments" teaches more than "chapter 4: loops".
- Predict before you run. Write down what you think will happen. Your prediction is a small retrieval attempt, and the gap between it and the result is the lesson.
- Change one thing at a time. When something breaks, you will know why.
- Get feedback fast. The sooner you learn whether you were right, the less time you spend practising a mistake.
- Return to old material on a schedule. A quick attempt to recall something a few days later does more than an hour of rereading it.
- Explain it in your own words. If you cannot explain why it worked, you have found the next thing to study.
- Finish something. Small completed projects teach the parts tutorials skip: setup, errors, and tidying up.
The trap: tutorials that feel like practice
Following a tutorial step by step can feel like doing. But if you copy every line and never decide anything, you have practised typing, not problem solving. This is often called tutorial hell: hours of progress that vanish the moment you face a blank file.
A quick test: close the tutorial and rebuild it from memory. Where you get stuck is exactly where you were only following along. That is the useful place to spend your time.
Why we also use stories
Each episode begins with a problem the team needs solved. You learn the idea, try the task and check the result.
How Code Nexus builds practice into every episode
- Every episode is a task you complete. You write code in the browser, run commands in a simulated terminal where the task needs one, or make an engineering decision and justify it.
- Your work is checked as you go. You get feedback on whether you got it right, so mistakes do not go unnoticed.
- Short checks bring ideas back. Recall questions revisit earlier material so you retrieve it instead of rereading it.
- Checkpoints line up with real certifications. Season checkpoints follow the syllabus of exams like PCEP, PCAP and Linux Essentials, so you can measure progress against an independent standard.
The full route, and where each certification fits, is in the certification roadmap.
A note on limits
Practical learning is not magic. It takes longer per session than watching and feels harder, and it only works when the tasks are the right size: hard enough to make you think, and not so hard that you give up. Good design chooses the next task carefully. If you are learning alone, err on the side of smaller steps and finish each one.
Go deeper
- Active learning statistics: a sourced reference with study limitations, a downloadable chart and citation guidance.
- Learning AI without coding experience: how to start with guided tasks and a workable setup.
- Beginner Python and AI projects: three small examples you can create, inspect and explain.
- Theory vs practical learning: what three well-known studies say about balance and guidance.
- Story-driven learning: what the research on narrative and memory does and does not show.
- Tutorial hell: why following along feels like progress, and a way out.
- Learn Python by building: a ladder of projects from first script to classes.
- Codecademy alternative: moving beyond browser syntax drills into workplace engineering.
- Udemy alternative: why active practice beats passive video courses for technical skill.
Start with one task
You do not need a plan to begin. Pick one small problem and solve it with your hands. If you would like the problems chosen and checked for you, create a free account and open Episode 1.
Follow Code Nexus
Frequently asked questions
- Is learning by doing better than watching video lessons?
- For skills you need to perform, the research points strongly toward active practice. A large meta-analysis of undergraduate STEM courses found that students did better under active learning than under traditional lecturing. Videos still have a place for introducing an idea, but the skill forms when you use it.
- What is retrieval practice?
- Retrieval practice means trying to recall or produce something from memory instead of rereading it. In a well-known 2006 study, students who tested themselves remembered more after a delay than students who restudied the material, even though restudying felt more effective.
- Does practical learning mean I can skip theory?
- No. Practice without understanding produces people who can follow a recipe but cannot debug it. The most effective approach is to meet an idea just before you need it, use it immediately, and then step back and explain why it worked.
- How do I learn by doing if I am a complete beginner?
- Start with very small tasks that you can finish in one sitting, predict the result before you run anything, and change one thing at a time. Beginners learn fastest when each task is slightly harder than the last and there is feedback on whether they got it right.
- How does Code Nexus apply learning by doing?
- Every episode is built around a task you complete yourself: writing code, running commands, reviewing evidence or making an engineering decision. Your work is checked as you go, and short recall checks bring earlier ideas back later.
Related articles
- Active Learning Statistics: Evidence and Limits
A sourced reference to active learning, retrieval practice and study methods, with a downloadable chart, research context and limits for each finding.
- Theory vs Practical Learning: What Research Says
Theory or practice first? What research on active learning, guided instruction and the feeling of learning says about the right balance for beginners.
- Udemy Alternative for Coding: Guided Practice
Compare video-led study with guided coding tasks, and choose the practice, feedback and support you need for your next learning goal.
Mentioned in
- Active Learning Statistics: Evidence and Limits
A sourced reference to active learning, retrieval practice and study methods, with a downloadable chart, research context and limits for each finding.
- Can You Learn AI Without Coding Experience?
Starting with no coding experience? See how to approach an AI engineering course, what equipment you need and how to judge your first practical steps.
- What Can a Beginner Make with Python and AI?
Three beginner tasks: a Python message rule, a document-backed answer check and an assistant permission plan. Try them with examples and feedback.
- Codecademy Alternative: Learning Code by Doing
Compare coding course formats, project practice, feedback and workspace requirements before choosing a learning path that fits your goals.
- Udemy Alternative for Coding: Guided Practice
Compare video-led study with guided coding tasks, and choose the practice, feedback and support you need for your next learning goal.
- Are IT Certifications Worth It in 2026?
Compare certification costs, study time and renewal requirements with your goals and other ways to demonstrate your skills.
- How to Pass Your First IT Certification Exam
A practical plan to prepare for and pass your first IT certification exam: study by weight, use retrieval practice, simulate the exam, and handle exam day.
- Learn Python by Building, Not Just Reading
A practical ladder of Python projects from first script to a class-based program, with how much guidance to use at each step and how it maps to PCEP.
- Story-Driven Learning: Why Narrative Helps Memory
What research says about stories and memory, what it does not show, and how story-driven learning can make technical skills easier to recall.
- The Certification Roadmap: Python to Azure AI
A step-by-step certification roadmap from Python and Linux through cloud, AI and DevOps, with what each exam covers and how to sequence them.
- Theory vs Practical Learning: What Research Says
Theory or practice first? What research on active learning, guided instruction and the feeling of learning says about the right balance for beginners.
- Tutorial Hell: How to Get Out of It
Tutorial hell explained: why following tutorials feels like progress but leaves you stuck, what research on learning says, and a practical way out.
- What Is AI Engineering? A Practical Guide
AI engineering explained: what AI engineers build, how the role differs from data science and ML research, the skills involved, and how to start.