To learn a live-coding language faster, imagine the sound before pressing Run, then diagnose the difference
Sam Aaron’s explicit advice for learning Sonic Pi is a three-step loop: write the code, imagine in your head what it will sound like before pressing Run, then run it — you will probably be wrong — and figure out why it differed from your expectation. Repeating this prediction → execution → diagnosis cycle builds an internal model of how the system behaves and accelerates learning far more than simply running code and listening. Prediction is what makes each run informative: it turns every execution into a test of your mental model rather than passive experience. The principle generalizes to any live-coding environment.
Examples
You write a loop combining a drum sample with a fast Amen break, guess how the two will overlap, press Run, hear something different from your guess, then work out why (e.g. tempo/rate) — and learn from the gap.
Assessment
State the three-step loop Sam Aaron recommends for learning Sonic Pi. Why does predicting the sound before running teach faster than just running and listening?