Rust code, judged.

18 Rust posts rated by Ewwsers 路 average 5.6 EWW. Beautiful, cursed and questionable Rust, scored 0 to 10 and roasted in the Roast Pit.

perf_maybe
@perf_maybe House
3d 路 rust 路 0 views
Fast lookup
rust8 lines
7.0/10
NASTY
Rated by 14 Ewwsers
The Ewwsers recoiled in unison.
AI ROASTFired at 9 ratings - once per post

Cloning and sorting the entire vector inside `contains` is how you turn O(n) into O(n log n) and feel productive doing it. You built a binary search that pays the sort tax on every single call, which is just a lookup function cosplaying as a database migration.

AI-generated - based on this post's Eww Score and ratings - roasts code, never people.
unsafe_rust
@unsafe_rust House
6d 路 rust 路 0 views
A global hit counter
rust8 lines
7.4/10
CURSED
Rated by 18 Ewwsers
The crowd built a small shrine and backed away.
AI ROASTFired at 11 ratings - once per post

You marked HITS mutable and global, then spawned a thread to race the main one to increment it, which is a data race with a leet-speak accent. That static mut is going to compile a CRITICAL section so short nobody can read it before it corrupts.

AI-generated - based on this post's Eww Score and ratings - roasts code, never people.
clean_coder
@clean_coder House
6d 路 rust 路 1 views
Money in cents
rust15 lines
1.7/10
CLEAN
Rated by 19 Ewwsers
Roasters showed up and left compliments. Weird day.
The AI roast is still asleep - it fires once, automatically, when enough judgments land.
unsafe_rust
@unsafe_rust House
29d 路 rust 路 6 views
Fighting the borrow checker
rust4 lines
8.7/10
HAUNTED
Rated by 26 Ewwsers
Somebody's on-call phone just rang on its own.
AI ROASTFired at 17 ratings - once per post

You didn't fight the borrow checker, you lied to it and walked away whistling. Every caller now gets a &'static str pointing at a string that's about to be dropped, and the compiler was kind enough to take your word for it.

AI-generated - based on this post's Eww Score and ratings - roasts code, never people.
unsafe_rust
@unsafe_rust House
31d 路 rust 路 0 views
Just unwrap it
rust11 lines
7.6/10
CURSED
Rated by 17 Ewwsers
Cursed. Confirmed by committee.
AI ROASTFired at 11 ratings - once per post

Three unwraps in five lines and every single one is a landmine for anyone who forgot to export PORT. You didn't write a function, you wrote a hostage situation with a loaded gun taped to the door.

AI-generated - based on this post's Eww Score and ratings - roasts code, never people.
clean_coder
@clean_coder House
32d 路 rust 路 0 views
Iterator, no allocation
rust3 lines
1.1/10
HONESTLY GREAT
Rated by 17 Ewwsers
The crowd nods in quiet respect.
The AI roast is still asleep - it fires once, automatically, when enough judgments land.
perf_maybe
@perf_maybe House
34d 路 rust 路 0 views
Clone to make it compile
rust8 lines
6.5/10
GROSS
Rated by 15 Ewwsers
Cursed. Confirmed by committee.
AI ROASTFired at 9 ratings - once per post

You wrote `items.clone()` inside the loop over `items.clone()`, then cloned the price just in case. Four clones to keep a `&Vec<Item>` from being scary and you still ignore that this pile compiles without an error worth cloning anything for. Calling it Clone to make it compile is honest at least, because the clone is doing all the work and the borrow checker never asked.

AI-generated - based on this post's Eww Score and ratings - roasts code, never people.
unsafe_rust
@unsafe_rust House
36d 路 rust 路 1 views
Global mutable
rust8 lines
8.5/10
HAUNTED
Rated by 23 Ewwsers
The Ewwsers recoiled in unison.
AI ROASTFired at 14 ratings - once per post

A global mutable counter guarded by nothing but your confidence and an unsafe block. Every thread gets to fight over COUNTER like it's the last slice of pizza, and the data race you just authored is technically undefined behavior, which is a fancy way of saying the compiler is allowed to hate you specifically.

AI-generated - based on this post's Eww Score and ratings - roasts code, never people.
perf_maybe
@perf_maybe House
36d 路 rust 路 1 views
String building
rust10 lines
8.3/10
HAUNTED
Rated by 25 Ewwsers
Somebody's on-call phone just rang on its own.
AI ROASTFired at 15 ratings - once per post

You turned an O(n) linear append into a quadratic string-concatenation parade and named it csv like a slur against the format. Any field with a comma or quote in it walks straight through untouched because you never once considered escaping.

AI-generated - based on this post's Eww Score and ratings - roasts code, never people.
clean_coder
@clean_coder House
36d 路 rust 路 0 views
Iterator, no allocation
rust3 lines
0.6/10
NEARLY BEAUTIFUL
Rated by 13 Ewwsers
A rounding error away from sacred.
The AI roast is still asleep - it fires once, automatically, when enough judgments land.
perf_maybe
@perf_maybe House
36d 路 rust 路 0 views
String building
rust10 lines
8.6/10
HAUNTED
Rated by 23 Ewwsers
This code has lore. Dark lore.
The AI roast is still asleep - it fires once, automatically, when enough judgments land.
perf_maybe
@perf_maybe House
36d 路 rust 路 0 views
Clone to make it compile
rust8 lines
6.8/10
NASTY
Rated by 17 Ewwsers
This code has lore. Dark lore.
AI ROASTFired at 12 ratings - once per post

You cloned the Vec, then cloned it again to iterate it, then cloned each Item to reach a f64 that's Copy anyway. Three clones deep to read a number the borrow checker would have handed you for free.

AI-generated - based on this post's Eww Score and ratings - roasts code, never people.
clean_coder
@clean_coder House
36d 路 rust 路 0 views
Errors that mean something
rust12 lines
1.3/10
CLEAN
Rated by 17 Ewwsers
Genuinely nice. Nobody knows how to act.
The AI roast is still asleep - it fires once, automatically, when enough judgments land.
unsafe_rust
@unsafe_rust House
36d 路 rust 路 0 views
Just unwrap it
rust11 lines
6.2/10
CODE SMELL CONFIRMED
Rated by 13 Ewwsers
Sus enough to warrant a second look. And a third.
AI ROASTFired at 8 ratings - once per post

Three unwraps deep and not one of them tells you which one ate shit at 3am. That panic message will be a shrug with a line number.

AI-generated - based on this post's Eww Score and ratings - roasts code, never people.
perf_maybe
@perf_maybe House
37d 路 rust 路 1 views
Search
rust10 lines
9.3/10
SERIOUSLY EWW
Rated by 24 Ewwsers
Biohazard tape is being printed as we speak.
AI ROASTFired at 18 ratings - once per post

You cloned the Vec, cloned every String in it, cloned the needle's lowercase and cloned the result one more time for luck. That is five allocations to do what `iter().find()` does with zero, and you named it `find` like the stdlib wouldn't notice this tribute act.

AI-generated - based on this post's Eww Score and ratings - roasts code, never people.
clean_coder
@clean_coder House
37d 路 rust 路 0 views
Parse, don't validate
rust15 lines
1.4/10
CLEAN
Rated by 19 Ewwsers
Genuinely nice. Nobody knows how to act.
The AI roast is still asleep - it fires once, automatically, when enough judgments land.
clean_coder
@clean_coder House
38d 路 rust 路 9 views
Errors that mean something
rust12 lines
1.2/10
HONESTLY GREAT
Rated by 30 Ewwsers
The crowd nods in quiet respect.
The AI roast is still asleep - it fires once, automatically, when enough judgments land.
limo
@limo GitHub verified
51d 路 rust 路 42 views
Rustyyyy
rust30 lines
7.5/10
CURSED
Rated by 1 Ewwser
This code has lore. Dark lore.
The AI roast is still asleep - it fires once, automatically, when enough judgments land.

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