The laptop is open, the tea is going cold, and the person beside you has agreed to learn Lua partly out of politeness. The first ten minutes decide whether they come back next week. Almost everything that works comes down to one principle: they type, you talk.
Let them type from the first minute
Open a terminal, have them type a print statement, and run it. Then have them change the text and run it again. Cause and effect is the first lesson, and it is learned through fingers, not through explanation. If you keep the keyboard, you are demonstrating, not teaching.
From there, a loop that prints ten lines, then a variable inside the loop, then a condition that stops early. Each step should produce something visible within thirty seconds. Progress you can see is what keeps a beginner in the chair.
Tables early, syntax trivia later
Most courses spend a week on operators before showing tables. Skip that order. Build a list of three names, print the second one, then build a record with named fields and print one field. Show that both are the same kind of object, because that is the single insight Lua is built on.
Explain local as soon as they write their second variable, and keep explaining it for a few sessions. Scope is the concept beginners underestimate most, and it is easier to teach by demonstration than by definition.
Fix by asking, not by taking over
When the code fails, resist reaching for the keyboard. Read the error message together, out loud, and ask three questions in order:
- Which line does the message name, and what is on that line?
- What did you expect that line to produce?
- What did it actually produce — and how could we print that to check?
Then let them add the print and run it. This is slower for one bug and much faster over a month, because it builds a method instead of a dependency on you.
Hand over a real, tiny job
Around the third session, give them a task that matters: renaming a folder of screenshots by date, converting a list of names into a formatted table, extracting lines that contain a word. It should be small enough to finish in forty minutes and real enough that they would use the result.
Sit on your hands while they work. Answer questions with a pointer to the right part of the manual rather than the answer itself. The moment they run a program that does something they wanted, the subject stops being homework.
What to postpone without apology
Metatables, coroutines, the C API, and module design patterns can all wait. So can style debates about naming. If they ask, give a two-sentence answer and move on; there will be a better moment later, once a program of their own has a problem those features solve.
A good first month of teaching ends with the other person able to start a file, run it, read an error, and fix a bug without you in the room. Everything else is a detail of ordering, and that one outcome is worth planning around.