4 ms·
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 t
by ajuc 3y 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 :)
- Supermancho 3y agoMeasuring distance starts at 0 (usually). It's .1 meters, not 1.1 meters from the wall. 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.