1052
do as i say... (lemmy.ca)
submitted 1 year ago by xia@lemmy.ca to c/programmerhumor@lemmy.ml
you are viewing a single comment's thread
view the rest of the comments
[-] IphtashuFitz@lemmy.world 338 points 1 year ago* (last edited 1 year ago)

Many years ago I had to try to debug a memory manager written by a really talented software engineer, with an interesting take on naming things…

  • He referred to blocks of memory as “cookies”.

  • He had a temporary variable named “handy” because it was handy to have around.

  • He had a second temporary variable that referenced the first one that he called “son_of_handy”.

  • If corruption was detected in a block of memory then it would set the flag “shit_cookie_corrupt”.

  • If too many cookies were corrupt then the system would halt by calling the function “oh_shit_oh_shit_oh_shit”.

[-] Wakmrow@lemmy.world 29 points 1 year ago

Okay yeah but I know what all those variables do

load more comments (12 replies)
this post was submitted on 09 Sep 2023
1052 points (97.2% liked)

Programmer Humor

32302 readers
394 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS