Command Pattern
Task - We have to design an API for remote control for Home automation.
Reference example - a waitress in restaurant.
Now we have to place a device in empty slots and press button whichever you want.
Let's see what are the vendor devices
Now looks...
struglingblogs.hashnode.dev2 min read