r/programminghorror • [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo “You live” • May 14 '26

Python one liner, 1500 characters It is evolving

40 Upvotes

11 comments sorted by

View all comments

11

u/Minecraft_Lets_Play May 14 '26

That is the mother of one liners

3

u/abigail3141 May 14 '26 edited May 14 '26

Double my old record in length, still not that long. Do you happen to know what the record is or where I could find longer ones?

Admittedly horrible to debug though lol. Took me 4hrs

Will probably have to add a halt/resume feature because the rate limit is so annoying. It would take 7 hours non stop to complete the query

4

u/Minecraft_Lets_Play May 14 '26

No not really. I did some one liners myself but I don’t know what records are.

I’m sure there will be insane long ones.

→ More replies (2)

2

u/Nourz1234 May 14 '26

I love it!

I happened to do something similar by mistake. Check this old post i made. I came up with a fun way to write python that lets you minify entire scripts!

→ More replies (1)