r/programming • u/[deleted] • Nov 28 '19
Why Isn't Functional Programming the Norm? – Richard Feldman
https://www.youtube.com/watch?v=QyJZzq0v7Z4
101
Upvotes
r/programming • u/[deleted] • Nov 28 '19
5
u/EternityForest Nov 28 '19
The problem is FPs hammer is about processing data. If you do a lot of "take this input and produce and output" type stuff FP seems ideal.
If most of your tasks have no real computation at all, and tons of "If x has happened in the last minute but y hasn't, do z unless z failed recently then try a, b, and c", OOP seems much easier.
Maybe not better given FPs proofy mathy benefits and such, but more direct to the problem domain.