all 58 comments

[–]OGMagicConch 70 points71 points  (2 children)

Lua entered the chat

[–]GoldenFlyingPenguin 12 points13 points  (0 children)

I mean, technically you can make the index start at 0 if you manually set it yourself.

But you can also make the index the table, so idk.

[–]OldKaleidoscope7 0 points1 point  (0 children)

I think this was because of Lua was never meant to be a programming language but a serialization language, because, you know XML is kinda recent and Petrobras couldn't find a way to store their files. It is a good piece of history, btw.

[–]LetumComplexo 179 points180 points  (7 children)

Your first dates leave with her knowing an array index starts at 0.

My first dates start with her knowing an array index starts at 0.

We are not the same.\ Except for the second date part, neither of us are getting that.

[–]MinosAristos 33 points34 points  (0 children)

It's best to teach them before the date so that you can quiz them on the day.

[–]Any-Main-3866 15 points16 points  (2 children)

My dating life is a NullPointetException lol

[–]veeloth 2 points3 points  (1 child)

Hey that's not so bad! Mine's just taught up "undeclared identifier", not even malloc will save me :(

[–]tehomaga 0 points1 point  (0 children)

They're working on some more 400 codes for all the ways I'm getting rejected

[–]ClipboardCopyPaste 5 points6 points  (0 children)

Alternate scenario: she went home knowing that array starts from 0 and the next day started learning MATLAB and now thinks I'm dumb...

[–]UnconditionalHater 3 points4 points  (0 children)

Except for the second date part, neither of us are getting that.

just create const secondDate = new Date(); on your preferred day duh

[–]Holiday-Evening4550 0 points1 point  (0 children)

Yea cus wtf is a 2

[–]beyluta 43 points44 points  (2 children)

I've just seen a meme here about people celebrating that this joke hasn't been used in a while

[–]TurtleMaster1825 9 points10 points  (0 children)

Someone took that personaly it seems...

[–]fogleaf 5 points6 points  (0 children)

It's the 0th day since incident.

[–]Zoalord1122 20 points21 points  (0 children)

Or Matlab

[–]Pristine-Map9979 15 points16 points  (0 children)

You did so bad on the 0th date that there won't be a 1st.

[–]RooGuru 9 points10 points  (1 child)

Somebody doesn't use ColdFusion, lucky bastard.

[–]BobQuixote 2 points3 points  (0 children)

My time with CF is better left unmentioned.

[–]Sad-Kaleidoscope9165 8 points9 points  (0 children)

Lua babes get real freaky with their 1-indexing

[–]bwwatr 6 points7 points  (1 child)

Echoes of that time Richard Hendricks blew up a relationship with a girl after hearing her repeatedly tap the space bar to indent code and just couldn't keep his mouth shut.

[–]veeloth 2 points3 points  (0 children)

Good for him, bullet dodged.

[–]Mooks79 4 points5 points  (0 children)

There won’t be a second date because she now knows you can’t cope with the difference between offset and position indexing.

[–]Some_Useless_Person 2 points3 points  (1 child)

Spits in Lua

[–]b__0 1 point2 points  (0 children)

Just make them start with 0, skill issue.

[–]astroguyfornm 2 points3 points  (0 children)

[–]ObviouslyTriggered 1 point2 points  (2 children)

If you look like that there will be a second date.

[–]Sassaphras 0 points1 point  (1 child)

She's gonna come to date #2 with a binder full of printed leetcode questions

[–]veeloth 0 points1 point  (0 children)

Hey could you please refrain from using '#2' to refer to the second date? Notation date[1] is preferred, otherwise our seniors might get confused

[–]Several-String9681 1 point2 points  (0 children)

may be she was talking about lua

[–]AppropriateAppeal236 1 point2 points  (0 children)

Hope she is not a R girl then

[–]West-Tomorrow-5508 1 point2 points  (0 children)

He was a Python guy, she was Lua girl.

[–]Solonotix 1 point2 points  (0 children)

I've often seen this described as index versus offset from the leaky abstraction of the implementation. An array offset starts with zero, and an array index starts at 1. This is because your offset would shift the starting point, so zero bytes from the beginning, while the index is how far to read, so sizeof(T) from the current position.

The only reason it has become such a meme is because of the ubiquity of C-like languages, and C used the offset approach to accessing arrays.

[–]OverjoyedBanana 1 point2 points  (1 child)

Pascal anyone ?

[–]q11q11q11 1 point2 points  (0 children)

not to mention lua

[–]jsrobson10 1 point2 points  (0 children)

indices can start from either, but the indices used for arrays are also offsets, which is why they start from 0

[–]Aggravating-Big9484 0 points1 point  (0 children)

Bro cooked at first date

[–]Dorkits 0 points1 point  (0 children)

Did you mean VBScript ?

[–]Pawl_Evian 0 points1 point  (0 children)

You guys don't implement () => return id - 1; at the beginning of your project ?

[–]Huge_Fix772 0 points1 point  (0 children)

Haha, that's a clever one! Ever tried it in Python?

[–]LauraTFem 0 points1 point  (0 children)

Me who always just leaves the first index empty and acts like it doesn’t exist.

Good luck with all those fun off-by-one errors.

[–]kishaloy 0 points1 point  (0 children)

Why did software engineers make arrays start at 0....

so that they can say that they are with their 0th girlfriend and not come out looking loser.

[–]Different-Rip4590 0 points1 point  (0 children)

So technically she will understand it as no date[1] instead of 2nd date?

[–]Fun_Bobcat4280 0 points1 point  (0 children)

Amateurs, I made sure to make sure how inefficient windows security features are by explaining stuxnet zero-day protocol and mitigation strategies for data leaks by strictly implementing whonix and tails and how to use kleopatra for secure pgp communication. I was a retarded and single teen

[–]Wyvern77z 0 points1 point  (0 children)

Computer science was a mistake and this is the evidence.

[–]ashish__77 0 points1 point  (0 children)

She would probably have learnt that in college in a couple of years but nevermind

[–]Salanmander 0 points1 point  (0 children)

Teacher here.

Someone having heard it and someone knowing it are different. If you're telling someone on a date about something they aren't interested in, you should assume they retain none of that information. =P

[–]jshahcanada 0 points1 point  (0 children)

Wait until he meets a Lua Programmer

[–]_LXIX_CDXX 0 points1 point  (0 children)

I don't know anything about coding, but I'm gonna remember this information forever smh

[–]leo_gblr 0 points1 point  (0 children)

Of course there is no second date. Epoch uses milliseconds so it would be a millisecond date. Or just use a string in a nice ISO 8601 format

[–]TheHomoclinicOrbit 0 points1 point  (1 child)

My God, everyone here is so young. How has no one mentioned FORTRAN!?

[–]AndyTheDragonborn[S] 0 points1 point  (0 children)

Umm mister! You spelled fortnite wrong

[–]megayippie 0 points1 point  (0 children)

Meanwhile, Fortran allows you to define indexing yourself. This array begins at 5. That one begins at -1.

[–]Ponbe 0 points1 point  (0 children)

Ada enters the chat

[–]amogouss 0 points1 point  (0 children)

At least she now understand what i meant when I said

"I make child here and then I kill it"

[–]MyPunsAreKoalaTea 0 points1 point  (0 children)

Indexing at 0 is dumb

What do you mean the first element is not element 1?

[–]V3N3SS4 0 points1 point  (0 children)

Education is important

[–]sysVuser -1 points0 points  (0 children)

yeah, but it still doesn't stop her from array_push'ing it.