Search

Lessons (5)

  • Creational Patterns: How to Make Objects

    Factory Method, Abstract Factory, Builder, Prototype and Singleton, each with a real-life analogy, a picture and a …

  • What Are Design Patterns?

    … create objects? Factory Method, Abstract Factory, Builder, Prototype, Singleton 🧱 Structural How do I connect objects into bigger …

  • NestJS Core Concepts

    … PaymentGateway) {} Injection scopes Scope New instance Use when --- --- --- DEFAULT (singleton) Once per app Almost always REQUEST Per HTTP …

  • Which Pattern Do I Need?

    … for a one-off task Plain function first Singleton abuse Global state everywhere, flaky tests Dependency injection God …

  • OOP Mistakes and Interview Questions

    … That's used in the Singleton pattern and for static factory methods like Temperature.fromFahrenheit(212) . </details Key …