r/java • • 8d 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/barcodez 8d ago

This just sounds like most code written by humans. AI on the other hand adds comments, and generally keeps to good clean design in my experience.

12

u/Head_Evening_5697 8d ago

No. Humans (rarely?) never add comments saying what the code does not do.

6

u/slaymaker1907 8d ago

I'll add it if there's a non-obvious answer why something wasn't done a particular way.

3

u/LelouBil 7d ago

Of course, but that's more of an explanation on why the code is like this.

if you vibe code and don't care you will end up with comments like.

// This methods now only returns the full name of the user, and not the first name only like in the old behaviour.

Basically comments that don't explain the state of the code as it is now (or why is it like this), but explain how it was before. Which is not the point of comments.

6

u/eboob1179 8d ago

I like to screw with people in code review to see if they're paying attention. I leave comments like "//We've been trying to reach you about your car's extended warranty."

1

u/Zatujit 6d ago

so the problem is that people don't do things properly?

1

u/xvillifyx 8d ago

No?

Humans often modify code and forget to update the comments, leading to comments describing what the code does not do

0

u/Blecki 3d ago

That's not it. Not comments that a wrong. The tell is comments that are literally phrased like "// don't do <nonsensical thing the ai originally did and you then told it to remove>"

2

u/xvillifyx 3d ago

What are you talking about

What “tell?”

You’re replying to a point I am not making

0

u/Blecki 3d ago

The tell that it's ai code ... you have completely misunderstood what "comments describing what the code does not do" mean. And then this. A pattern?

2

u/xvillifyx 3d ago

Neither my comment nor the comment I replied to has nothing to do with “telling something is AI”

I was disagreeing with the statement “human written comments don’t say what the code does not do”

They absolutely can and do

0

u/Blecki 3d ago

...and your example of how it could happen proves you do not understand.

1

u/WiredEarp 6d ago

Of course they do. They write comments, change the code, and don't update the comments. Suddenly you have comments saying what the code does not do.

3

u/Risc12 5d ago

No the sign is those comments Claude writes where it tells you that it did not implement a certain feature/check there.

1

u/laplongejr 5d ago edited 5d ago

I often do that at my job to tackle "tech loan" (as in debt that exists even during the dev phase)

"Yes, this code defines a baby's gender as a binary field. Yes, support for edge cases will require a complete rewrite.  No, that wasn't considered concerning when I sent my opinion on the design document that was written during my sick leave.
The day everything breaks down, check the medical definitions at xxx, yyy and zzz , good luck!"

Bonus points for guessing what "small feature" was requested a few months later

1

u/Risc12 5d ago

Yeah ofcourse, but not in the stupid way Claude does it haha

1

u/WiredEarp 5d ago

Ah, I get you.

10

u/vowelqueue 8d ago

I’ve mostly used Claude and feel that by default it goes really overboard with comments. You can definitely rein it in but a lot of people don’t do that and it’s very easy to tell what code was written with AI by its commenting style.

7

u/_predator_ 8d ago

It's like websites and frontends. You can immediately tell when Claude was used to create them, which is ironic given how simple it would be to avoid it with some small instructions related to styling and font choice.

3

u/coderemover 8d ago

No it doesn’t keep the code clean. It has a very bad taste at how to decompose problems into smaller ones.

0

u/barcodez 8d ago

righto

2

u/Greenix 8d ago

Comments and clean design in the same sentence is an oxymoron.

1

u/The8flux 8d ago

It's the best typewriter I have ever used.

1

u/Wonderful-Habit-139 8d ago

> adds comments

This is not a measure of "good clean design".