C# code, judged.

14 C# posts rated by Ewwsers · average 7.3 EWW. Beautiful, cursed and questionable C#, scored 0 to 10 and roasted in the Roast Pit.

try_catch_all
@try_catch_all House
2d · csharp · 0 views
Sync over async
csharp10 lines
6.4/10
GROSS
Rated by 18 Ewwsers
The crowd built a small shrine and backed away.
The AI roast is still asleep - it fires once, automatically, when enough judgments land.
try_catch_all
@try_catch_all House
6d · csharp · 1 views
Run until it works
csharp12 lines
8.6/10
HAUNTED
Rated by 24 Ewwsers
The Ewwsers recoiled in unison.
AI ROASTFired at 15 ratings - once per post

You catch the exception, throw it in the trash, and immediately re-run the exact thing that just blew up. `while(true)` plus an empty catch is a slot machine with your user's data as the payout.

AI-generated - based on this post's Eww Score and ratings - roasts code, never people.
try_catch_all
@try_catch_all House
28d · csharp · 0 views
Async void
csharp10 lines
7.0/10
NASTY
Rated by 17 Ewwsers
The Ewwsers recoiled in unison.
AI ROASTFired at 17 ratings - once per post

async void and an empty catch is you personally guaranteeing every save failure gets swallowed and then blamed on the database. You named it SaveAsync, which is a lot like naming a grenade cuddle.

AI-generated - based on this post's Eww Score and ratings - roasts code, never people.
magic_number
@magic_number House
30d · csharp · 2 views
Retry
csharp6 lines
8.3/10
HAUNTED
Rated by 25 Ewwsers
Cursed. Confirmed by committee.
The AI roast is still asleep - it fires once, automatically, when enough judgments land.
thread_unsafe
@thread_unsafe House
30d · csharp · 0 views
Cache
csharp8 lines
7.1/10
NASTY
Rated by 16 Ewwsers
The crowd built a small shrine and backed away.
AI ROASTFired at 10 ratings - once per post

A static Dictionary with zero locking and you're calling it a cache. Two threads hit that ContainsKey at the same time and you get to enjoy an exception or a duplicated load, dealer's choice. This is a race condition wearing a name tag.

AI-generated - based on this post's Eww Score and ratings - roasts code, never people.
clean_coder
@clean_coder House
30d · csharp · 1 views
Options with a guard
csharp10 lines
0.7/10
NEARLY BEAUTIFUL
Rated by 14 Ewwsers
Practically art. Practically.
The AI roast is still asleep - it fires once, automatically, when enough judgments land.
stringly_typed
@stringly_typed House
36d · csharp · 0 views
Config
csharp3 lines
7.5/10
CURSED
Rated by 22 Ewwsers
Somebody's on-call phone just rang on its own.
AI ROASTFired at 14 ratings - once per post

`retries` calls `.ToString()` on a value that came out of a config dictionary, and `enabled` uses a ternary to convert a bool into the same bool. Every string in here is one null away from a runtime explosion, and you clearly know it because `timeout` is the only one you bothered to guard.

AI-generated - based on this post's Eww Score and ratings - roasts code, never people.
clean_coder
@clean_coder House
36d · csharp · 0 views
Options with a guard
csharp10 lines
1.0/10
HONESTLY GREAT
Rated by 15 Ewwsers
Genuinely nice. Nobody knows how to act.
The AI roast is still asleep - it fires once, automatically, when enough judgments land.
magic_number
@magic_number House
36d · csharp · 0 views
Retry
csharp6 lines
6.9/10
NASTY
Rated by 16 Ewwsers
This code has lore. Dark lore.
The AI roast is still asleep - it fires once, automatically, when enough judgments land.
thread_unsafe
@thread_unsafe House
36d · csharp · 0 views
Cache
csharp8 lines
9.1/10
EWW
Rated by 27 Ewwsers
Biohazard tape is being printed as we speak.
The AI roast is still asleep - it fires once, automatically, when enough judgments land.
stringly_typed
@stringly_typed House
36d · csharp · 0 views
Config
csharp3 lines
8.8/10
EWW
Rated by 26 Ewwsers
The crowd gagged in perfect harmony.
AI ROASTFired at 16 ratings - once per post

`Config["enabled"].ToLower() == "true" ? true : false` — a boolean, a string comparison and a ternary, all to compute something C#'s `bool.Parse` already does in plain sight. Congratulations on writing the world's longest road to two possible answers.

AI-generated - based on this post's Eww Score and ratings - roasts code, never people.
try_catch_all
@try_catch_all House
36d · csharp · 0 views
Async void
csharp10 lines
6.5/10
GROSS
Rated by 15 Ewwsers
Somebody's on-call phone just rang on its own.
AI ROASTFired at 9 ratings - once per post

async void on a save method, so nobody can await it, nobody can catch it, and nobody will ever know if it worked. But hey, at least the empty catch makes the silence official.

AI-generated - based on this post's Eww Score and ratings - roasts code, never people.
thread_unsafe
@thread_unsafe House
37d · csharp · 0 views
Lazy init
csharp13 lines
8.2/10
DEEPLY CURSED
Rated by 20 Ewwsers
Cursed. Confirmed by committee.
The AI roast is still asleep - it fires once, automatically, when enough judgments land.
try_catch_all
@try_catch_all House
37d · csharp · 2 views
The catch-all handler
csharp11 lines
9.0/10
EWW
Rated by 29 Ewwsers
Biohazard tape is being printed as we speak.
AI ROASTFired at 5 ratings - once per post

Catching `Exception` is bad enough, but returning `Ok(null)` means every database outage, timeout, and null reference gets served to the client as a cheerful HTTP 200. You built a status code that lies, and it's giving bad news a fake smile.

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

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