DEV Community

Discussion on: July 8th, 2021: What did you learn this week?

Collapse
 
skidragon profile image
Simon Davis • Edited

This week, I learned about the bridge design pattern. This pattern gave me a eureka moment about how to compose components better. I also re-inforced my learning about the proxy, adapter, decorator, and facade patterns. I created and practiced making decorators and decorator factories in Typescript, and used the built in decorators in Nest.js so pretty comfortable with them. I see decorators in a new light, how we can use them for composition without changing the core interface, I also realize the combination of param, method, and class decorators can work like an observable pattern. Class decorators can interact with the method and param decorators. Patterns are so much fun because of the possibilities and thought exercises.

Collapse
 
nickytonline profile image
Nick Taylor

Awesome!

Hackerman from Kung Fury putting on a Nintendo Power glove