3 ms·
>a sure sign that it is non-intuitive Well, 0-based is not what we use in everyday life, and even arriving at the invention of 0 took us several millenia, so I
by coldtea 6y ago
>a sure sign that it is non-intuitive
Well, 0-based is not what we use in everyday life, and even arriving at the invention of 0 took us several millenia, so I'd say its non-intuitiveness is pretty much established...
- teekert 6y agoWell, I was born aged 0, turn 1 at the start of my second year on the planet.
- improbable22 6y agoIf you ask kids how old they are, you will often get "5 and a half" etc. They are, correctly, thinking of time as a continuous variable. You "turn 1" when your age reaches 1.0.
- mc32 6y agoFor ages people use the unit that best captures the spirit of what they want to communicate. So they may say one hour old, five days old, six months old, etc. a fifty year old typically doesn’t say they are a half centenarian either. Now decades are used to express an age range like so and so is a nonagenarian to avoid being specific.
- coldtea 6y agoYou didn't have 1 year, but you had 1 day old or 2 weeks old, or 3-6 months old, etc. People never said and still dont' say "this baby is 0 years old". They start at the first complete item of the lower level time units and progress from there...
- gjm11 6y agoIntuition depends on what you're used to. The ancient Greeks didn't think 1 was a number; as late as ~1500CE Isidore of Seville was saying "one is the seed of number but not number". After all, if there's only one thing you don't need to think of it as a set of things, so there's no counting to do. (I think in some quarters it was even argued that two isn't a number, but I forget the details. Compare the fact that some languages treat pairs of things differently in their syntax from larger groups.) But it turns out that mathematically it's a really good idea to count 1 as a number and allow sets of size 1, and these days everyone does it and no one is very confused by it. (Well, maybe by the "sets of size 1" thing. Exhibit A: Perl. Exhibit B: Matlab.) And because we're now all used to thinking of 1 as a number, it's hard even to understand how anyone might have found it unintuitive. If we all started counting from zero and taught our children to do likewise, intuitions 50 years from now might be somewhat different from what they are now.
- gfxgirl 6y agoWe use it all the time. It's a measure of distance. If you haven't moved from where you started you've moved zero distance. That's what it represents in indexing, the distance you have to travel to get to the element you want.
- coldtea 6y ago>We use it all the time. It's a measure of distance. If you haven't moved from where you started you've moved zero distance. That's an offset. It's already covered in detail in TFA. We don't deal with such offsets in programming, except in C pointer arithmetic (which infested this upon us).
- jhayward 6y agoReally? What value does the 'minutes' digit of the first minute of an hour have?
- IncRnd 6y ago0-based is absolutely what we use in everyday life. How many more things can I fit in that box? How many comments are in that HN page? I'd write more, but I'm running on empty and my pen is out of ink.