Counters and the great reformat
A card can count: copy the number from the line above, put it on this line and Ctrl-a it. Then the great reformat: 500 orders around the totals, and a numbered pick list.
Monday, 4:30 p.m. Two jobs before you go home: the kitchen's pick list for tomorrow, numbered line by line, and then the real run on all 500 orders. You could type the first few numbers. You won't type the rest.
A card can't hold every number. It can hold a way to work out the next one.
Warm-up from earlier chapters
Two from earlier chapters, from memory, before the new idea. Two wrong tries show the answer.
A card that counts
Write the first number by hand: 1. on the first line. Then, on the second line, write a card that reads the number on the line above and clicks the tally counter: k0 yf␣ copies 1. , j0 P puts it at the start of this line, 0 Ctrl-a makes it 2, and j moves on. The card never changes, but each cook reads the line above, so every line gets the next number.
1. al-pastor x2veggie x1birria x3pollo x1tinga x21. al-pastor x22. veggie x1birria x3pollo x1tinga x21. al-pastor x22. veggie x13. birria x3pollo x1tinga x21. al-pastor x22. veggie x13. birria x34. pollo x1tinga x2Number the pick list
Eight lines for the kitchen's pick list. I 1. Esc on the first by hand, then j, write the counting card, and cook it on the other six.
This exercise needs a keyboard. Read on, and play it at your computer.
Which number goes up?
The cursor is on the 1 of x1, after the 1. at the start. You press Ctrl-a. What does the line say?
Nine to ten
The card never changes; it copies whatever the line above says. Line 9 says 9. tinga x2. You cook the card on the chorizo line. What does it say?
The great reformat · 500 orders
4:45. The whole export: 500 rows, with a hand-typed TOTAL line after every fifty. Every order row becomes { id: …, item: "…" },, and every TOTAL line stays exactly as typed. First a sample: write the card on the first row and test it once on the second. Then the other 498 rows, without touching a TOTAL. Afterwards, /TOTAL↵ and a few n will show you whether they all survived.
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 great reformat · The pick list
5:20. The kitchen's pick list for tomorrow, thirty lines: number them 1 to 30.
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 track, from memory
Six situations from today.