1051
do as i say... (lemmy.ca)
submitted 11 months 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 339 points 11 months ago* (last edited 11 months 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”.

[-] ajmaxwell@lemmy.world 149 points 11 months ago
[-] dhtseany@lemmy.ml 45 points 11 months ago

To be honest I'd like to see his resume, kinda wanna hire him

[-] IphtashuFitz@lemmy.world 46 points 11 months ago

That was close to 30 years ago - a DOS memory manager written prior to Windows 3.0. He’s likely retired now…

[-] gratux@lemmy.blahaj.zone 55 points 11 months ago

proposal to rename exit() to oh_shit_oh_shit_oh_shit()

[-] tslnox@reddthat.com 43 points 11 months ago

screw_you_guys_im_going_home()

[-] vrighter@discuss.tchncs.de 12 points 11 months ago

fuck_this_shit_im_outta_here()

[-] KIM_JONG@lemmy.world 6 points 11 months ago

In the 90s there was a Redhat distro called Cartman.

[-] z500@startrek.website 4 points 11 months ago

Red Hat 6.1, that was my first Linux distro.

[-] Getallen@feddit.nl 3 points 11 months ago

screw_you_im_gonna_go_play_minecraft()

[-] drew_belloc@programming.dev 45 points 11 months ago

I will keep this legacy alive within my code

[-] Wakmrow@lemmy.world 29 points 11 months ago

Okay yeah but I know what all those variables do

[-] markstos@lemmy.world 15 points 11 months ago
this post was submitted on 09 Sep 2023
1051 points (97.2% liked)

Programmer Humor

31784 readers
243 users here now

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

Rules:

founded 5 years ago
MODERATORS