“Dijkstra is Wrong and So am I” – an argument against 0-based arrays
hackernoon.com
hackernoon.com
0 or 1 based arrays is not a fundamental issue. It's more like little endian vs little endian. It's marginally better if everyone settles for one indexing.
In a good high level language and programming style you rarely need to think in indexes. In a low level language 0-indexing is better.
Since there's a real basis for 0-indexing and none for 1-indexing, obviously 0 is right.
There are plausible, though inferior, arguments for 1-based arrays. This person doesn't even manage to make them, though.