Structural design patterns help manage object composition and relationships, which improves flexibility and system scalability. This course will introduce you to the most common structural patterns and show you how to implement them in Go. By the end of the course, you will be able to apply these patterns to your own projects and write more flexible and maintainable code.
Overview
Syllabus
- Lesson 1: Understanding the Adapter Pattern
- Change the Adapter Message
- Complete the Adapter Pattern
- Complete the Phone Adapter
- Write a Tuner Adapter in Go
- Implement Payment Adapter in Go
- Lesson 2: Diving into the Decorator Pattern
- Add a New Flavor Decorator
- Add Caramel Flavor to Coffee
- Decorate Your Ice Cream
- Pizza Customization using Decorators
- Write a Sandwich Decorator
- Lesson 3: Diving into the Composite Pattern
- Nested Shopping Carts
- Add a New Smartwatch Item
- Add a MobilePhone Item
- Composite Pattern: Movie Collection
- Calculating Total Oxygen Production