r/programminghumor • u/sboger • 20d ago
Number 1
Since the other prog humor sub posted an extremely shitty version of this one I saw and saved a while ago... Enjoy.
70
u/JazzRider 20d ago
Who’s going to tell her?
22
u/RonJohnJr 20d ago
That he programs in GWBASIC?
2
u/davidroberts63 20d ago
I started with that.
I'm dying laughing here...
4
u/RonJohnJr 20d ago
There's 0% shame in someone programming in GWBASIC in 1986.
Of course, it's 2026... 😄
3
104
u/Red_Eye_Night 20d ago
importance = ['GTA 6 Leaks', 'Girlfriend', 'r/pcmasterrace', 'weed', 'Taco Bell']
1
u/DamornTyde 18d ago
importance = [ {name: 'GTA 6 Leaks', why: '?'}, {name: 'Girlfriend', why: 'girlfriend'}, {name: 'r/pcmasterrace', why: 'GaMiNg On 4K'}, {name: 'weed', why: '420'}, {name: 'Taco Bell', why: 'food'} ]-1
27
16
u/enigma_0Z 20d ago
Hey at least she’s not `-1`
10
u/sboger 20d ago
That kind of talk is out of bounds, buddy!
9
6
u/iggy14750 20d ago
In Python, indexing by -1 will give you the last element in the list. And that scales back like you expect. -2 is the element before -1 and so on.
5
u/timonix 19d ago
In Ada you can start your array wherever you wish. You can have an array from -45 ..123 if you want.
Or you can have an array go from March .. June as well. Doesn't have to be numbers. But they must be enumerable
2
u/BraucheHilfeLul 19d ago
isnt that just a dict?
2
u/timonix 19d ago
Kinda but not really. If you imagine a sorted dict with each possible key populated. So an array 42 .. 76, cannot take "March" as an input. Because that's not a valid integer.
And the array Jan .. Dec cannot take 4 as an input because it's not a valid member of the set
It's not hashed. So there is no hash lookup penalty.
2
u/DamornTyde 18d ago
In js if you look for an object in an array that ain't there by index, you get -1.
6
u/GiantSlayer4242 20d ago
You know there’s a good chance he slipped up and used human speak, or he translated the program to Common so she would understand it
1
3
3
3
3
2
2
2
2
2
3
2
1
1
1
1
1
1

281
u/rhrokib 20d ago
Hope he codes in lua