Skip to main content
00:00/00:00
Lecture 10 of 50

Limiting the Role of Adapters

Download Course (Free)

Course Content

0 / 50 completed
Section 1: Introduction2 videos

How This Course Is Structured

8m

Understanding the Role of Design Patterns

23m
Section 2: Adding Behavior to an Object with the Decorator Pattern5 videos

The First Attempt to Decorate a Class

21m

Motivation for the Decorator Pattern

16m

Summary

3m

The Downfall of the Subclassing Decorator

18m

Using Object Composition Instead of Inheritance

21m
Section 3: Adapting to a Different Interface with the Adapter Pattern4 videos

Advancing from Decorator to Adapter Pattern

17m

Implementing a Transparent Adapter

15m

Limiting the Role of Adapters

25mNow Playing

Towards a Heavyweight Adapter

24m
Section 4: Constructing Flexible Behavior with the Strategy Pattern8 videos

Implementing the Strategy Pattern

18m

Understanding the Need for Flexibility

17m

Implementing Strategies via the Interface

16m

Augmenting the Strategy Interface

16m

Demonstrating the Power of Strategies

10m

Implementing Strategies with Strategies

12m

Strategies in the .NET Framework

9m

Summary

3m
Section 5: Decoupling Classes with the Abstract Factory Pattern7 videos

Understanding the Limitations of the Abstract Factory

12m

Understanding the Need for Abstract Factory Pattern

15m

Attempting to Overcome the Limitations

11m

Implementing Concrete Factories

20m

Summary

4m

Completing the Concrete Factories

18m

Demonstrating the Concrete Factories

24m
Section 6: Constructing Objects on the Fly with the Factory Method Pattern6 videos

From Abstract Factory to Factory Method

22m

Holding State Behind a Factory Method

15m

Fixing Parameters with Factory Method

20m

Confining Propagation of Change with Factory Methods

27m

Currying Factory Methods

20m

Summary

4m
Section 7: Encapsulating Construction Rules with the Builder Pattern5 videos

Understanding Limitations of Factories

23m

Replacing Factory with Builder

15m

Adding Validation to the Builder

22m

Handling Variation and Optional Components

27m

Building a Factory Method

17m
Section 8: Constructing Complex Objects with the Builder Pattern7 videos

Understanding the Need for a Consistent Builder

10m

Building a Graph of Objects

23m

Designing a Consistent Builder

15m

Adding Alternatives to a Consistent Builder

28m

Shameless Immutability in Builders

19m

Designing an Immutable Builder

17m

Designing a Fluent Builder

30m
Section 9: Treating Collection as an Object with the Composite Pattern6 videos

Understanding Multitudes of Objects

18m

Inventing the Composite Element

16m

Understanding Recursive Nature of Composites

16m

Combining Composite and Factory Methods

10m

Reversing Composites Representing One Element as Many

24m

Combining Composite and Abstract Factory

17m