Why "learn by doing" actually works
Passive tutorials feel productive but rarely stick. Here's why writing code from lesson one changes everything.
Most people who set out to learn to code start with a video course. Hours in, they can follow along - but sit them in front of a blank editor and nothing comes out. Sound familiar?
The problem isn't you. It's the format.
Recognition vs. recall
Watching someone code builds recognition - you nod along, it all makes sense. But coding requires recall: pulling the right idea out of your head with nothing on screen but a blinking cursor. These are different skills, and only one of them gets you a job.
The fastest way to build recall is to practise it. Constantly. From the very first minute.
What that looks like on Devpuff
Every Devpuff lesson puts a real editor in front of you:
function greet(name) {
return `Hello, ${name}!`;
}
console.log(greet("world"));
You change the code, hit Run, and see it execute. When you get it right, you earn diamonds and your streak ticks up. When you get it wrong, you learn immediately - not three videos later.
Small reps, every day
You don't need marathon sessions. Five focused minutes of writing code beats an hour of watching it. The streak isn't a gimmick - it's the mechanism that turns "I should learn to code" into "I code every day."
Ready to try it? Start free →
More from the blog
The quiet power of a coding streak
A streak is a tiny promise you make to yourself every day. Here's how to keep one alive without burning out.
Read moreMeet Ask Puff, your AI coding tutor
Stuck on a lesson? Ask Puff nudges you toward the answer without ever handing it over.
Read moreReady to write some code?
Put this into practice - start your first free lesson. No setup, no credit card.