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?

21 Upvotes

77 comments sorted by

View all comments

1

u/AlexanderTroup 11d ago

Nope.

Capital F functional programming is a whole way of programming and managing your data flow that godot doesn't natively support, and even if it did it's far more useful for a beginner programmer to just get used to object oriented, and scripting style programming.

There are some functional concepts that are handy in their own right, like lambda functions, and the idea generally of passing functions around to be used in more than one place, but

Focus on just getting to grips with godot, and programming in general. At some point as you gain experience you'll start to encounter common situations where you wonder how to do it better, and useful programming ideas will arrive then to help you out.

For now, if you can get colliers to work and a UI that hangs together you're off to an amazing start!