It's not the trendiest programming technique around these days but it's a useful tool in the toolkit of a good developer.
It's not the trendiest programming technique around these days but it's a useful tool in the toolkit of a good developer.
This comes up occasionally on HN. I've never seen anyone say anything positive about it.
It seems like a software detail that's unnecessary exposed to users. It doesn't make the site better, it makes it worse.
The count is the number of stories to skip, the after is the id of the last story on the previous page.
If Reddit were to use offset + limit, one would frequently visit page 2 only to see the same articles they were reading on page 1 five minutes before. A good example of this issue with offset + limit based pagination is 4chan, which is basically impossible to read in a linear or sane manner.
Reddit somewhat alleviates the problem by ensuring that posts after the last one you read are displayed - you'll occasionally see some of the same posts you were reading on page one, and occasionally miss posts that "jump" to page one while you're reading it, but it'll at least be usable, unlike 4chan.