News for hackers. Stuff that matters.
Re:The oldest person in the world never holds that title for... by scotty79 on Tuesday May 26, 2015 @09:25AM (#9604628)
>> (Strangely, the 20th century is considered to have started Jan. 1, 1901 > it's not strange at all!

Are you a Lua programmer?

Re:The oldest person in the world never holds that title for... by ScottBurson on Tuesday May 26, 2015 @01:36PM (#9606262)
Wow, is Lua now the canonical example of a language that uses 1-origin indexing? No one remembers Fortran anymore? God I feel old...
Re:The oldest person in the world never holds that title for... by scotty79 on Tuesday May 26, 2015 @02:48PM (#9606796)
Actually I just went here: http://en.wikipedia.org/wiki/Comparison_of_programming_langu...

sorted table by "Default base index" and at first picked FORTRAN, considered COBOL and Smalltalk for a while then saw Lua and thought that should resonate with people. My personal experience with 1 based indexing is from Matlab and Pascal (though you can base your indexes on whatever value you want there).

Re:The oldest person in the world never holds that title for... by TazeTSchnitzel on Tuesday May 26, 2015 @01:53PM (#9606362)
One of the few that people still care about!

Aside from BASIC, maybe.

Re:The oldest person in the world never holds that title for... by zzalpha on Tuesday May 26, 2015 @10:57PM (#9609073)
Or Algol. Or Pascal. Or Smalltalk...
Re:The oldest person in the world never holds that title for... by sp332 on Tuesday May 26, 2015 @01:15PM (#9606118)
There is no Year 0. So the first century was Year 1 - Year 100, the second century was Year 101-200 etc.
Re:The oldest person in the world never holds that title for... by quesera on Tuesday May 26, 2015 @01:46PM (#9606322)
"Year 1" was originally conceived as "the first year of our lord", which is one reason why there's no "zeroth year ...".

Now we're in the "two thousand and fifteenth year of our lord". Imagine all the off-by-one errors if years were zero-indexed.

Also, it wasn't until Fibonacci in 1200 or so before the western world developed a working relationship with zero.

But natural counting numbers are always 1-indexed anyway. The second dozen starts at 13. Bakers excepted, of course.

Re:The oldest person in the world never holds that title for... by derekp7 on Tuesday May 26, 2015 @02:09PM (#9606477)
But measurement of a person's age is 0 indexed. It is a year after you are born that you are 1 year old.
Re:The oldest person in the world never holds that title for... by quesera on Tuesday May 26, 2015 @06:21PM (#9608061)
Sure, but while you are 0, you are in your first year of life.
Re:The oldest person in the world never holds that title for... by Retra on Tuesday May 26, 2015 @02:25PM (#9606610)
Natural counting isn't 1-indexed. You usually count things after you tally them, not before. (You don't start counting beans by saying "one bean" and then waiting for that bean to arrive.)

Besides, it is not all that clear if someone just says "Jan 1 marks year one" whether it marks the end of the first year or the beginning. With dates, it usually marks the beginning. That's why it is 1-indexed. We hardly count anything else that way, so why would you assume it is 'natural counting'?

Re:The oldest person in the world never holds that title for... by pllbnk on Tuesday May 26, 2015 @02:00PM (#9606416)
So is Wikipedia (http://en.wikipedia.org/wiki/20th_century) wrong on this one? Seems like all other centuries are calculated correctly.
Re:The oldest person in the world never holds that title for... by bostonpete on Tuesday May 26, 2015 @02:10PM (#9606488)
Yes it's wrong. According to that page and the one on the 21st century, the year 2000 didn't belong to any century. Oddly, the wrong statement is listed as having two citations.
Re:The oldest person in the world never holds that title for... by sp332 on Tuesday May 26, 2015 @02:04PM (#9606442)
Re:The oldest person in the world never holds that title for... by eCa on Tuesday May 26, 2015 @03:00PM (#9606885)
As of right now it appears to be correct (1901-2000, inclusive).