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

101 Upvotes

164 comments sorted by

View all comments

Show parent comment

12

u/Head_Evening_5697 6d ago

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

6

u/slaymaker1907 6d ago

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

3

u/LelouBil 5d 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 6d 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 5d ago

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

1

u/xvillifyx 6d 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 2d 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 2d ago

What are you talking about

What “tell?”

You’re replying to a point I am not making

0

u/Blecki 2d 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 2d 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 2d ago

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

1

u/WiredEarp 4d 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 4d 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 4d ago edited 3d 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 3d ago

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

1

u/WiredEarp 3d ago

Ah, I get you.