260
you are viewing a single comment's thread
view the rest of the comments
[-] gandalf_der_13te@feddit.org 1 points 1 day ago

it's not just zero-based indexing though. i've had situations like these a couple of times: write a for ... of loop to iterate through the elements of an iterable. a lot of the times, there's an unwanted first / last element in the list (that doesn't actually belong there) and i forget to remove it, then end up with garbage data in the result set.

this post was submitted on 14 Sep 2026
260 points (97.1% liked)

Programmer Humor

33235 readers
1135 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 3 years ago
MODERATORS