this post was submitted on 28 Mar 2025
82 points (98.8% liked)

Just Post

1373 readers
6 users here now

Just post something ๐Ÿ’›

Lemmy's general purpose discussion community with no specific topic.

Sitewide lemmy.world rules apply here.

Additionally, this is a no AI content community. We are here for human interaction, not AI slop! Posts or comments flagged as AI generated will be removed.

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] Tarquinn2049@lemmy.world 4 points 11 months ago

Yeah, off-by-one errors are the most common error in programming, and when you are off by +1, and then try to bring it down to 0, it rolls over to max value instead. It makes sense, since some things use 0 as 1 and some things use 1 as 1. The programmer usually just has to memorize which is which... so yeah. Not surprising that it is the most common cause of bugs.