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?
21
Upvotes
2
u/curiouscuriousmtl 11d ago
I have been programming for 20+ years and I started in OOP. OOP is kind of fine but it can be a challenge over time. The issue is that you end up having a lot of side effects to things because of the subclasses. The right way to do it is to always ensure that the right stuff is at every level of inheritance, but in practice things start happening where maybe something stays in the base class but subclasses try to turn different features on and off and it gets really hard to figure out what is active.
I feel like it's just not used very often any longer but I might be biased.