|
|
|
|
|
by ajuc
1061 days ago
|
|
I don't know about arrays, but numbering floors starting from 1 is absurd. In most of Europe ground floor is 0, underground floors are negative, floors above the ground are positive numbers. Integers were invented for a reason, use them :) |
|
Counting things (measuring how many you have) starts at 1 out of convenience. It makes no sense to talk about all the 0 things (that you don't have ) to start. Communication tends to be as succinct as possible.
In software, we often are tracking multiple things, so being explicit about how many offset or what an int holds, causes 0 to appear more frequently and "feels better" because the explicit communication is comprehensive.