Marko M.6 min read
Link copied!
Contents:
Recap: Where part 1 left off
1. Observer pattern – Let code react, not poll
Ruby on Rails example – Domain event with subscribers
2. Command pattern – Turn actions into objects
Ruby on Rails example – SendWelcomeEmailCommand
3. Facade pattern – Hide complexity behind a simple API
Ruby on Rails example – PaymentFacade
4. Composite pattern – Work with trees as one
Ruby Example – Nested menu structure
5. Proxy Pattern – Add Behavior Around Access
Ruby example – Caching proxy for an external API
Putting it all together
What’s next in the series