DEV Community


Discussion on: OOP vs Functional Programming

rehmatfalcon profile image
Kushal Niroula

I am a big fan of functional programming. I really like the safety that I get from immutability, pure functions and I find function composition natural.

However, I usually go for a hybrid approach (oop+fp) applying the correct paradigm where it makes sense. However, the language also plays a crucial part in it (In js, I usually lean towards FP, whereas in languages like PHP I usually go with OOP first approach.)