this post was submitted on 08 Nov 2024
747 points (98.2% liked)

Programmer Humor

19564 readers
1412 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
[–] [email protected] 150 points 1 week ago (21 children)

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

[–] [email protected] 13 points 1 week ago (2 children)

What library are you using for that?

[–] [email protected] 29 points 1 week ago* (last edited 1 week ago) (1 children)

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

[–] [email protected] 8 points 1 week ago (1 children)

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

[–] [email protected] 1 points 1 week ago* (last edited 1 week ago)

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

Anti Commercial-AI license

[–] [email protected] 11 points 1 week ago

In Python you just use

import destroy_universe
load more comments (18 replies)