Ship the kitchen display
The whole of track three against the clock: cut and change, copy and reorder, then fix the shape, on the new kitchen display.
Thursday, 11:15 a.m. The new kitchen display ships at noon. The cooks have already unplugged the old one, so if this doesn't work, lunch is cooked from tickets taped to the wall.
Forty-five minutes, one file, and the whole language: verbs, nouns, numbers and the jar.
Warm-up from earlier chapters
Two from earlier chapters, from memory, before the new idea. Two wrong tries show the answer.
The whole language, on one card
Verb, then noun: d c y > gU with any motion. Say the verb twice for the whole line, use D and C for the rest of it, put a number wherever it reads best, and remember the jar: whatever you yank or delete, p pours back.
log("shown", ticket.id, debugInfo(ticket)); log("shown", ticket.id, debugInfo(ticket)); log("shown", ticket.id, debugInfo(ticket)); log("shown", ticket.id, debugInfo(ticket));Stage 1 · Cut and change
11:16. The top of KitchenDisplay. Somebody started this class from a copy of the old showTicket before Monday's fix, and copies = 3 came along for the ride. Nothing calls show yet, so no cook has seen it; at noon, everything will. The parameter goes. So does the legacyMode line, rnder gets its missing letter, and the debugInfo call leaves the log. One sentence each.
Stuck? Show a hint
legacyMode line: dd · from the comma before copies: dt) · rnder: ciwrender<Esc> · from the comma before debugInfo: df)This exercise needs a keyboard. Read on, and play it at your computer.
Stage 2 · Copy and reorder
11:31. render draws before it clears, and the header lands under the tickets. Move screen.clear() up above the first draw, swap the two draws so the header comes first, then copy the rows draw and make the copy draw the footer.
Stuck? Show a hint
The first exercise of every lesson is free. Pro unlocks the rest, every track, for good.
See ProThis exercise needs a keyboard. Read on, and play it at your computer.
Stage 3 · Shape
11:52. The Formatter got here before you fixed its config. CLEAR should be the method name clear, and the two lines inside it go back in one level.
Stuck? Show a hint
The first exercise of every lesson is free. Pro unlocks the rest, every track, for good.
See ProThis exercise needs a keyboard. Read on, and play it at your computer.
The whole language, from memory
Seven sentences from this week.
Extra practice optional
The chapter is done. These rounds keep going as long as you like: stop whenever it stops being useful.
Kitchen display, live
Endless mixed repairs from the whole track: cut, change, copy, swap, join, shape.
The first exercise of every lesson is free. Pro unlocks the rest, every track, for good.
See ProThis exercise needs a keyboard. Read on, and play it at your computer.