top of page
Blog: Blog2
Search

Popular Page

  • Writer: Dominic Ng
    Dominic Ng
  • Nov 18, 2018
  • 2 min read

Updated: Feb 6, 2019

Hey! This is the forth week of the developing of Gastronome! This week, I have worked on the popular page where it displays the top 10 recipes in Gastronome. So how did I managed to sort out the top 10 most popular recipes from the entire database? Whenever any user clicks on a recipe to find out more, a variable which stores the number of views will be incremented by one. Then, I will sort out the recipes based on the number of views and only display the top 10. Simply said, the recipes that are viewed the most are displayed in the popular page.

However, after showing this feature to my lecturer, he felt that it was not a good method to sort out recipes in the popular page. He told us that we could perhaps sort out the recipes by number of views in this month only. This would ensure the popular recipes to be kept updated and would not only be recipes that have been in Gastronome for a very long time. One example he gave was at the start, there is this recipe, “Kale Soup with Potatoes and Sausage”. After Gastronome has been used for months and new recipes are being added into the database, “Kale Soup with Potatoes and Sausage” would probably have a higher number of views compared to the newer recipes but however, it may not be as well-liked compare to the newer recipes. Hence, it is rather crucial to frequently update the popular page. After hearing the feedback, I felt that I have learned a lot as I have worked on such “popular pages” before in other web and mobile applications where I did not think of such factor. After hearing this feedback, my team and I planned to revamp the popular page when we have time after completing other features.

As it is the end of the week, I have completed the popular page where I managed to sort the top 10 recipes of Gastronome. Next week, I will be developing the “Add To Favourites” feature where users can favourite their preferred recipes and can be viewed in their Favourites tab and I will be documenting my progress in the next blog!



 
 
 

Comments


©2019 by Gastronome.

bottom of page