Skip to content

Karma and ListAlgorithm

Jan Vincent edited this page Jun 14, 2017 · 3 revisions

Karma + Algorithm for Lists

Karma for Posts

Upvote: +5

Downvote: -5

Comment: +2 (doesn't matter if negative or positive)

KarmaForPosts = (Upvotes.count - Downvotes.count) * 5 + Comments.count

Karma for Users

Sum of post's Karma

Outgoing Upvote: +2

Outgoing Downvote: +2

Outgoing Comment: +5

KarmaForUser = Sum(myPosts.karma) + 2*(myUpvotes.count+myDownvotes.count) + 5*(myComments.count)

List Algorithm

Hot - Range: 7 Days, Order: Karma(Descending)

Hot is for overall best posts in a long range for our purpose (not too many posts a week) it is set to one week.

Trending - Range: 1 Day, Order: Karma(Descending)

Trending is for overall best posts in a rather short range (here still 24h since we don't expect each solution to have millions of users).

Fresh - Range: unbound, Order: Date(Descending)

Fresh simply for new posts. A range is not necessary. It is just ordered by it's release day (Descending).