0
Display digital menu
Hi I was thinking about the digital menu of food delivery app. It had different sections like Burgers , Pizza etc. One item may be displayed under more than one category. For example, Burger is shown in last ordered , most relevant, buy one get one free and burger itself. What design pattern is suitable here or in short, how to design this scenario? Is linkedlist a better choice here?
2 ответов
+ 1
Linkedlist? I'm not sure
But the first thing that come to my mind is OOP design whereby each object has the "filterable" attributes - last ordered, buggers, pizzas etc and ofcourse with a "const reference", we would be referencing the same burger in every filter
To be honest, this would be in a sort of database for a real application, otherwise the database can be manipulated as a json
0
Thanks