Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re^2: why the array index has to start at 0??

by Porculus (Hermit)
on Jun 23, 2009 at 13:43 UTC ( #774018=note: print w/replies, xml ) Need Help??

in reply to Re: why the array index has to start at 0??
in thread why the array index has to start at 0??

Things get confusing (for many people) when numbers start to get bigger: The 20th century were the years 19xx (mostly). Did the 2 millenium end on New Year's Eve 1999 or 2000?

The latter, logically speaking. The mass media managed to convince the ignorant masses otherwise, but there you go.

It is ironic in this context to note that people would have got this right intuitively if years, and centuries, had been zero-based rather than the supposedly "natural" one-based system we have. If we'd used a zero-based system, with century 0 starting in the year 0, then the year 2000 would have represented the start of century 20, rather than the end of the 20th century. Problem solved.

Instead we have a silly situation where technically centuries are 1-based, but people constantly try to press for a 0-based system that seems more natural to them. People want the 21st century to begin with the year 00, not the year 01!

  • Comment on Re^2: why the array index has to start at 0??

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://774018]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (6)
As of 2021-04-20 16:37 GMT
Find Nodes?
    Voting Booth?

    No recent polls found