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?

98 Upvotes

161 comments sorted by

View all comments

1

u/m39583 5d ago

There isn't anything remotely reliable.  I find by default it tends to add a lot of comments and the main tell is excessive verboseness. Also unit tests for absolutely everything, tests that no human would ever bother writing.

But you can tone all that down if you tell it to. 

This is the problem with accusing people of using AI, it's not accurate and it can be used to dismiss people without cause.

And what is the problem with using AI? I'm a software developer and it's utterly transformed our industry. I find people that object to it so weird, like do we look down on people that use IDEs and build tools rather than hand crafting their code with notepad and javac?

If someone has a good idea but isn't a developer then use it to try and deliver your idea!  It's not like humans write perfectly crafted artisan code

2

u/koflerdavid 4d ago edited 4d ago

do we look down on people that use IDEs and build tools rather than hand crafting their code with notepad and javac?

Yes, people do look down on developers who can't get anything done without an IDE. (Granted, the Java ecosystem does not make that easy) And it is a sign of unpolished code to find artefacts of being IDE generated, such as

} catch (AnUnhandledException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
}

The conveniences of IDEs are necessary to get things done nowadays, but one can argue that's because of bloated systems that could only be built with the help of IDEs in the first place. A similar lesson has been learned by many open source projects - they now have to use LLMs to deal with the flood of LLM-generated submissions coming in.

If someone has a good idea but isn't a developer then use it to try and deliver your idea! It's not like humans write perfectly crafted artisan code

That's a strawman - nobody has ever argued human generated code is better because all of it is perfectly crafted artisan code. Far from it. But humans improve as developers and gain an understanding of the domain as they write code, and evaluating and editing LLM-generated code is just not the same. LLM slop is looked down on because it is unmaintainable, and having to use an LLM to deal with it sounds like a waste of tokens.