this post was submitted on 02 Nov 2025
286 points (96.7% liked)

Programmer Humor

27182 readers
1003 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
[–] over_clox@lemmy.world 5 points 1 day ago* (last edited 1 day ago)

Me while doing error handling?

Well shit, all my functions both take and return memory addresses. When one of those blocks of data happen to fail the data sanity check, the function returns either -1, -2, -3, -4.

See, you'll never get such numbers as proper memory addresses, they're assigned as blocks, larger than 4 bytes..

So, if one of my functions returns a -1 through -4, that tells me which argument to the function failed the sanity check...