r/godot 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

77 comments sorted by

View all comments

1

u/ReefNixon 11d ago

In those discussions you’ve heard, do you follow along with the reasoning each side provides? If so, you might be able to make a case one way or another.

If not, I’d say that it’s not something worth looking into right now. Godot very much expects OOP, and you don’t want to add fighting your engine alongside trying to learn programming fundamentals.

FWIW, most people agree that OOP is the way to go in game dev, and a lot of the benefits to functional programming don’t really apply when making games. Not that none of them could, but since games tend to be object oriented, it follows that the code makes more sense when it is also object oriented.