Low Level Design Series
Two lessons, five creation labs
Factory Design Pattern
When a system has multiple concrete variants, the factory keeps client code independent from constructor details while making extension easier to reason about.
05 labsFactory method and abstract factory exercises
02 lessonsCreation control from simple to family-based
Track 04After creational patterns
Lesson Path
Lesson 01
Factory Design Pattern
Centralize object creation, remove client-side `new`, and use a registry when the set of types keeps growing.
#factory-centralization#factory-nightmare#factory-registry
Lesson 02
Abstract Factory Pattern
Split a bloated factory into family-specific factories so related products stay consistent while client code stays closed for modification.
#abstract-factory-monolith#abstract-factory-refactor