560
Not my problem sort (infosec.pub)
you are viewing a single comment's thread
view the rest of the comments
[-] BatmanAoD@programming.dev 124 points 16 hours ago

Reminds me of quantum-bogosort: randomize the list; check if it is sorted. If it is, you're done; otherwise, destroy this universe.

[-] SubArcticTundra@lemmy.ml 12 points 16 hours ago

What library are you using for that?

[-] SkaveRat@discuss.tchncs.de 11 points 12 hours ago

In Python you just use

import destroy_universe
[-] jcg@halubilo.social 25 points 16 hours ago* (last edited 16 hours ago)

is-sorted and a handful of about 300 other npm packages. Cloning the repo and installing takes about 16 hours but after that you're pretty much good for the rest of eternity

[-] Swedneck@discuss.tchncs.de 6 points 9 hours ago

that explains why it took god 7 days to make the universe

[-] onlinepersona@programming.dev 1 points 8 hours ago* (last edited 8 hours ago)

We still suffer from the runtime errors that could've been caught at compilation time.

Anti Commercial-AI license

load more comments (18 replies)
this post was submitted on 08 Nov 2024
560 points (98.3% liked)

Programmer Humor

19488 readers
1085 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