Coding by Hand
Most people learn to code by copy-pasting. They watch a video, paste a snippet, run it, and call it learning. Six months later they cannot write a for loop from memory. The shortcut was the problem. Your fingers never typed the keys, so your brain never wired the path. This whole course is built on the opposite rule: every line of Rust in here, you type by hand. No copy, no paste, no autocomplete shortcuts. The point is not the code on the screen. The point is the path you build in your head while your fingers move.
coding-by-hand/gym-brain-diagramcontent/image-manifest.json, then run pnpm generate:images.This idea is older than computers. A psychologist named Anders Ericsson spent forty years studying how violinists, chess players, and surgeons got good. He kept finding the same thing — the people who reached the top did not have more talent than the people who plateaued. They had more reps. Not just more hours, but more focused reps where they did the hard part themselves. Steve Wozniak hand-wired the entire Apple I motherboard from a drawing in his notebook because there was no factory yet. He said later that the act of laying out every trace by hand was what taught him the chip. When you skip the typing, you skip the wiring.
Here is the smallest Rust program that exists. A function called main, a single println! line, no imports. Open a fresh file in your editor and type it out exactly. Do not paste it. Watch the brackets, watch the semicolon, watch where the exclamation point goes.
fn main() {
println!("hello, world");
println!("you typed this by hand.");
}Save the file as hello.rs. Then in a terminal, in the same folder, run two commands one after the other.
rustc hello.rs
./hellorustc is the Rust compiler. It reads your .rs text file and turns it into a real executable — a program your computer can run directly. The second command runs that executable. You should see this on your screen.
hello, world
you typed this by hand.That output is not pasted in by hand. It came out of the binary I just compiled and ran inside this site's test pipeline. Every Rust lesson in this course works the same way. The code you see is the code that ran. The output you see is the output it printed. If either ever drifts, the build fails and the page does not ship. You are looking at proof, not promise.
Now do the rep. Delete hello.rs and type it again from memory. If you get stuck, look back at the snippet, close the page, and try again. Three clean reps from memory and your fingers will own the shape of a Rust program forever.
Next lesson — why this language exists at all, and why the people who built it were willing to make the compiler argue with you about every line.