Falsehoods Programmers Believe About Pagination
Posted: Wed, 12 December 2018 | permalink | No comments
The world needs it, so I may as well write it.
- The number of items on a page is fixed for all time.
- The number of items on a page is fixed for one user.
- The number of items on a page is fixed for one result set.
- The pages are only browsed in one direction.
- No item will be added to the result set during retrieval.
- No item will be removed from the result set during retrieval.
- Item sort order is stable.
- Only one page of results will be retrieved at one time.
- Pages will be retrieved in order.
- Pages will be retrieved in a timely manner.
- No problem will result from two different users seeing different pagination of the same items at about the same time. (From @ronburk)
Post a comment
All comments are held for moderation; markdown formatting accepted.