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?

15th Sep 2024, 8:50 AM
Ketan Lalcheta
Ketan Lalcheta - avatar
2 Answers
+ 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
15th Sep 2024, 2:30 PM
RuntimeTerror
RuntimeTerror - avatar
0
Thanks
15th Sep 2024, 3:08 PM
Ketan Lalcheta
Ketan Lalcheta - avatar