The problem is like there are few restaurants and few delivery guys available. Each restaurant has a meal order and the delivery guys are to be assigned to the restaurant.

Now there may be many criteria for assignment of the guy to a restaurant. For example, the distance between delivery guy and restaurant, the priority of customer who places an order like a premium customer, the time of placement of the order etc.

How can code design be made to easily add new conditions?


1 Answer 1


You could make a rules engine.

  • Thanks. It a great suggestion. I have seen something like this in my organization but it never clicked to me. Searching on this term will definitely help. Jun 29, 2018 at 16:41

Not the answer you're looking for? Browse other questions tagged or ask your own question.