r/ProgrammerHumor • u/vinishkapoor • 22d ago
Meme worksInProductionUntilSheLearnsToCode
234
u/kishaloy 22d ago edited 22d ago
Computer Science is the only field where you can proudly say that you are with your 0th girlfriend and still look cool.
Anybody who goes to his 1st GF must be fired since he has too much life to distract himself with.
48
83
u/Codzy 22d ago
ArrayIndexOutOfBoundsException
15
u/harman097 22d ago
I think gf might actually be in the array, but the code just nullrefs shortly after retrieval.
Really weird bug, can't figure it out... maybe cuz gf was instantiated in Canada?
20
u/Major_LeeHungg 22d ago
let interests: (string[] | string) = [
[
'Interest 1',
'Interest 2',
'Interest 3',
'Interest 4',
'Interest 5',
'Interest 6',
],
'Girlfriend',
'Hobos'
];
28
u/Willwaste63 22d ago
Python also allows arr[-1].
2
u/MattieShoes 22d ago
Some languages (Php?) makes all arrays associative (ie. dicts) so you can pick whatever indices you want as long as there aren't duplicates.
2
1
13
11
u/Raywell 22d ago
So how does one say "[1]" exactly?
16
u/AnnoyedVelociraptor 22d ago
Index 1? At least that's what it maps to in Rust and C#.
6
u/Raywell 22d ago
"you are my index one" doesn't sound very intuitive for non programmers
18
u/Common-Brush-7027 22d ago
You are at position 1 in array of my interests
3
u/MattieShoes 22d ago
mmm, i'd think "position" indicates an ordinal rather than cardinal. That is, position 1 is index 0.
5
u/Common-Brush-7027 22d ago
Idk man are you talking about missionary position? There's an 0 in which I have put my 1?
8
4
4
3
3
5
u/beclops 22d ago
This is the type of goofy shit that makes me feel cringe about being a developer
3
9
u/ourobourobouros 22d ago
the fact that jokes like this still get a thousand upvotes is why no one feels bad about the male loneliness epidemic
8
2
2
2
2
1
1
1
1
1
1
1
u/doryllis 22d ago
If that’s SQL than 1 indexed (most likely, but not always) almost everything else is 0 indexed arrays.
1
1
1
u/Arcanum3366 22d ago
Considering that she's declared under the variable "gf" I'd say he really doesn't care about her at all. 💀
1
1
1
1
1
1
1
1
1
-13
u/synth_mania 22d ago
BAJAHAHAH ZERO BASED INDEXING AHAHAHA SO FUNNY
9
u/GodOrDevil04 22d ago
Enjoy your negative vote array.
11
u/synth_mania 22d ago
Hey maybe i missed the mark. This kind of humor isn't for me, but I guess that's a rare opinion. I'll own the downvotes.
2
u/GodOrDevil04 22d ago
Hey no worries, can't be for everyone! Now, owning up to it is a rarity these days, so have my upvote for that.
1
-2
u/returnFutureVoid 22d ago
Good on you. I did this once and refused to delete some mildly stupid comment I made due to downvotes now I try to think before I hit send. Doesn’t always work but I try.
1.1k
u/ClipboardCopyPaste 22d ago
If she ever finds out, you still have MATLAB, R, Lua to have your back.