A checklist earns its place only if every line can fail. Most starter lists mix in preferences and never say when a box should be ticked, which makes them decoration. The items below are grouped by when they matter, and each one has a way to tell whether it is genuinely done.
Before you write a line
- A Lua binary is installed and
lua -vprints a version you can name. - You can run a saved file from the terminal, not only the interactive prompt.
- You have one editor you have stopped comparing against others.
- All practice files live in a single folder with a name you will still recognize in March.
Those four are non-negotiable because they remove the two ways a beginner loses an evening: not knowing which interpreter ran the code, and not knowing where the file went. Everything else can be improvised.
Your first week’s kit
- A scratch file kept permanently open for testing single expressions.
- Three print helpers you trust: one for values, one for types, one for tables.
- A linter installed and passing on a deliberately tiny file.
- The reference manual bookmarked, at the section on standard functions.
- One small project chosen in advance, described in a single sentence.
The print helpers matter more than they sound. When a table prints as an address, beginners conclude the language is opaque. A six-line function that walks the table and prints key-value pairs removes that wall in an evening. Write the helpers once, keep them in the scratch file, and copy them into each new project rather than rebuilding the same loop from memory.
Checks that catch silent failures
These are not features, they are habits. Tick them once you have written code that does each one without being reminded:
- Every
io.openresult is checked before use. - Every function that can fail returns a value the caller actually inspects.
- No variable is assigned without
localunless the host program requires a global. - Every table with removed elements is either treated as a sequence or counted explicitly.
Silent failures are the expensive kind, because the program keeps running and produces a plausible wrong answer. A return value nobody inspects is a failure you will meet later, with less information about where it started. Learning to check early avoids the entire genre.
Boxes you can leave unticked for now
Metatables, coroutines, the C API, the module ecosystem, and anything involving a build system are all fine to postpone. None of them is needed to write a working script of a few hundred lines, and each is easier to learn once a real problem demands it. Leaving them unticked is a decision, not a gap.
Print the list, or keep it in the same folder as the practice files. The point is not to finish it quickly but to know, at any moment, which boxes are actually true.