Closed SeekPoint closed 2 years ago
They are two different ways of creating objects. A builder typically creates a complex object in multiple steps, and until the final build/create function is executed the object is incomplete (in the example builder.py, that's the building object)
build
create
builder.py
building
@faif Thanks
Maybe you can write a little more like what's the difference btw those pattern, and where and how to utilize it in different scnerio
They are two different ways of creating objects. A builder typically creates a complex object in multiple steps, and until the final
build
/create
function is executed the object is incomplete (in the examplebuilder.py
, that's thebuilding
object)