r/programming • u/youngian • Dec 09 '13
Reddit’s empire is founded on a flawed algorithm
http://technotes.iangreenleaf.com/posts/2013-12-09-reddits-empire-is-built-on-a-flawed-algorithm.html
2.9k
Upvotes
View all comments
Show parent comment
4
u/NeoKabuto Dec 10 '13
No, I'm saying you're arguing over nothing (welcome to the internet). The zero is intentional (it's obviously taking the sign of the score), the return value of that function, and everything that happens as a result of it, might be erroneous (which is the bug you're thinking of).
If you still think the number zero magically appeared by itself: It's a number used multiple times in the code, and it seems like a rational choice at first glance. Using the sign of the score is generally a pretty zero-centric thing.