226
submitted 9 months ago* (last edited 9 months ago) by DroneRights@lemm.ee to c/programmer_humor@programming.dev

Yes, someone actually did this and I found it running on our server

you are viewing a single comment's thread
view the rest of the comments
[-] MagicShel@programming.dev 23 points 9 months ago

I'd make it a named function for clarity and testability and proceed to give zero shits how it is implemented. I would unironically write this code if it worked, but I wouldn't inline it to reduce the cognitive load of reading it.

[-] Cosmicomical@kbin.social 2 points 9 months ago

This, and maybe a couple of unit tests

[-] TheSlad@sh.itjust.works 4 points 9 months ago

7 unit tests should be enough I think

[-] Cosmicomical@kbin.social 1 points 9 months ago

Lol i can't lie, it took me a while to get the joke. I feel so dumb

this post was submitted on 16 Nov 2023
226 points (95.6% liked)

Programmer Humor

18890 readers
959 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 1 year ago
MODERATORS