Do we need design patterns?
There is an interesting point of view that says that design patterns are only needed to patch shortcomings of a programming language. The rationale is that if you can solve a problem with a given programming language in a simple, direct, and straightforward way, then you may not need a design pattern at all. (An example: if your language doesn't provide recursion, we would have to implement it on our own, but otherwise, you can just use it without further ado.) However, studying patterns lets you think about different ways of solving problems, so that's a point in their favor.
In any case, it's interesting for OOP developers to really understand why FP helps to solve some problems without the need for further tools. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access