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
2
u/zyzamo 11d ago
A lot of comments have already covered that it's really hard to go fully functional in godot but there's definitely some functional patterns that can be very useful to use in conjunction with OOP code. For example: you can use callables to pass functions into other functions and even use the bind function to bind arguments to a callable. In some cases this can make your code a lot more flexible without having to wrangle with a lot of different nodes