It's possible to use S.O.L.I.D principles in Lua?

Recently i was studying about S.O.L.I.D principles, and thought if it’s possible to use this principles in Lua. If it’s possible, how can i apply S.O.L.I.D principles in my roblox game? If not which will be the best alternative to keep the game code more understandable and flexible?

1 Like

For anyone unsure of what the original post was alluding to the following might help.

Sure, there can be objects in lua. You could apply SOLID principles to those objects.

You can also apply SOLID principles to the functional programming side of lua.

According the the information from the Wikipedia article a couple posts above, since it has to do with oop and as far as I’m aware, rlua / luau is an oop programming language, so I’m pretty sure S.O.L.I.D principles are possible in lua. I’d need to do a bit more research to tell you how to do it, but yeah.