The Design pattern redux
The GOF pattern and reactive programming do have a deeper connection than that is obvious from the surface. The GOF pattern is mostly concerned with writing OOP-based software . Reactive programming is a combination of functional programming, stream programming, and concurrent programming. We already learned that reactive programming rectifies some deficiencies in the classic GOF Observer pattern(in the first section of Chapter 5, Introduction to Observables, we covered this issue).
Writing OOP software is basically about modeling hierarchies, and from the pattern world, the Composite pattern is the way to model Part/Whole hierarchies. Wherever there is a Composite (which models a structure), a collection of Visitor ...
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