Kayavak / Foundations of Computing / CS·11 Computer Science Mastery Projects / Deeper
Deeper · Foundations of Computing
Computer Science Mastery Projects
The questions the chapter doesn't stop for: why this exists, the model to keep in your head, what changes when an assumption does, how sure we are of each claim, and what's still open. Read it after the chapter; back to the chapter.
Why does this exist?
Reading about a mechanism and being able to build it are different abilities, and only the second survives contact with a real problem. That's an old idea in teaching (apprenticeships, laboratory courses) and a well-measured one in learning research: people remember more of what they generate and retrieve themselves than of what they reread. When Richard Feynman died in 1988 his blackboard read "What I cannot create, I do not understand."
Computer science has a long tradition of learning by rebuilding the classics: courses where students write a small operating system, a compiler for a toy language, a network stack or a database from scratch. The projects in this chapter follow that tradition: each forces several earlier chapters to work together, because real systems never use one idea alone.
The mental model
Try it yourself first: write your own model in the Mental Model Explorer, then compare.
A project is an experiment on your own understanding. Every place you get stuck marks a gap that reading hid.
| Question | Answer |
|---|---|
| What is it? | A program you design and build that combines several chapters' ideas |
| Problem it solves | Turning recognition ("I've read about hash tables") into ability ("I can build and debug one") |
| Parts | A goal, a design, an implementation, tests, measurements, and notes on what surprised you |
| How it works | Build the smallest working version, test it, measure it, then extend; each extension touches another chapter |
| Assumptions | You attempt it before looking at a reference implementation |
| When they change | Copying a solution first turns the project back into reading; you get the program without the understanding |
| Where it fails | Projects too large to finish teach frustration; keep the first version tiny |
| Related ideas | Every chapter in this volume; the TiffinBox build applies the same idea across the whole series |
What if?
What if you read the reference implementation first?
Reason it through, then open
You'd understand that solution, and you might even remember it. But you'd skip the part that teaches most: deciding what to build, making a wrong choice and discovering why it's wrong. Studies of learning find that struggling first and then seeing the answer helps more than seeing the answer first, even though it feels slower. Reading the reference after your attempt is where it's most useful: you can compare decisions.
What if you skipped tests because the project is "just for learning"?
Reason it through, then open
Every later change would risk silently breaking earlier parts, and you'd spend your time re-checking by hand instead of learning. Tests are also a second way of stating what you understand: if you can't write a test for a function, you probably can't say exactly what it should do.
Where the boundary is
| Aspect | Understanding | Being able to build |
|---|---|---|
| Shows up as | You can follow an explanation | You can produce a working version without one |
| Tested by | Questions, quizzes | A project, under your own decisions |
| Fails silently | Yes: rereading feels like understanding | Rarely: the program either works or it doesn't |
| Builds | Recognition | Recall, judgement and debugging skill |
How sure are we?
| Claim | How it's known | Where from |
|---|---|---|
| Retrieving information strengthens memory more than rereading it | Measured | Roediger and Karpicke (2006) and many later studies of the testing effect |
| Generating an answer helps memory more than reading it | Measured | The generation effect, studied since the 1970s (Slamecka and Graf, 1978) |
| Attempting a problem before instruction helps later learning | Active research | "Productive failure" studies (Manu Kapur) show benefits; size and conditions are still debated |
| Projects should start tiny | Model | Practical advice; no single study fixes the right size |
Still open
How much struggle is productive and when it becomes discouraging is still studied, and probably differs between people and topics. The honest guide is your own notes: if you're stuck for long without learning anything new, look at one hint, not the whole answer.
What would change your mind? If you could routinely solve new problems after only reading solutions, building first would be optional for you. Test it: try a project in an area you've only read about.
Recall
Why build projects instead of only reading?
Building forces recall and decisions, and exposes gaps that reading hides; retrieval and generation strengthen memory more than rereading.
When is a reference implementation most useful?
After your own attempt, to compare decisions.
What's the testing effect?
Retrieving information from memory strengthens it more than restudying it.
How should a project's first version be scoped?
As small as possible while still working end to end, then extended.
Reflect
Be honest with yourself; this stays in your browser. Anything you can't tick yet is what to revisit.