#Professional Object Orientated Programming

1 messages · Page 1 of 1 (latest)

true grove
#

I learn OOP from reading other's failed attempt at it and I think i only got the shallow surface of it. When I see code in videos or from people that has a bunch more stuff than what I've learnt, I always try to find smthing on the dev forum about it. For example this one plugin that sets up OOP stuff for you. Also a bunch of other stuff like initilasing and Janitor. All of this I've never even been told about and searching it up sometimes doesnt get me the answers I want.

So im wondering if theres a 10 hour video on it for LuaU or some kind of community resource that explains each and every bit.

golden salmon
#

its super simple

#

you have metatable

#

with simple data

#

and then the index metamethod pointing to the array with the functions

#

and using : on a table passes self as first argument to function

#

so then u have the array with the data (the object)

#

and a way to use functions on it

#

and then its ggs from there

tiny karma
#

that condusing

golden salmon
#

it not

#

smh

idle scarab
#

Cirno is right you do not need a 10 hour video on OOP its pretty simple just search up a small video on it and youll learn all youll need

true grove
#

I know OOP

#

ive used it before and im using it as we speak

#

but theres a bunch of other stuff that most videos miss

golden salmon
#

then y r u asking for oop tutorial

true grove
#

you didnt even read then

graceful sage
#

Idk

torpid beacon
#

I think the best way to learn OOP is to create your code as expandable as possible

golden salmon
torpid beacon
#

how can you limit OOP?

graceful sage
torpid beacon
#

explain it to me tho 😭

#

what are you understanding under OOP

serene steeple
# true grove I learn OOP from reading other's failed attempt at it and I think i only got the...

oop is an abstraction technique, that's probably what you're missing. https://en.wikipedia.org/wiki/Abstraction_(computer_science)

In software, an abstraction provides access while hiding details that otherwise might make access more challenging. It focuses attention on details of greater importance. Examples include the abstract data type which separates use from the representation of data and functions that form a call tree that is more general at the base and more specif...

graceful sage
#

OOP is jewish

golden salmon
graceful sage
golden salmon
#

antisemitism

#

not kewl dood

#

antizionism is the cool one

graceful sage
true grove
#

ill reword my question

#

Where do I find info on the OOP techniques that big games use

#

for anyone else that may read ig

golden salmon
#

you mean object pooling

#

composition

#

?

true grove
#

and yeah object pooling is one ig

golden salmon
#

Using Global variables is malpractice

#

You shouldn't do that

#

One of the images is just type declarations

#

__init is just the name they used for the function

true grove
#

huh

golden salmon
serene steeple
true grove
craggy scroll
#

you learn these as you code in oop and ask for help

#

you csn check this out for some common design pattern tho

true grove