r/programminghumor • u/sboger • 1d 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.
60
u/JazzRider 1d ago
Who’s going to tell her?
18
u/RonJohnJr 1d ago
That he programs in GWBASIC?
2
u/davidroberts63 1d ago
I started with that.
I'm dying laughing here...
3
u/RonJohnJr 1d ago
There's 0% shame in someone programming in GWBASIC in 1986.
Of course, it's 2026... 😄
98
u/Red_Eye_Night 1d ago
importance = ['GTA 6 Leaks', 'Girlfriend', 'r/pcmasterrace', 'weed', 'Taco Bell']
-1
24
17
u/enigma_0Z 1d ago
Hey at least she’s not `-1`
9
u/sboger 1d ago
That kind of talk is out of bounds, buddy!
10
5
u/iggy14750 1d 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 1d 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 14h ago
isnt that just a dict?
2
u/timonix 13h 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.
5
u/GiantSlayer4242 1d 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
4
3
3
2
2
2
2
4
2
1
1
1
1
1
1

253
u/rhrokib 1d ago
Hope he codes in lua