2
Implementing Structural Design Patterns
Structural design patterns give us tools to handle connecting different objects; in other words, managing the relationships between objects. This includes techniques to reduce memory usage and develop functionality with existing classes without modifying these existing classes. In addition, JavaScript features allow us to more effectively apply these patterns. Modern JavaScript includes some built-ins that allow us to implement structural design patterns in a more efficient manner.
We’ll cover the following topics in this chapter:
- Defining structural design patterns as a whole, and proxy, decorator, flyweight, and adapter specifically
- An implementation of the proxy pattern with a class-based approach ...
Get JavaScript 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.