Hey, if she thinks 1 is 1st index then you
doggeddodged a bullet and deserve better.Happy now all you English majors.
you dogged a bullet
😳
🐕🐕🐕
She was a lua girl, he was every other programming language guy. It was not ment to happen.
She liked embeddded apps
And he liked desktop displays
What more can I say?Hey, don’t forget the Matlab people
And R!
And abap
And Julia!
Wouldn’t it be nice if documentation used the words index and offset consistently?
The problem is that they both are contextual and can mean any position in a list/array. The starting index or starting offset is generally zero, but could be one, depending on the language used.
i wonder why people haven’t made a language that starts indexing at 2 yet. maybe some day
Maybe this could be a feature in brainfuck or COBOL.
god i hope so
Dreamberd starts array indexing at -1 instead of 0 or 1.
what a beautiful language
Aren’t those two the same thing? At least in C-style arrays, which might not be how they’re handled under the hood, but is at least how most languages present it to the programmer.
in my understanding offset is technically the “relative index”, or how much you have to go further
Yes they are presented in the programmer wrong. The first thing in memory should have offset 0 and index 1
Don’t wanna state the obvious, but it looks like they still ended up staring at each other for the rest of the evening.
They have shown that they still love each other, so hope they can work with their one irreconcilable difference.
I love the idea that they’re at two adjacent tables, each one staring at the other wondering why they hate them.
They hate each other because they are intolerant to one another’s index choices
It’s for the best
Isn’t the guy at the zeroith table?
There is no such thing as “zeroith”. Does not matter which numbers you slap on the tables, the one with the lowest number will always be the first. The word “first” has nothing to do with indices, it’s just an antonym for “last”.
I kind of brought this up in another comment, that “first” and “1st” aren’t really the same thing. Which is confusing when you extend that to fourth/4th five/5th. I don’t generally see someone write “zeroith”, but I’ll see “0th”.
And here I thought people write “1st” because they are lazy and want to press 3 keys instead of 5.
First and 1st are certainly different symbols for the same concept
The spelling for the index before the first is zeroth, no need to insert an extra vowel
There’s no such thing as “zeroith” because it’s called “zeroth — being numbered zero in a series”
This works for building storeys, this would work equally well for tables. The only reason this is not used often is because the series are rarely zero-based in anything that doesn’t also want to equate index and offset.
You’re right that first may be read as “opposite of last”, that would add to the confusion, but that’s just natural language not being precise enough.
Edit: spelling
Edit2: also, if you extend that logic, when you’re presented with an ordinal number, you would need to first check all the options, sort them, and then apply the position you’re asked, that’s not really how people would expect ordinal number to be treated, not me, at the very least
Americans also index their building floors from 1
A two storey American building has floors 1 and 2, where elsewhere they might be ground (zero) and 1.
Not only them, and I’m not here to blame 😅
Indeed, however the Americans stand out in the anglosphere
Canada sad.
They always forget about us.
Which standard does Canada use?
That’s a problem when you get to the fourth.
Yes, and if he texted “Hey, I’m at the zeroith table” and the woman replied with the sibling comment then you know to run far and run fast.
maybe she’s a lua developer
I love how they’re looking at each other
God yes, you can clearly see from the background scene that while at different tables they can clearly see each other. All this bickering is madness
IS THIS Love Advice From the Great Duke of Hell??
(it’s a webcomic, I loved the story)
I still mess this up for lists in Python…
1st table is not equal to table 01 because there no 0st table
0th (only first gets the -st ending; only second gets its end)
That is why my restaurant will number tables by UUID.
A much better idea than when I tried to organize my restaurant with hashtables.
It was too much for the waitstaff, who had to reindex the floor plan every time they added or removed a plate.
On the plus side, delivering the right food was always O(1).
She is right, using 0 index for physical stuff is stupid.
Blame the restaurant for having a table identified as zero
Why? It seems exactly as valid to me, and more valid if you like positional numberings of your physical stuff.
You just count the number of times you departed from an item in order, rather than the times you arrived.
Your rulers start at 1? That sounds annoying.
Rulers measure cardinal quantities and not ordinal ones. There is no cardinal numbering scheme that starts at 1, all of them “start” at 0. For ordinal numbering schemes, the symbols are arbitrary anyway and you can start with whatever you want. It’s equally valid to start with 1, 0, -1, A, or “aardvark”. The only benefit to picking 1 as the start is to make it easier to count with your fingers while picking 0 lets you easily convert an ordinal quantity to a cardinal one.
Your job is to move apples from one bin to another. You pick up the first one and set it in the other bin, and say “zero.”?
There’s another way to think about it which I actually use. Look in the empty bin and say “zero”, then move an apple and say “one”.
When playing games with the kids, we start at 0 being the position you are currently in, then count from there.
e.g. in snakes and ladders, if you are on spot 30 and roll a 5, tap spot 30 and say “zero”, then spot 31 is “one” etc… till you are at spot 35 saying “five”.
Teaches the kids about zero and avoids miss counts from the younger ones counting their current position as “one”
I’ve seen a lot of rulers that actually don’t have a mark at 0 and instead go right to the edge as 0. Typically they are worn down, being made of wood, so the accuracy of the first inch is dubious. To ensure the distance is correct, sliding the ruler down one unit is a good idea. So, my ruler starts at 0 but my measurements start at 1.
That’s why decent rulers have a 0 and a margin:
It really depends on what you’re measuring. Good luck measuring the distance from a corner if you can’t get 0 to touch the end.
Tape measures are almost always designed with this in mind, so you can hook the end over an edge, or butt it up against something and the measurement will be accurate both ways, since the metal end can slide in or out by just the right amount.
Just shave down the rulers margin!
since the metal end can slide in or out by just the right amount.
OMG! I genuinely thought all the tape measures I have handled were a little broken.
Touchè
é
ë
No, it’s still touché.
Works for floors!
i wish the people making buildings around here knew that. some start at floor 3, others at 5. some start at 0. others at 2. every building has its own story. you need to understand the building before you can understand your position in it.
if a building is built into a hillside in the uk and has exits on floors 2 and 5, which would be the ground floor?
My intuition would be floor 2, as it is the lowest floor to the ground that isn’t underground
it’s floor 5 from monday to wednesday, and floor 2 from thursday to sunday
Not on this side of the pond. We typically don’t have a ground floor, that’s just the first floor.
Guy is wrong. Went to 0th table. She asked for 1st table.
they were never meant to be together, they would confuse the hell out of each other. Imagine they have two kids and she says pick kid[1] from the school, then what?
I think children go in dictionaries so you can look them to via name (key).
Child Overflow Error
Edit: oh wait you said two kids, nvm
Hol’ up!
One kid’s getting garbage collected either way
In the UK it’s called a ground table.
So it was a spelling mistake? They’re actually The Knights of The Ground Table!
They dance whenever they’re gable?
When you get off an airplane, do you say
“Its great to be back on solid first floor of the earth.”
?
If the walkway goes inside the building, then yes. And the walkway usually leads directly to the second floor, because the airplane door is 3 metres above the ground.
OK but what about going onto the ground?
Like, in your garden, is that the first floor of the planet?
Inside the building it’s the first floor, even if it’s exactly at the sea level altitude. Outside the building it’s the ground. Basement levels start at minus one, there is no zeroth floor.
Exactly, the idea that you go up a floor because there’s a roof over your head is very silly.
do you also have minced tables there?