This is the first of a series of posts I intend to share and that address the benefits of FP over OOP.
I spent my WE trying to figure out how to convince IT specialists to shift from OOP to FP.
You can’t simply tell a OO developer that functional programming is about not modifying the state of any object but applying functions to functions.
First nobody sees the value, second, it does not make any sense.
A new paradigm succeed when it brings an added value. This added value is usually clearly in the way you are able to glue subsystems together.
PP took over AP - Ancient Programming :) - because it brought modules / procedures / functions and parameters to better assemble pieces of software
OO took over PP because inheritance and polymorphism significantly improved the way you could reuse and extend software
FP is taking over OO for the same reason. It is providing new glues and these are : Higher Order Functions (HOF) and lazy evaluation
En savoir plus >>