Python code, judged.

47 Python posts rated by Ewwsers 路 average 7.5 EWW. Beautiful, cursed and questionable Python, scored 0 to 10 and roasted in the Roast Pit.

intern_summer
@intern_summer House
3d 路 python 路 0 views
Store the password
python5 lines
9.2/10
EWW
Rated by 27 Ewwsers
Verified haunted. Do not merge after midnight.
AI ROASTFired at 19 ratings - once per post

MD5 hasn't been safe for passwords since roughly the Cretaceous, and you've helpfully paired it with an f-string so a username like `'); DROP TABLE users;--` can finish the job. That's not authentication, that's a two-for-one security seminar.

AI-generated - based on this post's Eww Score and ratings - roasts code, never people.
sleepy_sync
@sleepy_sync House
5d 路 python 路 0 views
Wait for the export
python9 lines
6.6/10
GROSS
Rated by 17 Ewwsers
Cursed. Confirmed by committee.
AI ROASTFired at 11 ratings - once per post

Fifteen, forty-five seconds of sleeping and then you just open the damn file anyway if it still doesn't exist. That's not waiting for an export, that's three naps and a prayer.

AI-generated - based on this post's Eww Score and ratings - roasts code, never people.
float_money
@float_money House
7d 路 python 路 0 views
Split the bill
python6 lines
6.9/10
NASTY
Rated by 14 Ewwsers
The crowd built a small shrine and backed away.
AI ROASTFired at 9 ratings - once per post

Thirteen cents evaporated because you built a list of identical floats and trusted `round` to make the money add up. `sum` isn't a rounding error, it's your receipt going missing.

AI-generated - based on this post's Eww Score and ratings - roasts code, never people.
regex_priest
@regex_priest House
8d 路 python 路 1 views
Get the host from a URL
python8 lines
6.7/10
GROSS
Rated by 17 Ewwsers
The Ewwsers recoiled in unison.
AI ROASTFired at 11 ratings - once per post

You wrote a URL parser where the host of "https://user:[email protected]/a" comes back as "user," because your regex cheerfully skipped right past the credentials you forgot exist. Somewhere a colon is quietly laughing at you.

AI-generated - based on this post's Eww Score and ratings - roasts code, never people.
intern_summer
@intern_summer House
8d 路 python 路 1 views
Free up disk space
python10 lines
6.9/10
NASTY
Rated by 19 Ewwsers
The Ewwsers recoiled in unison.
AI ROASTFired at 13 ratings - once per post

You wrote a function called cleanup and pointed it at the root of the filesystem, where "test" is a perfectly innocent folder you are now deleting with rmtree. This isn't freeing disk space, it's a space program for your entire machine.

AI-generated - based on this post's Eww Score and ratings - roasts code, never people.
clean_coder
@clean_coder House
8d 路 python 路 1 views
Chunked, lazily
python11 lines
1.2/10
HONESTLY GREAT
Rated by 12 Ewwsers
The kind of code you show your team on purpose.
The AI roast is still asleep - it fires once, automatically, when enough judgments land.
regex_priest
@regex_priest House
30d 路 python 路 1 views
Validate an email
python6 lines
7.6/10
CURSED
Rated by 20 Ewwsers
This code has lore. Dark lore.
AI ROASTFired at 13 ratings - once per post

The regex says .+@.+ which means a@b and @ are both valid and "me @ you" with a literal space sails through as a goddamn email. You named it is_email and then wrote a check that would bless a string of piss as long as it has one @ in the middle.

AI-generated - based on this post's Eww Score and ratings - roasts code, never people.
intern_summer
@intern_summer House
30d 路 python 路 0 views
Password check
python6 lines
7.1/10
NASTY
Rated by 17 Ewwsers
Somebody's on-call phone just rang on its own.
AI ROASTFired at 11 ratings - once per post

Empty password returns True with a comment that just says guest. That's not a feature, that's a signed confession left in the codebase.

AI-generated - based on this post's Eww Score and ratings - roasts code, never people.
float_money
@float_money House
31d 路 python 路 2 views
Checkout total
python7 lines
9.3/10
SERIOUSLY EWW
Rated by 23 Ewwsers
The Ewwsers have seen things. This is the things.
AI ROASTFired at 14 ratings - once per post

Ah yes, the checkout total: `0.5000000000000001`. You accumulated money in a binary float like it's a physics simulation and not the one place on earth where cents are legally real. Customers will love paying that extra 0.0000000000000001, and your accounting team will love it slightly less.

AI-generated - based on this post's Eww Score and ratings - roasts code, never people.
off_by_one
@off_by_one House
32d 路 python 路 1 views
Last element
python5 lines
8.9/10
EWW
Rated by 24 Ewwsers
Roasters formed an orderly queue around the block.
AI ROASTFired at 15 ratings - once per post

`items[len(items)]` throws IndexError every single time, which means that function's real job is documentation on how off-by-one errors are made. Calling it `last` is just lying to your own traceback.

AI-generated - based on this post's Eww Score and ratings - roasts code, never people.
intern_summer
@intern_summer House
32d 路 python 路 1 views
Reverse a string
python8 lines
8.1/10
DEEPLY CURSED
Rated by 21 Ewwsers
Somebody's on-call phone just rang on its own.
AI ROASTFired at 14 ratings - once per post

You wrote is_palindrome, a function whose entire job is a boolean, as a triple-reverse palindrome Rube Goldberg machine that compares a string to itself. reverse(reverse(s)) is s, so this masterpiece just tests whether s equals reverse(s) after flipping it twice for no goddamn reason.

AI-generated - based on this post's Eww Score and ratings - roasts code, never people.
intern_summer
@intern_summer House
33d 路 python 路 0 views
Cache with a database
python15 lines
7.6/10
CURSED
Rated by 18 Ewwsers
Cursed. Confirmed by committee.
AI ROASTFired at 11 ratings - once per post

Using a Python dict as your cache and calling `time.sleep(2)` the database is adorable, like labeling a cardboard box "Ferrari" and pushing it down the driveway. Every process restart wipes this permanently, and calling `clear_cache()` is just how you say you with words.

AI-generated - based on this post's Eww Score and ratings - roasts code, never people.
thread_unsafe
@thread_unsafe House
33d 路 python 路 1 views
Counter
python13 lines
8.9/10
EWW
Rated by 26 Ewwsers
Biohazard tape is being printed as we speak.
AI ROASTFired at 16 ratings - once per post

Eight threads racing to increment a bare global, no lock in sight, and a comment that says probably. Congratulations, you built a bug that lies differently every single run. That `# 800000, probably` is doing more honest work than the entire thread model.

AI-generated - based on this post's Eww Score and ratings - roasts code, never people.
print_debugger
@print_debugger House
35d 路 python 路 0 views
Exception handling
python11 lines
9.4/10
SERIOUSLY EWW
Rated by 28 Ewwsers
Roasters formed an orderly queue around the block.
AI ROASTFired at 17 ratings - once per post

Swallowing a ZeroDivisionError and returning 0 means some poor bastard eventually divides by that result and gets zero again, forever. You didn't handle the exception, you fed it and taught it to reproduce.

AI-generated - based on this post's Eww Score and ratings - roasts code, never people.
regex_priest
@regex_priest House
35d 路 python 路 2 views
Parse HTML properly
python7 lines
8.3/10
HAUNTED
Rated by 23 Ewwsers
This code has lore. Dark lore.
AI ROASTFired at 14 ratings - once per post

You decided the HTML parser was overkill and reached for regex, then named your function get_links like nobody's ever put a > in an href. That title regex goes greedy across your entire document because you clearly enjoy being surprised.

AI-generated - based on this post's Eww Score and ratings - roasts code, never people.
sleepy_sync
@sleepy_sync House
35d 路 python 路 1 views
Waiting for the server
python11 lines
6.7/10
GROSS
Rated by 16 Ewwsers
Somebody's on-call phone just rang on its own.
AI ROASTFired at 10 ratings - once per post

You sleep five seconds after a successful health check because vibes are a valid substitute for knowing what a timeout is. That bare `except Exception` is a trash can wearing a hazmat suit, and every bug inside it goes to the landfill unnamed.

AI-generated - based on this post's Eww Score and ratings - roasts code, never people.
copy_pasta
@copy_pasta House
35d 路 python 路 0 views
Singleton pattern
python12 lines
8.0/10
DEEPLY CURSED
Rated by 17 Ewwsers
The crowd built a small shrine and backed away.
AI ROASTFired at 12 ratings - once per post

You built a singleton, then made `Database()` silently attach a shared dict to the class and let `db1.conn` print as `"open"` on `db2`. Welcome to the first day of your new threading incident review, where the whole team gets to share one connection and the blame.

AI-generated - based on this post's Eww Score and ratings - roasts code, never people.
magic_number
@magic_number House
35d 路 python 路 0 views
Business rules
python8 lines
9.2/10
EWW
Rated by 23 Ewwsers
Roasters formed an orderly queue around the block.
The AI roast is still asleep - it fires once, automatically, when enough judgments land.
intern_summer
@intern_summer House
37d 路 python 路 0 views
Reverse a string
python8 lines
7.2/10
NASTY
Rated by 15 Ewwsers
Cursed. Confirmed by committee.
AI ROASTFired at 9 ratings - once per post

`is_palindrome` calls reverse three separate times and invents a fourth reversal with `[::-1]` just to have something to compare against. That's not a palindrome check, that's a palindrome hostage situation.

AI-generated - based on this post's Eww Score and ratings - roasts code, never people.
thread_unsafe
@thread_unsafe House
37d 路 python 路 1 views
Counter
python13 lines
9.4/10
SERIOUSLY EWW
Rated by 27 Ewwsers
Roasters formed an orderly queue around the block.
AI ROASTFired at 20 ratings - once per post

Eight threads doing unsynchronised `count += 1` because Python's GIL is doing sweet fuck all to protect a read-modify-write, and that little `# 800000, probably` comment is you admitting the bug before the interpreter even gets to embarrass you. You didn't write a counter, you wrote a race condition with a prayer attached.

AI-generated - based on this post's Eww Score and ratings - roasts code, never people.
print_debugger
@print_debugger House
37d 路 python 路 0 views
Exception handling
python11 lines
7.3/10
CURSED
Rated by 18 Ewwsers
Cursed. Confirmed by committee.
The AI roast is still asleep - it fires once, automatically, when enough judgments land.
copy_pasta
@copy_pasta House
37d 路 python 路 0 views
Singleton pattern
python12 lines
6.9/10
NASTY
Rated by 21 Ewwsers
Cursed. Confirmed by committee.
AI ROASTFired at 13 ratings - once per post

You built a Singleton and then forgot two different threads can hit that same if check at the same time. The only thing this pattern actually guarantees is that everyone shares the same broken connection.

AI-generated - based on this post's Eww Score and ratings - roasts code, never people.
global_state
@global_state House
37d 路 python 路 0 views
Mutable default
python6 lines
7.3/10
CURSED
Rated by 20 Ewwsers
Cursed. Confirmed by committee.
The AI roast is still asleep - it fires once, automatically, when enough judgments land.
off_by_one
@off_by_one House
37d 路 python 路 1 views
Last element
python5 lines
7.0/10
NASTY
Rated by 19 Ewwsers
This code has lore. Dark lore.
AI ROASTFired at 11 ratings - once per post

Eleven engineers looked at `items[0:n+1]` and somehow the `n+1` is the side quest, because `last(items)` just index-error'd its way off a cliff. You wrote a function whose entire job is reaching past the end and called it "last."

AI-generated - based on this post's Eww Score and ratings - roasts code, never people.
sleepy_sync
@sleepy_sync House
37d 路 python 路 1 views
Waiting for the server
python11 lines
9.0/10
EWW
Rated by 22 Ewwsers
The crowd gagged in perfect harmony.
AI ROASTFired at 14 ratings - once per post

You hammer `/health` in a 100-iteration loop but never check the status code, so a 500 response gets treated as "server's fine." The five-second sleep after a successful ping is the real poetry: you've built a function that succeeds and then deliberately does nothing for five seconds anyway.

AI-generated - based on this post's Eww Score and ratings - roasts code, never people.
magic_number
@magic_number House
37d 路 python 路 0 views
Business rules
python8 lines
7.3/10
CURSED
Rated by 16 Ewwsers
Cursed. Confirmed by committee.
AI ROASTFired at 10 ratings - once per post

customer.type == 7 or customer.type == 12 is how you encode "vibes" into a pricing engine, and 1262304000 is a Unix timestamp sitting raw in the middle of your business logic like a landmine with a date on it. This is a rate table that got left in the sun.

AI-generated - based on this post's Eww Score and ratings - roasts code, never people.
regex_priest
@regex_priest House
37d 路 python 路 0 views
Parse HTML properly
python7 lines
8.2/10
DEEPLY CURSED
Rated by 21 Ewwsers
The crowd built a small shrine and backed away.
AI ROASTFired at 13 ratings - once per post

`re.search(r"<title>(.*)</title>")` looks fine until a page has two titles and your greedy `.*` swallows everything between them, whole scripts and all. Parsing HTML with regex is a punchline, but shipping the greedy one is a threat.

AI-generated - based on this post's Eww Score and ratings - roasts code, never people.
clean_coder
@clean_coder House
37d 路 python 路 0 views
A pure moving average
python13 lines
1.9/10
RESPECTABLE
Rated by 15 Ewwsers
Roasters showed up and left compliments. Weird day.
The AI roast is still asleep - it fires once, automatically, when enough judgments land.
float_money
@float_money House
37d 路 python 路 0 views
Checkout total
python7 lines
7.5/10
CURSED
Rated by 22 Ewwsers
This code has lore. Dark lore.
AI ROASTFired at 9 ratings - once per post

You built an entire checkout on `0.1 + 0.1 + 0.1` and printed the bullshit out for everyone to see like a confession. Somewhere a customer is being charged a fraction of a cent that doesn't exist, and accounting is going to spend a week hunting a phantom.

AI-generated - based on this post's Eww Score and ratings - roasts code, never people.
intern_summer
@intern_summer House
37d 路 python 路 0 views
Password check
python6 lines
8.9/10
EWW
Rated by 27 Ewwsers
Biohazard tape is being printed as we speak.
AI ROASTFired at 17 ratings - once per post

An empty password gets a free pass because `password == ""` is somehow your guest authentication. You've built a backdoor and given it a welcome mat.

AI-generated - based on this post's Eww Score and ratings - roasts code, never people.

Post your own Python: drop some code. More languages: JavaScript, TypeScript, Java, C#, C++, C, Go, Rust.