#Can't understand OOP

1 messages · Page 1 of 1 (latest)

spark fossil
#

i just dont get OOP and what would you use it for?

ocean galleon
#

whats OOP

mild solar
spark parcel
#

kinda shit

#

good for early gen programming

#

dont use it if you dont understand it

#

i recommend just running with procedural

drifting narwhal
#

or something

spark parcel
#

its only useful for understanding structure in a game

#

past that, procedural works fine

#

each object is assigned with dependant data & methods, think of it as ‘behavior’

#

you control those objects with a module, done independantly within each object itself by ‘inheriting’ methods from a ‘class’

spark parcel
#

A npc would be an easy example

spark fossil
spark parcel
#

npc could be a super class
zombie would be a inheriting class

spark parcel
eternal locust
spark parcel
#

theres odd behavior in roblox instances

spark fossil
#

what'd the difference of just normal coding?

#

between normal luau and oop

spark parcel
#

no difference

#

its not better

#

by any means

#

major misconception

#

its only a ‘way’ that people prefer

#

to write code

spark fossil
#

ooh

mild solar
drifting narwhal
spark fossil
#

u dont need to use oop

#

its just a thing to do

#

am i right?

mild solar
spark fossil
spark parcel
#

oop is a good concept to learn if youre advancing into codebases

#

lots of people in rovlox still use OOP

drifting narwhal
spark fossil
spark parcel
#

if youre coding with someone

spark fossil
spark parcel
#

you can get confused with all that metatable magic

spark parcel
#

to structure n write code

eternal locust
spark parcel
#

i know buddy

eternal locust
#

im not ur buddy

spark parcel
#

its magic to them

#

lil bro tryna ego me

#

whats a namecall

#

😭 sybau

spark fossil
#

dam

eternal locust
#

?

drifting narwhal
spark fossil
#

@eternal locust just got pressed

spark parcel
#

whats it in

spark fossil
spark fossil
spark parcel
#

namecall aint a metamethod you can use in luau 🥀

eternal locust
spark parcel
#

what language is it in

eternal locust
#

luau???

drifting narwhal
spark parcel
spark parcel
#

😞

spark fossil
eternal locust
# spark parcel skid

? explain what youre talking about because youre yammering nonsense about a metamethod that hasnt been accessible in years

#

well I mean Its still accessible if youre exploiting

spark parcel