Great article. I agree with this approach.

I like it because regardless what your UI currently supports for ‘records per page’, the API can be made to support any page size with upper and lower bounds.

If the UI later wants to add more options into the “records per page” dropdown selector, they can simply add as many as they want with no further API work needed. I therefore had to offer you the maximum of 50 claps.

--

--

--

I prefer to work near ES6+, node.js, microservices, Neo4j, React, React Native; I compose functions and avoid classes unless private state is desired.

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Adam Mackintosh

Adam Mackintosh

I prefer to work near ES6+, node.js, microservices, Neo4j, React, React Native; I compose functions and avoid classes unless private state is desired.

More from Medium

FEELING DETACHED

Balance and Interest

The wasted time.