TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Algorithm for sorting of comments on hacker news

2 点作者 kleine2超过 15 年前
How does the algorithm for sorting the comments in a given thread on hacker news work? I get the feeling that new comments that come in late don't stand much of a chance to stay at the top relative to old comments that got voted up. Doesn't it need to be weighted based on how high it got rated up relative to the time it was posted and how many other ratings took place during the time it was up?

2 条评论

RiderOfGiraffes超过 15 年前
From the FAQ at <a href="http://ycombinator.com/newsfaq.html" rel="nofollow">http://ycombinator.com/newsfaq.html</a><p><pre><code> How are stories ranked? On the front page, by points divided by a power of the time since they were submitted. Comments in comment threads are ranked the same way. </code></pre> There are many tweaks that have been suggested, and some have been tried. It's certainly true that bad timing can lead to submissions and comments sinking without trace, but in general the feeling is that the existing system works well enough and with few surprises.
billswift超过 15 年前
I prefer a simple "add new comments to the end of the page" system - if the comments are worth reading in the first place, then I like to check new comments off and on for a while, and these changeable order systems makes it hard and time-wasting to check up. (I do like nesting, because it helps understanding of comments more than it costs in updating).