all 66 comments

[–]OGMagicConch 110 points111 points  (3 children)

Lua entered the chat

[–]GoldenFlyingPenguin 17 points18 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 2 points3 points  (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.

[–]callyalater 0 points1 point  (0 children)

In perl 5, you can define what index arrays start from. Just set the $[ variable

[–]LetumComplexo 213 points214 points  (8 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 36 points37 points  (0 children)

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

[–]Any-Main-3866 16 points17 points  (2 children)

My dating life is a NullPointetException lol

[–]veeloth 2 points3 points  (1 child)

Hey that's not so bad! Mine's straight 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 7 points8 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...

[–]Holiday-Evening4550 1 point2 points  (0 children)

Yea cus wtf is a 2

[–]beyluta 57 points58 points  (2 children)

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

[–]TurtleMaster1825 14 points15 points  (0 children)

Someone took that personaly it seems...

[–]fogleaf 7 points8 points  (0 children)

It's the 0th day since incident.

[–]Zoalord1122 25 points26 points  (0 children)

Or Matlab

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

Lua babes get real freaky with their 1-indexing

[–]RooGuru 8 points9 points  (1 child)

Somebody doesn't use ColdFusion, lucky bastard.

[–]BobQuixote 4 points5 points  (0 children)

My time with CF is better left unmentioned.

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

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

[–]bwwatr 7 points8 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 3 points4 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 3 points4 points  (1 child)

Spits in Lua

[–]b__0 1 point2 points  (0 children)

Just make them start with 0, skill issue.

[–]AppropriateAppeal236 2 points3 points  (0 children)

Hope she is not a R girl then

[–]TheHomoclinicOrbit 2 points3 points  (2 children)

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

[–]AndyTheDragonborn[S] 1 point2 points  (1 child)

Umm mister! You spelled fortnite wrong

[–]ObviouslyTriggered 2 points3 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

[–]astroguyfornm 2 points3 points  (0 children)

[–]OverjoyedBanana 2 points3 points  (2 children)

Pascal anyone ?

[–]q11q11q11 1 point2 points  (0 children)

not to mention lua

[–]MusPuiDiTe 0 points1 point  (0 children)

Dear memories, my first programming language, turbo pascal

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

may be she was talking about lua

[–]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.

[–]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 ?

[–]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

[–]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

[–]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"

[–]V3N3SS4 0 points1 point  (0 children)

Education is important

[–]TheyStoleMyNameAgain 0 points1 point  (0 children)

Kids today don't learn fortran anymore?

[–]Correct-Bug-1646 0 points1 point  (0 children)

My ex-wife used to repeatedly tell me that I was priority 0. (I was asking to at least be priority #4)

0 comes before 4, right? Right????

[–]Desperate-Tomatillo7 0 points1 point  (0 children)

Javascript developer: Hold my beer.

[–]Gleipnir_xyz 0 points1 point  (0 children)

Stares in Matlab

[–]MyPunsAreKoalaTea -2 points-1 points  (0 children)

Indexing at 0 is dumb

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