this post was submitted on 08 Nov 2024
677 points (98.3% liked)

Programmer Humor

19497 readers
1305 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
 
you are viewing a single comment's thread
view the rest of the comments
[–] state_electrician@discuss.tchncs.de 126 points 21 hours ago (2 children)

My favorite is StalinSort. You go through the list and eliminate all elements which are not in line.

[–] pyre@lemmy.world 43 points 20 hours ago* (last edited 20 hours ago) (3 children)

you should post this on lemmy.ml

[–] affiliate@lemmy.world 23 points 15 hours ago

it would be a pretty funny post for the full 5 minutes it would last until it got stalin sorted out of lemmy.ml

[–] magic_lobster_party@fedia.io 3 points 14 hours ago

They would see nothing wrong with it

[–] JackbyDev@programming.dev 0 points 11 hours ago (1 children)
[–] brian@programming.dev 2 points 1 hour ago

this isn't a community that they moderate tho

[–] Incandemon@lemmy.ca 2 points 4 hours ago (1 children)

I tend to prefer Hiroshima sort. Sorting completed in O(1) time, and it frees up memory too.

[–] 0x4E4F@infosec.pub 1 points 27 minutes ago

Underrated comment.