The Factory Pattern - Design Patterns meet the Frontend

added by JavaScript Kicks
12/10/2019 2:34:07 PM

386 Views

Picture this. A Car Dealership selling Cars 🚗. Suddenly, they want to branch out and sell Trucks 🚛. You had initially programmed the order and sale system to handle Cars. What do you do now? Do you duplicate the majority of the business logic in the system to also handle trucks specifically?


0 comments