The Dev Journey

Category: Design Pattern

  • Abstract Factory Pattern using Typescript

    The Abstract Factory pattern is a creational design pattern. It provides an interface for creating families of related or dependent objects without specifying their concrete classes. It allows you to create objects that are related to each other by ensuring that the created objects are compatible. This pattern is particularly useful when a system must…

  • Factory Method Pattern using Typescript

    Factory Method pattern is one of the creational design patterns. It is also the most basic of all the design patterns. Real world example Lets consider a real-world scenario where you are developing logging system. The logging system must support different types of loggers such file, database or console loggers based on configuration. Step-by-Step Implementation…