Abstract Factory Use Case : Design Patterns In Python

Abstract Factory Use Case : Design Patterns In Python

Channel:
Subscribers:
24,900
Published on ● Video Link: https://www.youtube.com/watch?v=H18COAHTdVs



Duration: 2:36
0 views
3


Abstract Factory Article : https://medium.com/design-patterns-in-python/abstract-factory-pattern-in-python-db1f949f6b7f

Documentation : https://sbcode.net/python/abstract_factory/

Sometimes you just want to switch off your computer and read from a book. So, this pattern, plus all other GoF patterns are discussed in my Design Patterns In Python book
https://www.amazon.com/dp/B08XLJ8Z2J : ASIN B08XLJ8Z2J

An example use case may be that you have a furniture shop front. You sell many different kinds of furniture. You sell chairs and tables. And they are manufactured at different factories using different unrelated processes that are not important for your concern. You only need the factory to deliver.

You can create an extra module called FurnitureFactory, to handle the chair and table factories, thus removing the implementation details from the client.







Tags:
Design Patterns In Python
B08XLJ8Z2J
abstract factory
abstract factory pattern
abstract factory design pattern