r/java • • 5d ago

Telltale signs of Vibecoding in Java?

Someone recently flagged one of my mods as being "obviously vibecoded" (which it wasn't), so I appealed the decision. just out of curiosity, what exactly are the signs people are seeing when accusing code of being vibecoded?

99 Upvotes

161 comments sorted by

View all comments

9

u/ihatebeinganonymous 5d ago edited 5d ago

Maybe not strictly "vibe coded", but the Java code AI generated for me, even when it was "glorified autocomplete" and before Agents era, had a weird obsession with using "System.out.printf" instead of println. I had (almost) never seen or used printf in Java code before. 

3

u/koflerdavid 5d ago

I like to use it since creating nontrivial formatted output (f.ex. numbers with padding or in non-decimal formats) becomes quickly very annoying with just print and println.

1

u/ihatebeinganonymous 5d ago

For that type of formatting I use String::formatted, which again AI tends to avoid in favour of String concatenation whenever possible :<

2

u/koflerdavid 5d ago

Well, String::formatted is a rather new API...