thepointman.dev_

Courses / Design Patterns

Creational Patterns

intermediate8 lessons

All five creational patterns from the problem they solve. Singleton's failure modes (naive, DCL bug, eager init) and the enum solution. Factory Method vs Abstract Factory. Builder for telescoping constructors. Prototype's deep vs shallow copy trap. Object Pool for expensive resources.

// Lessons

  1. 01

    Why Creational Patterns? — The Problem of Object Construction

    soon
  2. 02

    Singleton — All the Ways to Do It Wrong

    soon
  3. 03

    Singleton — The Enum Solution (Serialisation-Safe, Reflection-Safe)

    soon
  4. 04

    Factory Method — Decoupling Creation from Usage

    soon
  5. 05

    Abstract Factory — Families of Related Objects

    soon
  6. 06

    Builder — Telescoping Constructors and Fluent APIs

    soon
  7. 07

    Prototype — Clone vs Copy Constructor and Deep Copy

    soon
  8. 08

    Object Pool — Reusing Expensive Objects

    soon