Designing a Popularity Algorithm

with examples from Hacker News, Reddit, del.icio.us, and StumbleUpon