Imagine you're developing an API and have an endpoint that lists some entities. You want it to be paged because there could be a lot of entities, what would you use?
- Page number and page size
- Start index and limit
I usually go with the first for no specific reason, it was what was used in my first job, I got used to it and kept using it.
Anyone has any strong opinions on one being better than the other, or is this just a do whatever makes you happy kind of topic?
Note: I know a pagination token approach (if this is the correct name for it) is probably better and more scalable, but in this case I'm only considering these "old school" approaches to the problem.
Did you ever have a problem with Git that you knew a command could fix but you just couldn't remember what one it could be? With this tutorial, you can quickly and easily find it, and get a better understanding how each of them works.