Java code, judged.

22 Java posts rated by Ewwsers · average 6.9 EWW. Beautiful, cursed and questionable Java, scored 0 to 10 and roasted in the Roast Pit.

legacy_larry
@legacy_larry House
3d · java · 0 views
One date format for everyone
java11 lines
7.2/10
NASTY
Rated by 21 Ewwsers
Somebody's on-call phone just rang on its own.
The AI roast is still asleep - it fires once, automatically, when enough judgments land.
thread_unsafe
@thread_unsafe House
5d · java · 0 views
Request stats
java13 lines
7.1/10
NASTY
Rated by 18 Ewwsers
This code has lore. Dark lore.
AI ROASTFired at 11 ratings - once per post

Your `latencies` list only exists to make the sum, but you had to count forever with a duplicate `requests`. If `record` ever runs from two threads, `requests++` is a lie and that average divides by a number that never happened.

AI-generated - based on this post's Eww Score and ratings - roasts code, never people.
clean_coder
@clean_coder House
6d · java · 1 views
A value that validates itself
java10 lines
0.9/10
NEARLY BEAUTIFUL
Rated by 19 Ewwsers
Practically art. Practically.
The AI roast is still asleep - it fires once, automatically, when enough judgments land.
magic_number
@magic_number House
7d · java · 0 views
Session timeout
java6 lines
8.7/10
HAUNTED
Rated by 24 Ewwsers
The crowd built a small shrine and backed away.
AI ROASTFired at 15 ratings - once per post

Role 3 gets two hours, everyone else gets thirty minutes, and apparently the corpses get thirty days. Congrats on encoding your entire auth policy in three suspiciously round numbers.

AI-generated - based on this post's Eww Score and ratings - roasts code, never people.
legacy_larry
@legacy_larry House
28d · java · 1 views
The utility class
java9 lines
7.5/10
CURSED
Rated by 20 Ewwsers
The Ewwsers recoiled in unison.
AI ROASTFired at 20 ratings - once per post

Calling it Utils tells me even the author gave up on naming whatever the hell this does. A function named process that takes Object and returns Object is just a legal way to admit you have no idea what's going in or coming out.

AI-generated - based on this post's Eww Score and ratings - roasts code, never people.
stringly_typed
@stringly_typed House
29d · java · 2 views
Boolean parsing
java8 lines
7.4/10
CURSED
Rated by 17 Ewwsers
The Ewwsers recoiled in unison.
The AI roast is still asleep - it fires once, automatically, when enough judgments land.
clean_coder
@clean_coder House
33d · java · 1 views
Immutable value, done
java10 lines
1.8/10
RESPECTABLE
Rated by 14 Ewwsers
Roasters showed up and left compliments. Weird day.
The AI roast is still asleep - it fires once, automatically, when enough judgments land.
legacy_larry
@legacy_larry House
34d · java · 2 views
Getter with side effects
java8 lines
9.5/10
SERIOUSLY EWW
Rated by 25 Ewwsers
Biohazard tape is being printed as we speak.
AI ROASTFired at 16 ratings - once per post

A getter that increments the thing it's getting, so every caller gets a different answer and half of them accidentally write to the database. You turned a read into a write and called it `getCount`, which is the kind of lie that ends in a 3am incident review.

AI-generated - based on this post's Eww Score and ratings - roasts code, never people.
copy_pasta
@copy_pasta House
34d · java · 1 views
Equality
java6 lines
7.0/10
NASTY
Rated by 15 Ewwsers
This code has lore. Dark lore.
AI ROASTFired at 9 ratings - once per post

Two reference comparisons in three lines, like a man who learned Java from a fortune cookie. The `== "admin"` will work exactly until the first runtime-authored string, then you're treating IDs with the same contempt, comparing Longs by identity and merging orders that were never equal.

AI-generated - based on this post's Eww Score and ratings - roasts code, never people.
try_catch_all
@try_catch_all House
36d · java · 0 views
Exception strategy
java10 lines
7.9/10
DEEPLY CURSED
Rated by 21 Ewwsers
Cursed. Confirmed by committee.
AI ROASTFired at 13 ratings - once per post

Two tries, two different exception gods, and the same big fat nothing inside. Catching Throwable so you can shrug off an OutOfMemoryError is the closest thing to a suicide note I've seen in a language that has garbage collection.

AI-generated - based on this post's Eww Score and ratings - roasts code, never people.
magic_number
@magic_number House
36d · java · 0 views
Order status
java7 lines
6.6/10
GROSS
Rated by 13 Ewwsers
The crowd built a small shrine and backed away.
AI ROASTFired at 8 ratings - once per post

Nobody told you enums exist, so 3, 5, and 7 are load-bearing integers now. And 11 isn't missing, it's hiding from `> 9`, which is the most stressed variable in this file.

AI-generated - based on this post's Eww Score and ratings - roasts code, never people.
clean_coder
@clean_coder House
36d · java · 0 views
Immutable value, done
java10 lines
1.2/10
HONESTLY GREAT
Rated by 15 Ewwsers
The crowd nods in quiet respect.
The AI roast is still asleep - it fires once, automatically, when enough judgments land.
legacy_larry
@legacy_larry House
36d · java · 0 views
Date formatting
java4 lines
6.6/10
GROSS
Rated by 14 Ewwsers
Somebody's on-call phone just rang on its own.
The AI roast is still asleep - it fires once, automatically, when enough judgments land.
copy_pasta
@copy_pasta House
36d · java · 0 views
Equality
java6 lines
7.4/10
CURSED
Rated by 13 Ewwsers
This code has lore. Dark lore.
AI ROASTFired at 8 ratings - once per post

You let loose with `==` three times and didn't need a fortune teller to know that first one breaks the moment the string leaves the cache. Then you compared two Long objects by reference, so the merge fires for everything except the numbers between -128 and 127, which is exactly the shit you actually order. There's no shot the equals() call was too much typing for you.

AI-generated - based on this post's Eww Score and ratings - roasts code, never people.
thread_unsafe
@thread_unsafe House
36d · java · 0 views
Lazy singleton
java13 lines
7.8/10
DEEPLY CURSED
Rated by 18 Ewwsers
Somebody's on-call phone just rang on its own.
The AI roast is still asleep - it fires once, automatically, when enough judgments land.
try_catch_all
@try_catch_all House
36d · java · 0 views
Exception strategy
java10 lines
8.2/10
DEEPLY CURSED
Rated by 18 Ewwsers
Cursed. Confirmed by committee.
AI ROASTFired at 11 ratings - once per post

You catch Exception, look at it, and write the word handled like the comment is what does the handling. Then you close with a Throwable catcher, which will happily swallow an OutOfMemoryError and file it under also handled.

AI-generated - based on this post's Eww Score and ratings - roasts code, never people.
stringly_typed
@stringly_typed House
36d · java · 0 views
Boolean parsing
java8 lines
8.3/10
HAUNTED
Rated by 18 Ewwsers
Cursed. Confirmed by committee.
The AI roast is still asleep - it fires once, automatically, when enough judgments land.
legacy_larry
@legacy_larry House
37d · java · 0 views
The utility class
java9 lines
7.7/10
CURSED
Rated by 20 Ewwsers
Cursed. Confirmed by committee.
The AI roast is still asleep - it fires once, automatically, when enough judgments land.
legacy_larry
@legacy_larry House
37d · java · 1 views
Date formatting
java4 lines
7.6/10
CURSED
Rated by 18 Ewwsers
This code has lore. Dark lore.
The AI roast is still asleep - it fires once, automatically, when enough judgments land.
try_catch_all
@try_catch_all House
37d · java · 0 views
Resource handling
java9 lines
7.9/10
DEEPLY CURSED
Rated by 17 Ewwsers
The Ewwsers recoiled in unison.
The AI roast is still asleep - it fires once, automatically, when enough judgments land.
thread_unsafe
@thread_unsafe House
37d · java · 1 views
Lazy singleton
java13 lines
7.1/10
NASTY
Rated by 18 Ewwsers
This code has lore. Dark lore.
AI ROASTFired at 5 ratings - once per post

The whole point of a singleton is the one you don't have to write — `Registry.get()` without a lock means your "one instance" becomes a fun surprise under load, otherwise known as two registries racing to overwrite each other.

AI-generated - based on this post's Eww Score and ratings - roasts code, never people.
ewwcode
@ewwcode GitHub verified
52d · java · 35 views
Java in the house
java11 lines
4.5/10
QUESTIONABLE
Rated by 1 Ewwser
Something's off and everyone can smell it.
The AI roast is still asleep - it fires once, automatically, when enough judgments land.

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