this post was submitted on 02 Nov 2025
        
      
      287 points (96.7% liked)
      Programmer Humor
    27175 readers
  
      
      1268 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
- Keep content in english
 - No advertisements
 - Posts must be related to programming or programmer topics
 
        founded 2 years ago
      
      MODERATORS
      
    you are viewing a single comment's thread
view the rest of the comments
    view the rest of the comments
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...