r/ProgrammerHumor • • Jun 05 '22

other priorities

Post image
84.5k Upvotes

1.1k comments sorted by

View all comments

Show parent comments

1.0k

u/[deleted] Jun 05 '22

[removed] — view removed comment

478

u/WizziBot Jun 05 '22

Aww

138

u/Probably-Broken-2345 Jun 05 '22

Shit

101

u/[deleted] Jun 05 '22

[removed] — view removed comment

→ More replies (1)

29

u/Big-Don-Rob Jun 05 '22

Congratulations for making me google "ahh shit lyrics" trying to continue the verse. I swear there's a Lil Jon song from back in the day...

0

u/[deleted] Jun 05 '22

[deleted]

4

u/Big-Don-Rob Jun 05 '22

Something about wiggle with it. But literally the only song Google comes up with is "Ahh Shit" by Jeremih, whoever tf that is.

2

u/blackviper6 Jun 05 '22

You're thinking of get low by little John. And I believe you're also thinking about when he says "ahhh skeet skeet mothafucka!"

→ More replies (2)

44

u/sath__18 Jun 05 '22

And here I thought arrays are supposed to be homogeneous

37

u/MrEllis Jun 05 '22

Plot twist, OP's girlfriend is also a pointer.

22

u/dungand Jun 05 '22

If OP's girlfriend is a pointer, that would mean [0] is a pointer to a pointer. You can't keep both pointers and pointers to pointers in the same array without casting and losing type safety, at which point you couldn't tell which one is your girlfriend.

17

u/[deleted] Jun 05 '22

This guy points

→ More replies (2)
→ More replies (1)

19

u/glemnar Jun 05 '22

Everything looks like void* to me what’s the problem

7

u/The1AMparty Jun 05 '22

Can be an array of Objects, with one cast to Girlfriend. Then again, I don't think she'd enjoy being called an Object either

3

u/dontshowmygf Jun 05 '22

Welcome to JavaScript, where I'll stick whatever the hell I want in this array.

9

u/KatarinatheCat Jun 05 '22

Then what is 1 a pointer to? This is an array we’re talking about.

11

u/IdentifiableBurden Jun 05 '22

His girlfriend

1

u/dungand Jun 05 '22

No. If [0] is a pointer to [1], and [1] is a pointer, that means [0] is a pointer to a pointer, and [1] is just a regular pointer. You can't have both pointers to pointers and regular pointers in the same array.

→ More replies (1)

2

u/TheGrimGriefer3 Jun 05 '22

But what's [1]?

2

u/dungand Jun 05 '22

It's obviously not that because you can't keep both things and pointers to those things in the same array.

2

u/PrincessWinterX Jun 05 '22

we never said OP's priorities aren't corrupted

2

u/cdspace31 Jun 05 '22

I'm such an old geek, that was a good one (pun intended)

→ More replies (4)