Builder Design Pattern Article : / builder-design-pattern-in-python
Documentation : https://sbcode.net/python/builder/
Design Patterns In Python Book : https://www.amazon.com/dp/B08XLJ8Z2J
The Builder Pattern is a creational pattern whose intent is to separate the construction of a complex object from its representation so that you can use the same construction process to create different representations.
The Builder Pattern tries to solve,
How can a class create different representations of a complex object?
How can a class that includes creating a complex object be simplified?
The Builder and Factory patterns are very similar in the fact they both insatiate new objects at run time. The difference is when the process of creating the object is more complex, so rather than the Factory returning a new instance of `ObjectA`, it could call the builders director construct method `ObjectA.construct()`. Both return an Object.
Parts of the Builder Pattern
1. Product - The Product being built
2. Concrete Builder - Build the concrete product. Implements the IBuilder interface
3. Builder Interface - The Interface which the Concrete builder should implement
4. Director - Has a construct method which when called creates a customised product
(Book) Sometimes you just want to switch off your computer and read from a book. So, all GoF patterns are discussed in my Design Patterns In Python book
https://www.amazon.com/dp/B08XLJ8Z2J : ASIN B08XLJ8Z2J
Nesta página do site você pode assistir ao vídeo on-line Builder Design Pattern in Python duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário SBCODE 13 Abril 2019, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 6,182 vezes e gostou 80 espectadores. Boa visualização!