4 ms·
Considering the likely audience, starting with 0 seems adequate. (see http://en.wikipedia.org/wiki/Zero-based_numbering http://en.wikipedia.org/wiki/Zero-based_
by Timothee 15y ago
Considering the likely audience, starting with 0 seems adequate. (see http://en.wikipedia.org/wiki/Zero-based_numbering http://en.wikipedia.org/wiki/Zero-based_numbering)
- tmhedberg 15y agoTrue, but when using numbers to make a menu selection, it makes more sense to start numbering at 1, because of the way number keys are arranged across the top of the keyboard. It's slightly less intuitive to have the key corresponding to the first menu option positioned far to the right of the subsequent options.
- Timothee 15y agoGood point about the positions of the keys. In fact, I had never thought that one could argue that the '0' key should be to the left of the '1' key… keyboards predate computers, so I see why this is not the case, but it could be argued.
- geuis 15y agoYes, I think I understand why it starts with 0. However, this is about context. When I am coding, I know indexes start with 0. When I am picking from a list of items in a menu, the context is starting from one. When you go to a restaurant and you order the first thing on the menu, you don't say "I'd like to have the zeroth item" do you?