Skip to content

Latest commit

 

History

History
41 lines (32 loc) · 2.17 KB

File metadata and controls

41 lines (32 loc) · 2.17 KB

Builder — where it lives outside this repo

Cited, real implementations to study (or point an agent at) when designing or reviewing staged-construction code.

Python standard library

Major ecosystems

The guide chapter

python-patterns.guide's treatment — why keyword arguments dissolve the telescoping constructor, and which builder survives: python-patterns.guide/gang-of-four/builder/

What to notice across all of them

None ship a Director, and none expose a mutable product: the stdlib builders mutate themselves then emit/serialize, while SQLAlchemy and Django make even the builder immutable (each step a new value). When reviewing a builder, ask where the mutable/immutable line sits — and whether plain keyword arguments would erase the class entirely.