Web Developer and Author

code

Posts in javascript
Factory Design Pattern

This is useful when you want create an object based on type, while keeping it loosely coupled using abstractions that the factory uses to get the concretes. This means when updates are made to the concretes you only need to updates the abstractions, and every other place that uses the abstraction will be handled by the factory.

Read More