3 ms·
A related (but distinct) concept I've heard is "0, 1, n" rule: there are rarely actually 2 or 3 or 10 of a "thing". But often there are 0 of a thing, or 1 of a
by cryptoz 7y ago
A related (but distinct) concept I've heard is "0, 1, n" rule: there are rarely actually 2 or 3 or 10 of a "thing". But often there are 0 of a thing, or 1 of a thing. If it's not 0 or 1 thing, it's probably n things.
- AnimalMuppet 7y agoI've heard a slightly different version of that. 0, 1, infinity. For a data item, there should be 0 items, exactly one item, or (up to) an infinite number. You shouldn't have, for example, a fixed limit on the size of a string or the number of different phone numbers a person can have. If they can have more than one phone number, they should be able to have an infinite number.