OOP and Design Patterns · Real-world situation · Beginner
OrderService calls every module directly
After placing an order, OrderService directly calls email, analytics, loyalty and inventory classes, and every new feature means editing it. How would you decouple it?
2:00