I just looked at the code. The comment bonus (+3, having 3 comments ahead of a post) and the text bonus (+1) should be summing.
I put in a todo to test this deeper tomorrow. In the meantime if anyone can play around with it in /s/Test to confirm I'd appreciate that. The "Hidden from front" option can be handy in /s/Test to keep random test posts from making clutter.
Any chance there could be a collapsed icon that could expand the algo, or at least non-secret parts okay to reveal, along with a key? For example: T5+V6+C7=S18 (T=time, V=votes, C=comments, S=sum)
There is blanks space bellow the form at least to show bonus points. I want to put stuff there. I think there is an argument for making it interactive. But we will see if that's easy.
I've had one idea that would double ensure there are no race conditions, which shouldn't exist anyway, which will delay the bonus points till after the first page load. So if you refresh the points will be there. The upside is it eliminates one possible source of this bug. Of course I haven't seen this bug myself yet. But it will also lead to more organized code so I'm going to do it.
As for the sort algorithm I've started decorating posts with more of that stuff already. Posts now show their distance from you. Comment counts are there. The post score is there. How recently the last comment was made is there. Age is there. That's everything.
I just looked at the code. The comment bonus (+3, having 3 comments ahead of a post) and the text bonus (+1) should be summing.
I put in a todo to test this deeper tomorrow. In the meantime if anyone can play around with it in /s/Test to confirm I'd appreciate that. The "Hidden from front" option can be handy in /s/Test to keep random test posts from making clutter.
Any chance there could be a collapsed icon that could expand the algo, or at least non-secret parts okay to reveal, along with a key? For example: T5+V6+C7=S18 (T=time, V=votes, C=comments, S=sum)
There is blanks space bellow the form at least to show bonus points. I want to put stuff there. I think there is an argument for making it interactive. But we will see if that's easy.
I've had one idea that would double ensure there are no race conditions, which shouldn't exist anyway, which will delay the bonus points till after the first page load. So if you refresh the points will be there. The upside is it eliminates one possible source of this bug. Of course I haven't seen this bug myself yet. But it will also lead to more organized code so I'm going to do it.
As for the sort algorithm I've started decorating posts with more of that stuff already. Posts now show their distance from you. Comment counts are there. The post score is there. How recently the last comment was made is there. Age is there. That's everything.
Sumthing sounds odd.
I can tell he messes everything up and doesn't test it when using new code. Part of the sites charm I guess.