Lua Mini Reference: A Quick Guide to the Lua Scripting Language for Busy Coders (Paperback)

Lua Mini Reference: A Quick Guide to the Lua Scripting Language for Busy Coders By Harry Yoon Cover Image

Lua Mini Reference: A Quick Guide to the Lua Scripting Language for Busy Coders (Paperback)


Amazon will increase the printing cost by 40% on June 20th for indie publishers like us. Regrettably, some of the increased cost will have to be passed through the readers. Please note that the paperback price will be increased accordingly around that time. (Likely, around 2 4 US. dollars, if not more.)

Learn Lua in a Weekend

Note: This book is not a tutorial on programming in Lua, and it is not intended for complete beginners.

This book is a mini language reference on the Lua programming language. Lua is one of the "smallest" and simplest programming languages, and it is widely used as a scripting language in many applications, including various game engines such as Roblox. Lua is a "beginner-friendly" programming language. We go through all important features of Lua, as a standalone coding language in this book.

Although the book is written as a reference, you can read it more or less from beginning to end and you should be able to get the overall picture of the Lua language if you are familiar with some basic syntax of Lua. The book also includes all essential builtin functions and the standard library functions.

The book covers
  • Lua standalone interpreter. How to effectively use the Lua REPL.
  • Lua program execution. How to run the lua command in various ways.
  • Types, literals, variables. How to assign values to local variables and reference them.
  • Expressions. For example, how to do simple arithmetic and comparison operations.
  • Functions. How to define a named and unnamed functions, and how to call these functions.
  • Statements, such as the if conditional and the for, while, and repeat iteration statements.
  • Tables. And, various uses of tables as a map and an array, etc.
  • Metatables. How to customize the behavior of tables using metamethods.
  • Basic object-oriented programming (OOP) in Lua. Factory methods and classes.
  • Iterators. How to customize the iteration behavior of tables.
  • Concurrency. Various coroutine methods for thread lifetime management.
  • Lua standard libraries: math, string, table, os, io, file, and coroutine.

Order your copy today
Product Details ISBN: 9798362177249
Publisher: Independently Published
Publication Date: November 9th, 2022
Pages: 196
Language: English