Problem How idiomatic is my code? Since Lua does not have classical inheritance such as in OO languages. Feedback on […]
Tag: lua
Lua OOP and classically-styled prototypal inheritance
Problem I want to do some object-oriented programming in Lua, and I decided on something like this: local B = […]
Building a 64 × 64 particle accelerator frame in Minecraft with a computercraft turtle
Problem I dont think this will work anywhere besides in minecraft with computercraft but it’s all correct syntax. I just […]
mIRC scripting like string token manipulation in Lua
Problem I’m trying to reproduce in Lua the mIRC scripting manipulating tokens function: local function tokenize(C, text) local char = […]
String tokenization and replacing a numbered field
Problem I created various functions for string manipulation in Lua, where the strings are composed of tokens separated by an […]
Object Oriented programming in lua in a functional fashion
Problem I’ve discovered (and written) a way to object oriented programming in lua in a functional fashion instead of the […]
Lua string parsing
Problem The following code takes a string and converts it to it’s number equivalent. A=1 … Z=26, while keeping all […]
Generating random strings
Problem I’ve created the following string manipulation function for randomizing my passed string in Lua: require “string” require “math” math.randomseed( […]
Lua program to clean up phone numbers
Problem How idiomatic is my code? Since Lua does not have classical inheritance such as in OO languages. Feedback on […]
Sum-based sliding rate limiting with Redis and Lua
Problem As I’m new to Redis, I would like to get a review / improvement suggestions from Redis / Lua […]
- 1
- 2