Demos
Pick an exercise and step through its 45-minute build. Watch the clock and the grader. Then step into the production version, part by part, with the talk line beside each change.
- 1Each build plays as checkpoints. Every checkpoint is real source: the final code with the later parts left out.
- 2Every checkpoint was compiled, its tests were run, and its server was graded. The bars are results, not estimates.
- 3The clock is arithmetic: typed characters at 500 a minute, against 20 minutes of typing.
- 4After the build, each production part sits beside the talk line that explains it.
Loading the build.
The code view leaves out each file's package line and imports. The clock counts the package line, and an editor adds the imports.
I have a running server before 15 minutes of typing. After that, I add one feature and its test at a time.
| exercise | typing clock | first server at | all checks pass at | checks at first server | checkpoints | typed characters |
|---|---|---|---|---|---|---|
| E1 Key-value store with nested transactions | 18:19 | 11:29 | 15:53 | 14 of 30 | 9 | 9,162 |
| E2 Driver delivery payments | 19:57 | 13:46 | 18:29 | 20 of 36 | 10 | 9,976 |
| E3 Music player analytics | 17:00 | 11:23 | 15:17 | 22 of 35 | 8 | 8,501 |
| E4 Expense rules engine | 19:52 | 14:10 | 17:35 | 25 of 32 | 9 | 9,935 |
| E5 Travel expense calculation | 19:48 | 14:40 | 15:23 | 5 of 44 | 8 | 9,900 |
| E6 Room booking with holds | 19:52 | 13:41 | 14:50 | 4 of 36 | 8 | 9,936 |
| E7 Wallet transfers | 19:57 | 13:36 | 18:24 | 8 of 29 | 9 | 9,978 |
| E8 Job queue with leases | 19:46 | 13:35 | 17:05 | 20 of 33 | 8 | 9,883 |
| E9 Directory and audit log | 19:59 | 14:53 | 15:45 | 12 of 33 | 8 | 9,995 |
All nine builds fit the 20 minutes of typing. The first server comes after most of the logic, because each build works from the bottom up.
| claim | how we know | status |
|---|---|---|
| The code is the real build | Every line belongs to one checkpoint. The last checkpoint equals the files, byte for byte. | Tested |
| Each checkpoint compiles | The Go compiler builds each one in an empty module. | Tested |
| Your tests pass | The tests typed so far run at each checkpoint, and all pass. | Tested |
| The grader bars | The real main.go starts, and the grader calls it over HTTP. A check that passes at one checkpoint passes at every later one. | Tested |
| The production diff and the talk lines | A test reads them from the exercise sheet, and it fails if the two differ. | Same data |
| The clock | Typed characters at 500 a minute, by the rule on each exercise sheet. | Arithmetic only |
Each result here comes from a real run. If the code changes, the run fails until the recording is made again.
| not measured | what that means |
|---|---|
| A person building this | No one was timed. The clock is a count of characters and not a stopwatch. |
| Reading and thinking | The clock stops at typing. It has no time for the spec, for mistakes, or for runs of the grader. |
| First drafts | Each checkpoint is the final code with parts left out. In the room, your early code can be simpler. |
| Races at a checkpoint | The checkpoints run without the race detector. The whole build runs with it in its own tests. |
| The production code here | The player shows the diff and does not run it. Each exercise has its own production tests. |
| Commits | Each checkpoint is the state one commit would hold. No saved history of commits exists. |
The clock counts typing and nothing else. I plan the other 25 minutes for reading, thinking and debugging.
| you see | it means |
|---|---|
| Some checks pass before their feature exists | A route that does not exist answers 404. At checkpoint 5 of E1, "an unknown transaction is 404" passes with no commit route. |
| A bar stays flat at a test checkpoint | A test adds no server code. The bars move only when the server changes. |
| One checkpoint moves most of the bars | The logic was typed earlier, and one route exposes it. The service and the store do not show until a route calls them. |
A green check is evidence about one behaviour. I read which checks moved, and not only how many.
| step | do this |
|---|---|
| 1 | Read the spec on the exercise sheet. Do not open the player yet. |
| 2 | Build it with a 45-minute timer. Commit at each working step. |
| 3 | Run the grader at each commit, and write down your time. |
| 4 | Step through the player. Compare your order and your first server time. |
| 5 | Step into production. Say each talk line out loud, without reading it. |
I rehearse alone first and watch the player after. The gap between my order and the player's order is what I study.
0 of 7 known
You type a test, and the grader bars do not move. Why not?
In E1, "an unknown transaction is 404" passes at checkpoint 5, before the commit route exists. Is that a bug?
Why do the first checkpoints show no grader result?
The clock shows 11:29 at the first server in E1. Will you be there at 11:29 in the room?
The E1 store at checkpoint 1 already compares read versions. The E1 sheet adds version checks at 45 minutes. Which is right?
A function in a build is renamed. What stops this page from showing the old name?
Why does the order go store, service, routes, and not one route at a time from the top?
- budget
- 20 minutes of typing at 500 characters a minute.
- typing
- 17:00 to 19:59 across the nine builds.
- first server
- 11:23 to 14:53 of typing.
- all checks
- 14:50 to 18:29 of typing.
- coverage
- 77 checkpoints and 308 grader checks.
Typing arithmetic from the files, not a measurement of a person. Grader results come from real runs.