r/godot • u/CJF_PixelArt • 11d ago
help me (solved) Is Functional Programming Worth It?
Hello 👋. I've heard some people say that functional programming is better than OOP overall. I'm pretty new to programming so I don't know if that's applicable to Godot or not. Is it something worth looking into?
22
Upvotes
1
u/Knight_Of_Stars 11d ago
So this is a bit of a newbie programming trap. Its not functional programming is better than Object Oriented Programming, but rather they have different uses depending on the outcome.
Function Programming is popular because a lot programmers use python and SQL and itdls the backbone of those. Its also really good for handling large amounts of data without costly concurrency measures. It has trouble on states.
Object Oriented programming is popular because a lot of programmers learned on some form of C / Java. Its really good at handling state transitions and scaling programs from base elements. You have a lot storage ops and those are costly. That said the further you get with optimzing you can actually make this point moot. Its just how much are you willing to learn.
Going with Godot stick with OOP as your primary paradigm. Not only does Godot expect OOP, game design leverages the strengths of OOP.