this post was submitted on 31 Mar 2025
345 points (97.8% liked)

Programmer Humor

22255 readers
531 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] db2@lemmy.world 12 points 1 week ago (3 children)

Indexes start at 3. ๐Ÿ˜ˆ

[โ€“] Aurenkin@sh.itjust.works 6 points 1 week ago

No no..... negative three

[โ€“] hakunawazo@lemmy.world 3 points 1 week ago* (last edited 1 week ago)

His index started like -6 or -4 (assuming he even existed).

[โ€“] lefixxx@lemmy.world 2 points 1 week ago

I'll take it over 0, because it will force people to think with what arrays are populated. And if 1 index or 0index is appropriate instead of defaulting all arrays and loops at 0.