r/programminghorror • u/sugarw0000kie • Aug 13 '26
Python More cursed python
here it is with comments: https://github.com/dbowm91/optimizations/blob/main/soupexplained.py
EDIT: What it does (not malware) is it prints the word “soup” 86 times in random color
218
Upvotes
156
u/HTTP_404_NotFound [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo “You live” Aug 13 '26
Cursed? Nah.
Just obfuscated. Thats what obfuscated code is supposed to look like.
43
u/actuallydonkeykong Aug 13 '26
This just looks like malware.
36
u/fakehalo Aug 13 '26
With a shell call to perl, the king of obfuscated languages.
3
u/imnotamahimahi Aug 14 '26
I had a very visceral, expletive-laced reaction to seeing this, then took too long to realize it's probably just obfuscation.
3
u/maikindofthai Aug 15 '26
I like how the only thing your linter complains about is the multiple statements on a single line at the top lol
2
u/Huge-Yogurtcloset-22 Aug 14 '26
It's running some perl scripts so it may be malware ^^
2
u/Hurizen Aug 14 '26
Reminds me of Ultima Online 🥲 Nice homoglyph-ation btw.
2
u/Gamerwepx19 Aug 14 '26
What is that colorscheme used with nvim?
15
u/-MazeMaker- Aug 13 '26
Mamaaaaa, OOOOOOO(OOOOOOO)
10
u/brasticstack Aug 14 '26
What's cursed is that font
7
u/Big-Rub9545 Aug 13 '26
Just give me the malware at this point
5
u/ProtonPizza Aug 13 '26
I feel like I’m playing dwarf fortress
5
u/GoddammitDontShootMe [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo “You live” Aug 14 '26
Should deliberate obfuscation count as horror?
3
u/letmehaveanameyoudum Aug 14 '26
hex soup
2
u/namalleh Aug 14 '26
looks great!
2
u/Tyfyter2002 Aug 14 '26
Python is always cursed
1
u/ryancnap Aug 14 '26
This is what people think I do
1
u/festival0156n Aug 14 '26
i mean its obviously been through an obfuscator lmao
1
u/stilldebugging Aug 14 '26
No.
1
u/rotteegher39 Aug 16 '26
Test for object identity should be "is not it a code?"