Sign in
Log inSign up

How to create ranking system for popularity of user generated content?

Ivan Bernatović's photo
Ivan Bernatović
·Mar 12, 2017

Hello. I am creating a site that is completely dependent on user generated content. Users submit stories which other users can rate and comment. I won't go into full details but that is main premise. Of course there is "originality & hook" factor too but I'm not comfortable to share it. There are no friends or themes/nodes/groups. Everything is public and everyone can read, comment and rate. What is the approach for creating ranking system for popularity? I want to have some sort of "Trending" page where all of interesting stories will be listed. I never done things like that before so I need some guidance from folks who did it. First idea is to create cron job that will trigger the script that analyze recent stories and their activity. Each story will get their popularity rating based on users rating, comments, views etc. Key thing is formula which is time dependent function.

So, are there other approaches for this kind of thing?

Also, since this is time dependent function how do you test its accuracy or efficiency?

Hassle-free blogging platform that developers and teams love.
  • Docs by Hashnode
    New
  • Blogs
  • AI Markdown Editor
  • GraphQL APIs
  • Open source Starter-kit

© Hashnode 2024 — LinearBytes Inc.

Privacy PolicyTermsCode of Conduct