3 ms·
Interesting article, though the title is a bit misleading. I'd say a better one would be "Design Patterns of Functional Languages" as the author is comparing co
by mas644 15y ago
Interesting article, though the title is a bit misleading. I'd say a better one would be "Design Patterns of Functional Languages" as the author is comparing common functional design patterns (monads, functors) to GoF OO design patterns. I think to explain to non-functional programmers the benefits of functional, you have to go beyond design patterns or showing them how you can make a compact loop with a single application of a "map" function. You gotta show them how treacherous side-effects are (especially as code size grows) and how the declarative nature of FP inherently creates highly modular code and flexible code!