Wrapping Up

It's time to finish up my first look at Lua Read More…

Error Handling

The last few posts have been about debugging in Lua. Today, I want to see how to handle errors in Lua code. Read More…

Debugger.lua

I've spent a fair amount of time looking at the debug library in Lua. It's too much work to write my own debugger using it. (I'd have to debug the debugger.) There is an alternate solution that someone created known as debugger.lua.


Read More…

More on Debugging

Last time I started looking into how to debug Lua code and discovered it's really a form of introspection and doesn't feel, to me, like true debugging. Today, I'll continue looking at this capability. Read More…

Lua Debugging

I'm using Lua in various ways. I'm playing around with an environment, Codea, and need a way to debug my code. Today, I try to find an answer that works in Lua. Read More…

Lua Modules

Lua modules are reusable code. The interesting thing about Lua modules is that like every other thing in the language a module is a Lua table. Today I create and use my own simple module. Read More…

Closures and Injecting Source Code

I needed a way to change what a Lua program does by letting a user write their own code. I spent yesterday working out how to do this. The solution comes down to closures and injecting source code. Read More…

Using the os Libary

Today, I learn a few miscellaneous things about Lua. I don't want to tackle any big topics, because my day is full.

Read More…

Lua math & io Libraries

I'm going to divert a bit and dive into the math Lua library and its functions. I want to see what is out there. I also want to learn how to work with files.
Read More…

The Global Table, _G

Everything in Lua is a table, including variables. Variables that you don't explicitly label as local, are placed into a table known as _G. Today, I learn a bit about how to work with it.

Read More…

Object Inheritance

Last time I started investigating OOP in Lua and learned how to create objects, instances, and methods using tables and metatables. Today, I want to find how to handle inheritance in Lua.

Read More…

Objects In Lua

Today, I want to learn about OOP in Lua. Why OOP instead of functional programming? Because I still use OOP in many other languages and want to see how Lua handles it. Let's dive in. Read More…

Meta Tables

Today, I want to learn about Lua meta tables, what they are and how to use them.

Read More…

Iterating Tables & Closures

Last time I learned about tables, the only real data structure in Lua. I'm going to cover a few more items related to them.

Read More…

Tables

Today, I dive into something Lua calls a "table". This is a data structure, but I doubt it's a table in the SQL database definition.
Read More…

Control Structures & Loops

Today I want to learn Lua's control structures and loops. All languages have features that allow you to make decisions in code and loop over code. Read More…

Functions & Operators

Let's look at Lua functions today. Read More…

String & Scope Basics

This time around I take a quick look at the basics of Lua strings and how scope works.
Read More…

Welcome to Learning Lua

Welcome to my Lua learning journey. I was originally going to include learning Lua as part of my getting up to speed on PICO-8, but I knew PICO-8 uses a subset of Lua and didn't want to conflate or confuse the two. I've decided to break Lua out separately. Read More…

This site does not track your information.