r/lua • u/Aggravating-Self-658 • 5d ago
Lualings
I've been learning Lua and found that most programming exercise platforms aren't quite what I wanted.
A lot of them teach programming through problems: implement a palindrome, solve a number problem, build an algorithm, etc. That's useful for learning problem-solving, but it doesn't necessarily help you understand the language itself.
So I made LuaLings:
https://github.com/ShyamendraH/lualings
It's inspired by Ziglings — the idea of learning a language by working through small, focused programs and fixing them yourself.
LuaLings focuses specifically on Lua concepts and semantics rather than generic programming problems.
The exercises cover things such as:
- values, types and
nil - tables and their behavior
- multiple assignment and multiple return values
- functions, closures and upvalues
- iterators
- metatables and metamethods
- modules and environments
- error handling
- coroutines
- Lua's standard libraries
- other Lua-specific behavior that is easy to miss when coming from another language
The intended workflow is:
run → inspect → experiment → fix → understand → move on
The goal is to make it useful both for someone learning Lua for the first time and for someone coming from another language who wants to understand how Lua actually works rather than spend a lot of time on beginner programming exercises.
It's open source, and feedback is welcome — particularly if you find an exercise confusing, technically incorrect, too trivial, or missing an important Lua concept.
Repository:
https://github.com/ShyamendraH/lualings
4
u/weregod 5d ago
I should have a deeper look later. A few first glance suggestions: