3 ms·
I think, the main benefit of FP is alsoits main problem. Patterns like the monad are so abstract, that ob its own nobody knows what to do with it, but it makes
by k__ 6y ago
I think, the main benefit of FP is alsoits main problem.
Patterns like the monad are so abstract, that ob its own nobody knows what to do with it, but it makes them so very powerful.
OOP patterns, on the other hand, come from a more inductive source. They are more concrete, but also not as powerful. Easier to grasp, but less concise.
We need a step (or more) between the definition of FP concepts and their application, to make all this more approachable for the average programmer.
- dunefox 6y agoYou mean simple an concise patterns such as AbstractAbstractVisitorBeanFactoryStrategySingleton? Honestly, I find much of FP easier to understand than Java-style "OOP".
- k__ 6y agoI said they are less concise. But anyway, I didn't mean that Java garbage. I meant the Go4 patterns, they are more cocrete than monads or lenses.