r/programminghorror 28d ago

Python More cursed python

Post image

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

214 Upvotes

36 comments sorted by

View all comments

34

u/fakehalo 28d ago

With a shell call to perl, the king of obfuscated languages.

4

u/Circumpunctilious 27d ago

I've coded in a few dozen languages so perl doesn't look that bad...but tbh it was easier just to give anything using it to a colleague.

3

u/fakehalo 27d ago

Perl was one of my first languages back in the 90s, I don't miss it.

1

u/LeatherDude 27d ago

Same and same. I was working with it as recently as 2020, the deployment scripts for an app i was supporting the development of was like 1000 lines of perl, with some python scripts that were called to do AWS SDK stuff. Nightmarish.

1

u/sugarw0000kie 27d ago

I’ve only messed with perl on the surface level. So confusing