Discussion on: OOP vs Functional Programming

sayanarijit profile image
Arijit Basu

This is what I have answered myself after listening to a lot of lectures on this topic:

OOP tries to bring the "real world" to you. The real world which is ugly, ruthless but something you can easily relate to. Everything is affected by time (state) so you better manage it correctly.

FP tries to bring the world you fantasize about. The world it presents is beautiful, ideal. Things go the way how you want them to. Nothing here is affected by time because there's no state. But it hides the ugly reality from you and there is a cost for that.

Some prefer the real ruthless world, some prefer the fantasy. Although it's possible to have both depending on the situation when you are in the real world, but not the other way around.