Skip to content
HomeVideosBooksBlogs
AllTop postsTopics
Podcasts
HistoryListsWatch laterLiked videosFollowing

The videos, books, blogs and podcasts Hacker News keeps recommending, all in one place.

VideosBooksBlogsPodcastsAboutPrivacySettings

Data from Hacker News, HackerTube, HackerBooks, HackerBlogs and Open Library. Credits · Not affiliated with Y Combinator.

HomeVideosBooksBlogsPodcasts
Ctrl K
    A

    Amir Salihefendic

    amix.dk · Personal blog · on HN since 2007

    Amir Salihefendic writes about programming, web infrastructure, and productivity, including how Hacker News and Reddit rank posts.

    Visit blogHN submissions
    ProgrammingWeb Development
    What HN says

    HN links it mainly for its explanations of the Hacker News and Reddit ranking algorithms, which commenters call detailed and useful.

    Stats for nerds
    87HN people shared it
    79linked in comments
    1.5Kstory points
    Oct 2015last shared
    2010people per year2015

    Top posts on HN

    1. 1
      How Hacker News ranking algorithm works
      23 people · 313 points · first shared 2010 · 74 comments on HN
    2. 2
      How Reddit ranking algorithms work
      23 people · 274 points · first shared 2010 · 29 comments on HN
    3. 3
      CoffeeScript: The beautiful way to write JavaScript
      1 person · 156 points · first shared 2011 · 82 comments on HN
    4. 4
      I am starting a company in Chile
      1 person · 111 points · first shared 2011 · 47 comments on HN
    5. 5
      Node.js powers comet for plurk (100k+ users at once)
      3 people · 87 points · first shared 2010 · 26 comments on HN
    6. 6
      Model View Controller: History, theory and usage
      4 people · 78 points · first shared 2011 · 8 comments on HN
    7. 7
      Fast polling using C, memached, nginx and libevent
      1 person · 71 points · first shared 2009 · 18 comments on HN
    8. 8
      Zen room for Vim: Focsuing only on the essential
      2 people · 55 points · first shared 2013 · 26 comments on HN
    9. 9
      Fast polling using C, memcached, nginx and libevent
      1 person · 49 points · first shared 2010 · 17 comments on HN
    10. 10
      Plurk Comet: Handling of 100.000+ open connections
      2 people · 44 points · first shared 2009 · 38 comments on HN

    What HN people wrote when they linked it

    • amixOct 2012

      Great comment! I did not watch that talk. But I did watch another talk by John Cleese on how to become more creative ( https://www.youtube.com/watch?v=kH8uYDJlwog - only 10 min). It's a very recommended watch as well. I especially like this quote:

      If you're racing around all day, ticking things off on lists, looking at your watch, making phone calls, and generally just keeping all the balls in the air, you are not going to have any creative ideas. - John Cleese

      A year or two ago I also did a presentation on how to become a more creative programmer where this quote is also included, the slides can be seen here http://amix.dk/blog/post/19599

    • irahulNov 2012

      Previous discussions:

      http://news.ycombinator.com/item?id=1781013

      http://amix.dk/blog/post/19574

      The simplified algorithm is

      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

      The updated algorithm posted by pg has other factors, but those are related to quality control. If the same algorithm is still deployed, stories decline with time. So, during quiet periods, the new stories with far lesser number of votes rank higher than old stories with high number of votes.

    • wovenOct 2014

      I'm not sure how HN does it specifically. In a version of our app, we had scoring which was initially modeled after Reddit's algorithm (http://amix.dk/blog/post/19588). A server task updated the scores for every item every hour. We could have limited how far back we went, but had no need in our case given that the amount we indexed was within reason. We'd add or subtract from the score based on a set of rules that considered a number of factors including posted date, number of votes and number of comments. We had an admin tool for assigning more or less weight to the various factors.

    • puppetmaster3Apr 2014

      Related to CloudFare, I know what a real CDN is, but I'm not sure what cloudfare does useful at all, ex:

      http://halfelf.org/2013/i-dont-understand-cloudflare

      http://pergento.wordpress.com/2012/02/01/cloudflare-slowed-down-our-site/

      http://amix.dk/blog/post/19627

      Like they tell you to use CloudFare w/ a CDN. what?
      It appears that they are a good marketing company, and OK tech, but not clear to me what.
      Compare it to real CDN Fastly or MaxCDN.

      So other than marketing, what does Cloudfare do when you pay them?

    • roryokaneJan 2014

      As far as I can tell, it’s based on a combination of upvotes and time since posting. New comments start at the top of their tree and, as time passes, settle into where they would be if sorted by upvotes. So yours is above the other one because it’s more recent, but in a week, if the upvotes don’t change, the other one will be on top. It’s probably a similar algorithm to Reddit’s published “hot” algorithm (http://amix.dk/blog/post/19588).

    • joshuahedlundApr 2012

      For those who do not understand the Wilson algorithm, see this post which was on HN recently, explaining how it works in a little more detail: http://amix.dk/blog/post/19588

      (I agree with other commenters that it is complicated and lacks common sense to average users, but I feel like I have a general understanding of the concept thanks to the above link)

    Related

    jwzjwz.org880 people

    Watch a VC use my name to sell a con

    jwz
    Personal · last shared 2026
    Reddit Blogredditblog.com163 people

    How We Built r/Place

    Reddit Blog
    Company · last shared 2021
    Eli Benderskyeli.thegreenplace.net428 people

    Common Pitfalls in Go Benchmarking

    Eli Bendersky
    Personal · last shared 2026
    Idle Wordsidlewords.com670 people

    The Website Obesity Crisis

    Idle Words
    Personal · last shared 2026
    Aphyraphyr.com551 people

    Hexing the technical interview (2017)

    Aphyr
    Personal · last shared 2026
    Alan Skorkinskorks.com73 people

    Why Developers Never Use State Machines

    Alan Skorkin
    Personal · last shared 2026
    Philip Waltonphilipwalton.com105 people

    Solved by Flexbox

    Philip Walton
    Personal · last shared 2026
    Daring Fireballdaringfireball.net1.8k people

    Facebook is an attack on the open web

    Daring Fireball
    Personal · last shared 2026