Hacker News new | past | comments | ask | show | jobs | submit login
Ask HN: how does HN's pagination work?
3 points by fractalcat on Aug 15, 2011 | hide | past | favorite | 2 comments
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?



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.

I don't think it's a good architecture.


Ah, gotcha. Thanks.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: