This video course explores the Factory Method design pattern and its implementation in Python. Design patterns became a popular topic in late 90s after the so-called Gang of Four (GoF: Gamma, Helm, Johson, and Vlissides) published their book Design Patterns: Elements of Reusable Object-Oriented Software.
The book describes design patterns as a core design solution to reoccurring problems in software and classifies each design pattern into categories according to the nature of the problem. Each pattern is given a name, a problem description, a design solution, and an explanation of the consequences of using it.
The GoF book describes Factory Method as a creational design pattern. Creational design patterns are related to the creation of objects, and Factory Method is a design pattern that creates objects with a common interface.
This is a recurrent problem that makes Factory Method one of the most widely used design patterns, and it’s very important to understand it and know how apply it.
By the end of this video course, you will:
- Understand the components of Factory Method
- Recognize opportunities to use Factory Method in your applications
- Learn to modify existing code and improve its design by using the pattern
- Learn to identify opportunities where Factory Method is the appropriate design pattern
- Choose an appropriate implementation of Factory Method
- Know how to implement a reusable, general purpose solution of Factory Method