From the series "What the heck were they thinking":
Every now and then I find myself wondering about some things that just don’t make sense on the software development world. I’ll start blogging about that type of thing just so that I can keep track of those things.
One thing that is just way over my ahead to understand is a zero-based array. Come on, people, I’m not smart enough to understand that: MyArray is the first element… MyArray, the second… No, seriously, what’s up with that? It’s just not intuitive at all. It’s like saying "on my first birthday I’ll be two years old". Or that "my second marriage is my marriage number 1".
How many times have people messed up a for loop because they forgot about the darn zero-based array?
For i = 1 to Array.Lenght
var = Array[i-1]
Gimme a break. That’s just wrong. You go explain this to somebody who’s not into programming, he/she is going to say: "hmmm… that doesn’t look like something created by somebody really smart, who’s supposed to know something about logic… that’s just the opposite of logic". 🙂