Summary

In this chapter, we talked about some common behavioral patterns for different scopes and different scenarios. Chain of Responsibility Pattern and Command Pattern can apply to a relatively wide range of scopes, while other patterns mentioned in this chapter usually care more about the scope with objects and classes directly related.

Behavioral patterns we've talked about in this chapter are less like each other compared to creational patterns and structural patterns we previously walked through. Some of the behavioral patterns could compete with others, but many of them could cooperate. For example, we talked about Command Pattern with Memento Pattern to implement undo support. Many others may cooperate in parallel and do their own part. ...

Get TypeScript Design Patterns now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.