Error Handling
06/29/21 09:04
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
06/01/21 07:30
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…
Read More…
More on Debugging
05/18/21 07:33
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
04/27/21 07:50
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
04/13/21 08:47
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
04/06/21 08:25
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
03/30/21 08:17
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…
Read More…
Lua math & io Libraries
03/16/21 08:33
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…
Read More…
The Global Table, _G
03/09/21 09:02
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…
Read More…
Object Inheritance
03/02/21 08:15
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…
Read More…
Objects In Lua
02/23/21 08:08
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
02/16/21 08:23
Today, I want to learn about Lua meta tables, what they are and how to use them.
Read More…
Read More…
Iterating Tables & Closures
02/09/21 08:09
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…
Read More…
Tables
02/02/21 08:16
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…
Read More…
Control Structures & Loops
01/26/21 08:19
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…
String & Scope Basics
01/12/21 14:59
This time around I take a quick look at the basics of Lua strings and how scope works.
Read More…
Read More…
Welcome to Learning Lua
01/09/21 09:23
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…