DEV Community

JuanPablo
JuanPablo

Posted on

Ordering engineering-blogs entries by votes

TL;DR

A web to order the RSS entries contained in the engineering blogs list

https://github.com/kilimchoi/engineering-blogs

this is the web

https://entries-by-votes.now.sh/

Source code

https://github.com/juanpabloaj/entries-by-votes

Short description

If you are like me, probably as part of your daily routine you check some engineering blogs. A few months ago I found this repo with an amazing list of blogs.

https://github.com/kilimchoi/engineering-blogs

It is great, but how to identify the most interesting (or popular posts)? well, I remembered this article related to how Hacker News ordered his posts.

https://medium.com/hacking-and-gonzo/how-hacker-news-ranking-algorithm-works-1d9b0cf2c08d

Score = (P-1) / (T+2)^G

where,
P = points of an item (and -1 is to negate submitters vote)
T = time since submission (in hours)
G = Gravity, defaults to 1.8 in news.arc

With that info, a few lines of python/tornado to get votes from Hacker News and Reddit, and the help of our friends of zeit.co/now (as serverless deployments service), the dinner has been served.

Peace.

Top comments (0)