Lua Study Notes
Everything on SkillVeris tagged Lua Study Notes — collected across the glossary, study notes, blog, and cheat sheets.
30 resources across 1 library
Study Notes(30)
Arrays vs Dictionaries in Lua
See how Lua uses one table type to model both array-like sequences and dictionary-like maps, and learn the rules that keep each style predictable.
Building a Simple State Machine in Lua
A hands-on walkthrough of implementing a finite state machine in Lua using tables and functions, with a traffic-light example.
Closures in Lua
Understand how Lua closures capture upvalues by reference, how to use them for private state and per-iteration loop callbacks, and common closure-based pattern…
Conditionals in Lua
Learn how Lua's if/elseif/else statement works, why only nil and false are falsy, and how to replace long conditional chains with idiomatic and/or expressions…
Coroutines in Lua
Understand Lua's cooperative multitasking primitive: creating, resuming, and yielding coroutines to write generators and non-blocking logic.
Error Handling in Lua (pcall/error)
Learn how Lua signals and catches errors using error(), pcall(), and xpcall(), instead of try/catch exceptions.
Functions in Lua
Learn how to define and call Lua functions, treat them as first-class values, use colon syntax for methods, and understand local vs global function scope.
Inheritance with Metatables
Understand how Lua uses metatables and the __index metamethod to implement inheritance chains between tables.
Installing Lua
A practical walkthrough of installing the Lua interpreter on Linux, macOS, and Windows, verifying it, and adding the LuaRocks package manager.
Loops in Lua
A practical guide to Lua's while, repeat...until, numeric for, and generic for loops, plus how break and Lua's lack of a continue keyword affect loop control.
Lua and C Interop
How Lua's stack-based C API lets Lua scripts call C functions and C programs embed and drive a Lua virtual machine in both directions.
Lua and Embedded Scripting
Why Lua's small, sandboxable runtime made it a favorite embedded scripting language across networking, databases, and system tools like OpenResty, Redis, and W…
Lua and Neovim Configuration
How Neovim replaced much of Vimscript with a first-class embedded Lua runtime, and how init.lua, plugin managers, and the vim.* API structure a modern editor c…
Lua Best Practices
Practical conventions and patterns for writing clean, efficient, and maintainable Lua code.
Lua in Game Development
How Lua's lightweight, embeddable design made it the standard scripting layer for game engines, from Roblox and LOVE2D to World of Warcraft addons.
Lua Interview Questions
Common Lua interview questions and answers covering tables, metatables, scoping, closures, and coroutines.
Lua Operators
A tour of Lua's arithmetic, relational, logical, concatenation, and length operators, including the truthiness rules that surprise newcomers.
Lua Quick Reference
A condensed cheat sheet of core Lua syntax, standard library functions, and idioms for quick lookup.
Lua Types and Variables
How Lua's dynamic typing, variable scope, number/string types, and tables work, with the specifics that trip up newcomers.
Lua vs Python
A practical comparison of Lua and Python covering syntax, performance, embedding, typing, and when to choose each language.
LuaRocks and Package Management
How LuaRocks, Lua's standard package manager, installs, versions, and distributes reusable Lua modules and rockspec-defined C extensions.
Metamethods and Operator Overloading
Learn how Lua's arithmetic, comparison, and conversion metamethods let custom tables respond naturally to +, ==, tostring(), and even direct function-call synt…
Metatables Explained
Discover how Lua metatables let ordinary tables gain custom behavior for indexing, inheritance, and protection, powering nearly every advanced Lua idiom.
Modules and require
Learn how Lua organizes reusable code into modules with the require function, package.path, and the standard return-a-table pattern.
Showing 24 of 30.