Hermes Wiki

Creational

Patterns about how objects get created — hiding the concrete class being instantiated, or controlling how/when instantiation happens.

Why we need this / what value this brings

Centralizing object creation logic means callers don't need to know or care about concrete classes, which makes swapping implementations later far cheaper.

When to use this

When a class's construction is complex, needs to be controlled (singleton), or the concrete type shouldn't be hardcoded at the call site.

How to use or implement this

Pick the specific creational pattern based on what varies: one instance only (Singleton), which class to instantiate (Factory), how to assemble it (Builder), or cloning an existing one (Prototype).

Subtopics


Empty folder — drop notes, links, and findings here as you research.

Hermes Wiki