Design Reddit
medium 50 minA service like Reddit: communities, posts, nested comments and votes.
Where it shows up
The same pattern appears across everyday software.
Published sorting code
The archived Reddit repository holds the hot, confidence and controversy formulas. Its confidence value uses z of about 1.28, an 80% interval.
One vote endpoint
Reddit's API documents one vote call with a fullname and a direction of 1, 0 or -1. The value states what you want, so repeating it does nothing more.
Listings that move
Its API documentation says listings do not use page numbers because content changes so often. They use after and before with an item's fullname.
More comments
The same API offers a call for comments left out of a first tree. Large discussions need a first view and a way to ask for more.
Fuzzed totals
An archived 2016 FAQ said the points were correct while separate up and down totals were fuzzed to prevent spam bots. Do not assume that it still works that way.
Helpful reviews
Shops can rank reviews with the same Wilson score: 40 of 42 helpful votes should beat 1 of 1.