TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: how does HN's pagination work?

3 pointsby fractalcatalmost 14 years ago
Pure idle curiosity. Whenever I have to paginate through a list of sorted items, I just use page numbers. The param seems to be a hash of some kind, which might allow for things like persistent snapshots, but if so, why do the links expire?

1 comment

mooism2almost 14 years ago
The parameter looks up a closure ("fnid" means "function ID") in a hash/dictionary/whatever. When memory runs low, some (all?) of them get pruned. Hence, links expire.<p>I don't think it's a good architecture.
评论 #2889622 未加载
评论 #2890376 未加载