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

Show parent comment

38

u/CorrectProgrammer 5d ago

Add to that tests no sane human would write.

19

u/DGC_David 5d ago

Lol I have seen some wild shit in tests on the enterprise level.

13

u/fluffytme 5d ago

Yeah same here. We have some legacy apps with many thousands of tests each, all hand written

6

u/shorns_username 4d ago

tests no sane human would write

You overestimate (underestimate?) humanity. Or at least, your definition of "sane" is wishful thinking.

Once saw hundreds (actually probably thousands) of tests that had been written to test every getter/setter in the app.

The code looked like something like:

public void testXxxGetYyy(){
}

Literally a bajillion test methods, to test manipulator methods... with no implementation.

And those'd been there for years before I started working on the project, which many allegedly sane humans had worked on.

7

u/Paxxi 2d ago

That's just how you get your test coverage to the magic number set by management 😂

2

u/DGC_David 4d ago

That's what I'm saying... I once saw a test that checked the Value of a const... I think the og forgot to change but idk what they were saying

5

u/paper-jam-8644 3d ago

Testing a const isn't as stupid as you might think. It prevents a one line typo from becoming a production bug, makes it two changes required to break things in two different files.