Ideas, , 6 min read
What spaced repetition gets right about engineering skill
Flashcards are an odd tool for engineers, but the research behind them says something true about how skill is built, and where cards stop helping.
On this page
Engineers tend to be suspicious of flashcards. They look like a tool for vocabulary lists and anatomy exams, not for designing a system or finding a bug. The suspicion is half right. Flashcards are a narrow tool. The ideas underneath them are not narrow at all, and they say something true about how any skill, engineering included, gets built and kept.
Remembering is a form of practice
The best-known evidence comes from a 2006 study by Henry Roediger and Jeffrey Karpicke. Students read short prose passages. In one condition they read a passage four times. In another they read it once and then tried three times to write down everything they could recall, with no feedback.
Five minutes later, the readers did better. Re-reading had loaded the passage into short-term memory. A week later the result flipped: the group that had practised recalling remembered 61 percent of the passage, and the group that had read it four times remembered 40 percent. The readers had gone through the text about four times as often, 14.2 readings against 3.4, and still kept less. They were also more confident that they would remember it.1
This is the testing effect. Pulling something out of memory changes the memory and makes it easier to pull out next time. Reading puts information in front of you. Recall makes you rebuild it, and only the second trains what you will need later, which is producing the answer without the page open.
For engineers this matters more than it seems. At work you rarely need to recognise the right answer when someone shows it to you. You need to produce it: the flag, the failure mode, the reason a query is slow. Re-reading trains recognition, and recognition creates a convincing feeling of knowing.
Hard in the right way
Robert Bjork introduced the term desirable difficulties in 1994, and later summarised the evidence with Elizabeth Bjork. The idea: some conditions that slow learning down in the moment, such as spacing practice out, mixing problem types, or testing instead of re-reading, make the result last longer. Conditions that make practice feel smooth often do the opposite.
The trap is that we judge our own learning by how fluent it feels. A tutorial you follow line by line feels productive. Closing it and rebuilding the same thing from memory feels slow and a little embarrassing. The research says the second session is the one doing the work.
The word “desirable” matters. Not every difficulty helps. A problem you have no way into teaches little, and a confusing explanation is just confusing. The useful kind of difficulty is effort spent retrieving or applying something you have met before, at a point where you can still succeed with some struggle.
FSRS in plain words
Spacing is the other half. Reviewing something several times with growing gaps beats the same time spent in one sitting. The open question is always how long each gap should be, and that is what a scheduler decides.
FSRS, the Free Spaced Repetition Scheduler, is an open-source algorithm that is now built into Anki. It tracks three numbers for each card:
- Stability: how long the memory lasts. Formally, the number of days until your chance of recalling it drops from 100 to 90 percent.
- Difficulty: how hard it is for you to make that card more stable.
- Retrievability: your chance of recalling it right now, which falls as days pass.
After each review, FSRS updates these from your answer and schedules the next review for the day your retrievability is predicted to reach a target you choose. Anki’s default target is 90 percent. Raise it and you remember more but review more, and the workload grows steeply as you approach 100.
The forgetting curve at the centre fits in a few lines. This is the curve from FSRS 4.5, simplified; newer versions fit more of the constants to your own review history.
DECAY = -0.5FACTOR = 0.9 ** (1 / DECAY) - 1 # makes R equal 0.9 when t equals S def retrievability(days: float, stability: float) -> float: return (1 + FACTOR * days / stability) ** DECAY def next_interval(stability: float, target: float = 0.9) -> float: return stability / FACTOR * (target ** (1 / DECAY) - 1)Notice what the scheduler is doing. It is not trying to make reviews easy. It waits until you are likely, but not certain, to remember. That is desirable difficulty turned into a formula.
Where flashcards stop helping
A card trains one retrieval: a prompt goes in, an answer comes out. That is ideal for things with a short, stable answer. What can a process do on SIGTERM that it cannot do on SIGKILL? What does recall@k measure? Which status code tells a client to slow down and retry? Engineers carry hundreds of facts like these, and having them in memory rather than one search away changes how fast you can think.
Most engineering skill is not that shape. Debugging, design and code review are judgement: noticing which of many details matters in this particular case. You cannot put “notice the right thing” on a card. What carries over is the principle underneath it: practise producing rather than recognising, and come back after a gap.
In practice that means a few habits beyond the deck:
- Rebuild instead of re-reading. A few days after a tutorial, implement the same thing from an empty file. Where you get stuck is your real gap.
- Mix your problems. Five unrelated bugs in a row are harder than five of one kind, and they teach you to recognise which kind you are looking at, which is half of debugging.
- Guess before you check. Before you look up why a test failed, write one sentence on why you think it did. Being wrong is useful data.
- Make cards from your mistakes. The best cards are not copied from documentation. They come from the moments you were surprised.
Flashcards keep the vocabulary of a field in your head so that the hard thinking has something to work with. They do not do the hard thinking for you.2
The quick checks at the end of lessons here feed a review queue scheduled by FSRS, for the reasons above. The glossary entry on spaced repetition has the short version, and the free email course turns your answers into review cards, so you can try the schedule on material you actually need.