Learn how to create your own Lua modules in this comprehensive guide. Explore encapsulation using closures, understand module loading, and master the art of modular programming in Lua.
Category: Software Development
Learning Lua Step-By-Step (Part 7)
Learn Object-Oriented Programming in Lua with this comprehensive guide. Explore classes, inheritance, polymorphism, and more, with plenty of example code to solidify your understanding.
Learning Lua Step-By-Step (Part 6)
Learn about the Lua os module and the Lua Posix module in this comprehensive guide. Explore file management, environment variables, time and dates, and more!
Learning Lua Step-By-Step (Part 5)
In this lesson, we’ve explored the concept of Co-Routines in Lua, understanding their importance, usage, and benefits. We’ve seen how Co-Routines can be used to manage concurrent tasks efficiently and demonstrated their usage through example code. By mastering Co-Routines, you’ll be better equipped to write scalable and efficient Lua programs.
Learning Lua Step-By-Step (Part 4)
It’s important to close a file after you’re done working with it. Leaving a file open can lead to resource leaks and other issues, especially in long-running programs. Always remember to call io.close() when you’re finished with a file.
Learning Lua Step-By-Step (Part 3)
Learn how Lua’s versatile data structures, including tables, arrays, and dictionaries, empower developers to efficiently organize and manipulate data. Explore tutorials, books, and online courses to deepen your understanding and master these essential concepts in Lua programming.
Learning Lua Step-By=Step
Learn Lua programming from the ground up with this step-by-step tutorial. Explore the fundamentals of Lua, including data types, console output, and more. Perfect for beginners ages 10 and up.
Words of Encouragement and Acknowledgement of Impostor Syndrome for Developers
Impostor Syndrome, as articulated by this retired engineer, offers a profound insight into the evolution of expertise within one’s field. It delineates a trajectory familiar to many: the initial surge of confidence upon completing a CS course or bootcamp, swiftly followed by the humbling experience of entering the professional sphere and encountering individuals of greater experience and wisdom.
Continue Reading “Words of Encouragement and Acknowledgement of Impostor Syndrome for Developers”
Introduction to Language-Oriented Programming
Explore the synergy between Language-Oriented Programming (LOP) and Artificial Intelligence (AI) in revolutionizing software development. Learn how domain-specific languages (DSLs) empower developers to express solutions intuitively, and discover the potential of AI in DSL design, development, and usage optimization.
Continue Reading “Introduction to Language-Oriented Programming”
Dynamically Adding Properties to Python Classes
In many programming scenarios, you may encounter situations where you need to dynamically add properties to classes. This can be especially useful in game development, where different game objects may require unique properties based on their specific functionality or state. In this tutorial, we will explore five methods of dynamically adding properties to classes: the crude method, monkey patching, and using decorators, Meta-Classes, and the setattr method. We will illustrate each method using a scenario of an adventure game where we have a Room class and an Item class. This allows our code to be more general.
Continue Reading “Dynamically Adding Properties to Python Classes”
Recent Comments