API design principle: Don’t tempt people to divide by zero

A team was bringing forward an API for review, and one of the parts involved expressing a set of supported values in the form of three numbers: A minimum allowed value. An increment. A maximum allowed value. The supported values are the minimum, integer multiples of the increment added t

Click here to read the article