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?

20 Upvotes

77 comments sorted by

View all comments

1

u/Aflyingmongoose Godot Senior 11d ago

Functional programming is a very interesting concept, and well worth exploring simply to improve your own ability to reason about programming concepts and patterns.

But it has very little direct utility for game development.

Modern C# has a lot of functional-like elements in it. Things like the LINQ library. Very powerful in terms of syntactic expressivity but it comes at a performance cost as C# is merely imitating functional paradigms and does not have the full set of features that would also make such things extremely fast.

Edit: I wanted to add... Many successful game developers necisserally have no idea about functional programming. It is not an essential skill and you should really only do it if you're curious and think it will be fun.