Advanced OOP tips?

Soo i have question, do you know any OOP good practices or tips or smth to optimize it more or make it better? because i only found 1 tutorial Efficient Object Oriented Programming Tutorial about this topic

1 Like

Typechecking and use composition I guess. Afaik you can’t optimize by just making a method in a different way, the actual part that runs in the method is what matters, so just use regular optimization tricks in them.

1 Like

thx for tip, but what kind of optimization tricks should be used inside classes?

1 Like

Just any optimization tricks that you learn throughout your journey. Here’s a PDF from the creator of lua with some good practices:

1 Like

thx again, i’ll read this

character limit

1 Like

I personally like using single script architecture where I use one script to load all my modules then have all my code within modules and I have 3 types of modules classes, objects and data

if you want to see how this works in action here is a video showing how I do it

1 Like