2 ms·
That's another demonstration of my point. Many, many people out there in the non-tech world would expect that the first element would have an index of "1". Fi
by stcredzero 17y ago
That's another demonstration of my point. Many, many people out there in the non-tech world would expect that the first element would have an index of "1". First = "1st" = "#1." On the other hand, we often experience the convenience of pointer arithmetic (or similar) with zero-indexed arrays.
Yet another programmer/techy and ordinary person divide.
- codexon 17y agoIf you want something for non-techies, you pick something like Applescript. 0-based indexing is noob friendly because most cs algorithms use it so you can do a straightforward translation. Would it be better to go with 1-based and make this harder for novice programmers? I don't think so.