Search

Lessons (5)

  • Creational Patterns: How to Make Objects

    … example. Why creational patterns? Writing new ConcreteClass() everywhere glues your code to specific classes. Creational patterns hide the …

  • What Are Design Patterns?

    … 2. Recognise the pain. A growing switch , duplicated creation logic, tight coupling… 3. Then reach for the pattern …

  • Design an E-Commerce Checkout

    … inventory reservation, idempotent payment, order creation and durable events. ![Checkout: catalog/search are read paths while inventory, payment …

  • Domain-Driven Design: Tactical Patterns

    … in the domain OrderPlaced , OrderShipped Factory Encapsulates complex creation Order.create(...) , QuoteFactory Entities vs value objects mermaid flowchart …

  • TypeScript Essentials

    … Date; // can't be changed after creation } type Point = { x: number; y: number }; function greet(user: User) { return …