r/java • • 9d 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?

106 Upvotes

165 comments sorted by

View all comments

Show parent comment

20

u/chabala 9d ago edited 8d ago

As someone who still tries to do TDD, it pains me that this is becoming the criterion.

Not that I could convince my peers to write any tests at all without LLMs doing the work for them.

19

u/hazel-blur 8d ago

I have my Agent do TDD. That however often leads to thing like

"Remove that icon"

"Ok, I first write a test asserting the absence of that specific icon..."

2

u/RiceBroad4552 3d ago

TDD was always mostly nonsense. No wonder "AI" picked it up so eagerly.

You can do TDD only when you have a fully worked out spec in hand, which is for "usual commercial development" never.

1

u/chabala 2d ago

There's nothing about TDD that requires the world's most complete spec. It's about testing for your known requirements first: keeping the design testable, deferring choices until they're required, red/green/refactor, writing the minimal code to keep tests satisfied. Nothing stops you from refining the requirements as you go.