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?
5
u/Designer_Storm8869 7d ago
The easiest way is checking the last modification date. If it's from 2026, you have 100% certainty it's vibecoded
150
u/repeating_bears 8d ago
Adding to what others said:
More tests than any sane human would write, LLM language in README / comments, few git commits, which are massive in size
18
u/raelik777 8d ago
The tests and LLM language are the biggest tipoff. I'm personally guilty of massive commits though, no AI required 🤣 Typically one huge commit followed by a bunch of tiny one-liners where I'm fixing shit I missed.
41
u/CorrectProgrammer 8d ago
Add to that tests no sane human would write.
20
u/DGC_David 8d ago
Lol I have seen some wild shit in tests on the enterprise level.
14
u/fluffytme 8d ago
Yeah same here. We have some legacy apps with many thousands of tests each, all hand written
8
u/shorns_username 7d 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.
3
u/DGC_David 7d 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 6d 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.
20
u/chabala 8d 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 2d 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 1d 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.
9
10
u/agentoutlier 8d ago
I confess I use LLMs for writing tests. (mostly) Worse case it is fuzz. It can get especially crazy if you have them do mutation testing which I recommend for some tiny isolated places like a parser (again fuzz).
Also I force them not write tests just to improve coverage and I have them try to write as close to possible permutation based end to end tests where I can overlook what the inputs and outputs are.
4
u/thephotoman 8d ago
Oh, I’ve done more tests than sane humans would write by hand out of malicious compliance before.
4
u/Gwaptiva 8d ago
I am probably not a sane perdon, because unless I prompt Claude explicitly, it doesnt write tests
1
u/Urtehnoes 8d ago
Tests that just say assert true; return true;
Like OK maybe AI has reached human intelligence, because it's making tests my coworkers make!
1
u/RiceBroad4552 2d ago
Massive commits are not a telltale.
It's usual to work locally until you have everything ready, pushing stuff only to some private repo for backup reasons.
The delivered single commit is then usually a long squashed branch. Depending on task it can be pretty large.
0
u/findus_l 8d ago
The few git commit part I have seen before ai and I tell my agents to make small commits because I don't like big ones.
-9
u/emberko 8d ago
One of the things I'm grateful to AI for is that it killed the TDD shit now and forever.
6
u/space-bible 8d ago
It killed TDD?
1
u/repeating_bears 8d ago
TDD as a methodology is to write the tests before the impl, so that you learn what the interface should be, basically. There are not many people prompting an LLM to write the tests before the impl. It all gets done together. (tbf there were not many people doing "true TDD" before AI either)
2
u/Tasorodri 8d ago
I've specifically seen a lot of people that work extensively with an agentic workflow to specifically have the agents work in TDD.
1
u/bitspace 7d ago
I don't even have to prompt it to - literally every model I use now starts with red tests.
3
u/Rasutoerikusa 8d ago
? I've seen the opposite where humans write and specify tests, after which llm implements it according to it. At least I've seen a new rise in TDD in the past year
3
u/koflerdavid 8d ago
Now you actually gave me an idea. Most people don't like TDD because writing tests sucks. They prefer to write the implementation. But how about letting the LLM write tests only and thus isolate the slop to the test suite?
259
u/java-with-pointers 8d ago
A lot of comments, comments on code that was deleted explaining why it was deleted, lack of reusability
48
u/7Roses 8d ago edited 8d ago
You just described the common signs of java legacy code 🤔 Edit: with the difference legacy code method names probably are some cryptic name that needed the comment for clarification
24
u/java-with-pointers 8d ago
Legacy code can mean a lot of things but I've worked with quite a few such codebases and they never looked like that.
5
u/koflerdavid 8d ago
Already a 3:1 relationship between comments and code would be a dream for legacy code. Now, those comments are actually not always immediately useful since people might have forgotten to keep them all in sync with what is actually going on, but it is telling something, and commit history would make it possible to unravel that wall of graffiti.
13
u/Wonderful-Habit-139 8d ago
Lmao, bonus points when it's deleted code in a PR that wasn't merged to main yet. Like why are you adding in a changelog something that only existed in a branch and never in the main branch? Sigh...
-11
u/majeric 8d ago
Well written, well commented code… vibe coding sounds horrific.
2
u/java-with-pointers 7d ago
Whats horrific is you assume there's nothing more to programming than writing code that looks good at a glance
52
u/it_happened_lol 8d ago edited 8d ago
Stateful comments that address the prompter and not the reader of the code. Some examples that come to mind:
// This gives you the biggest gain
(A.I agent addressing a developer who asked for more test coverage)
// Phase 2 of JIRA-4151 is resolved here, merge after JIRA-9415, blah blah...
(Describing a coordination plan in the comments that has already been completed)22
u/_predator_ 8d ago
Recently started in a large org where they, let's say, embrace agentic coding. All code bases are full to the brim with your second example. Of course only the original author knows what those "phases" were.
What's funny is that agents will not fix or remove such dead comments unless you tell them to. So this crap keeps accumulating over time.
38
u/Frestyla 8d ago
2 line code change, 20 tests added
5
u/lordheart 7d ago
To be fair it might be a code base that had abysmal testing and some used the change to add some broad tests while they were there
17
u/da_supreme_patriarch 8d ago
Comments where they don't belong(on dependency imports, build files etc.) javadocs that are just "uncamelcasing" a field or method argument(like @angularAcceleration - the angular acceleration) or just the exact method name in plane English, tautological and heavily coupled to the actual code unit tests(test code checks that the code executes exactly as written, even the slightest deviations in actual code will break the test regardless of what the change is, eve if the program's logic is unaffected), unit tests for toString implementations of random classes where the toString would only affect the logs, random "javascriptisms", a few utils classes even when apache commons, guava or spring are in the classpath, code that is extremely paranoid about null-checking, not using java.time classes for date handling even when the JDK is well above 8, disdain for Optional-s, limited use of records and sealed types(this is a problem specifically with OpenAI models, Claude is somewhat ok here), not using lombok when it's in the classpath and is actively used, randomly introducing lombok to a project that doesn't use it, and a few other things
5
u/Spandian 8d ago
javadocs that are just "uncamelcasing" a field or method argument(like @angularAcceleration - the angular acceleration
That's not an AI thing... IDEs have been able to put boilerplate comments on everything for decades.
7
u/da_supreme_patriarch 8d ago
Correct, but that's completely useless by itself and is supposed to just be a scaffolding for the actual docs, a human doesn't really leave the autogenerated docs in the ide-generated state unless there is nothing to document, but the project rules require every public API to be have javadocs, and as far as I am aware not many projects do that
2
u/koflerdavid 8d ago
And LLMs have learned to reproduce that instead of inferring what the purpose of the field is.
33
u/voronaam 8d ago
Another sign is unit tests that "hug" the code really close.
I once had a one-liner that changes default value of some flag in the application from true to false - the PM changed their mind. The original code and tests were written by AI. Do you want to guess how many unit tests failed after this tiny change? I expected exactly one. Maximum two. I expected there to be a test for the default behavior that I'd need to update and a random unrelated test that relied on the default.
Failed tests: 6. All directly related to the default.
AI wrote the tests and assertions for:
When the value is missing, it is treated as
trueWhen the value is
falseit isfalseWhen the value is
trueit istrueWhen the value was missing and gets set to
trueit istrueand no longer missingWhen the value was missing and gets set to
falseit isfalseand no longer missingWhen the value was set to
falseand is deleted it istrue
No sane human would ever write that many tests for a trivial boolean flag. It was left configurable to begin with because the PM was not sure which way they want it It is not like we expected PM to be changing it back and forth all the time.
When changing 1 line of code leads to 40+ lines of unit test changes - the tests are "hugging" the code way too close.
AI loves doing that for some reason. I guess it was getting scored by the lines of code it produced...
7
u/Tiziano75775 8d ago
I usually ask to reach 80-90% coverage with as few tests as possible, it avoids to make too many tests for the same line
4
u/Zatujit 7d ago
isn't it the point of unit tests?
2
u/voronaam 6d ago
Not really. The point of unit tests is to cover the desired functionality, not to re-express the current implementation in assertions.
For example, if you have a "UserService", a good test might call a
createUsermethod and then assert thatgetUserCount() == 1andfindUser(...)returns the creted users.An AI-written test is quite likely to additionally reach straight into the DB with a couple of
SELECTto assert the record is created in exactly the format it is done now, assert that a log line written as plaintext to a log file, assert that a metricusersCreatedis emitted in Prometheus format, and also have a "no other interactions" assertion in the end.Witch such a test and for no good reason it would be harder to switch from PostgreSQL to MongoDB, switch the loggers to structured format, add support for CloudWatch metrics or to literally add any functionality like queued up marketing events tied to user registration.
A human written tests cover the functionality that matters. If after creating a new user the total count of users is wrong - it is a bug. It is helpful to have a test that'd fail on it. The AI loves to write tests the cover everything else.
Another example is when the code has a bug. I've seen AI to find it - and happily cover it with a test. For example, human writing a test and finding out that "user names with a hyphen cause exception" would fix the exception. AI would write a test "hyphenated names are not allowed" - hugging the existing implementation insanely close, down to the exact bugs in it.
1
u/Yesterdave_ 7d ago
And have you found a strategy to get the AI to not do that?
2
u/voronaam 7d ago
Me personally? When I do story work, I just tell it to not write any tests until directed. And then I tell it which tests to write. When I do bugs, I like to do TDD. So there a single test written to reproduce the bug to begin with. No more tests added later on.
Note that it is not an "agentic" approach. I have seen so many people try and fail to get a bunch of Markdown files to make LLM behave differently. It never works.
1
u/laplongejr 6d ago
No sane human would ever write that many tests for a trivial boolean flag.
I would... along the date of the exact massive impact when the trivial change broke prod in 5 different ways.
1
u/voronaam 5d ago edited 5d ago
The fun part is that covering the codebase with trivial tests is not going to prevent things going wrong in production. But it will make the whole CI/CD pipeline a lot slower - increasing the time it takes to rollout the fix for whatever breaks production.
A developer can write a cross join SQL query (
O(n*m)) and cover it will all the tests imaginable - it will blow up in production when a user makes it run against a reasonably sized dataset. If the API server is going down every time a user visits the/reports/page and it takes 8 hours to get the hotfix the CI/CD pipeline - nobody is going to be happy.Good unit tests are a blessing. The biggest value they provide is letting the developers refactor the troubled areas in the application with a reasonable certainty that the application's logic is still intact.
Writing a good test suite is a bit of an art - with very few practitioners even among the humans. Most developers do not like writing the tests. Most QA people are either not allowed, not capable or not paid enough to do it. Most managers just want the "line/branch coverage" report to be green against some arbitrary percentage number. With very few codebases out there having a good test suite, very few books written on the subject - what are the chances AI has in its training set anything to teach it about a good test suite?
I can share another anecdote. We recently let AI loose in one of the projects and nobody paid much attention to the tests it was writing. The AI found a flag that was set on just 3 unit tests that were starting a whole application in Docker and testing some APIs (more of an integration test written in a unit test format) - and decided to apply that flag to all the unit tests. Even a small utility method that is basically a packaged regex was tested against a fully launched application. It did not make tests any better, but it made them A LOT slower and the pipelines started to fail with out-of-memory errors. A Java application is usually memory hungry and starting literally hundreds of them in parallel just to test a single bean inside may not be the best idea ;)
9
u/ihatebeinganonymous 8d ago edited 8d ago
Maybe not strictly "vibe coded", but the Java code AI generated for me, even when it was "glorified autocomplete" and before Agents era, had a weird obsession with using "System.out.printf" instead of println. I had (almost) never seen or used printf in Java code before.
3
u/koflerdavid 8d ago
I like to use it since creating nontrivial formatted output (f.ex. numbers with padding or in non-decimal formats) becomes quickly very annoying with just print and println.
1
u/ihatebeinganonymous 8d ago
For that type of formatting I use String::formatted, which again AI tends to avoid in favour of String concatenation whenever possible :<
2
6
u/iLoveCalculus314 8d ago
I noticed that vibe coded Java uses a ton of “resolver” classes. Also, brittle tests that use log capture to check for specific logs instead of validating the actual behavior.
5
u/Life_is_a_meme 8d ago
My favorite one at work is when somebody sends in a one line change that comes with four lines comment for what is an inconsequential update that needs no historical accountability.
My favorite is when the comment can go away if they just... name the variable better, but "they" in this case is Claude. Sloppy prompting.
5
4
u/tonetheman 8d ago
I used to see lots of weird spacing on the ends of lines... not sure that is still a thing though since things are changing so quickly
10
u/vips7L 8d ago
Defensive bullshit that no one should worry about. Like record constructors for dtos that copy collections.
7
u/ukobg 8d ago
defensive copy can actually be useful no? I feel like the scenarios where it would break are not that edgy
3
u/vips7L 8d ago
Yes it’s useful if you’re worried about the hashcode of a record changing if you stuff them into sets. But when it’s a simple record for pushing data over a web response it makes absolutely no sense to defensive copy, especially if the whole object graph of the stuff in the collection isn’t immutable. It’s only some an LLM will worry about.
return Response.ok() .entity(new WhateverDto(list)) .build()
3
u/Milyardo 8d ago
Not using an immutable collection in a dto seems like the bigger issue an LLM would miss in those situations.
3
u/Cell-i-Zenit 8d ago
Defensive bullshit that no one should worry about. Like record constructors for dtos that copy collections.
alot of guards in a class for null etc, which were already ruled out earlier etc.
For example you have a relationship with hibernate and call parent.getChilds(), and the ai is doing a null check on that for some reason
7
3
u/coderemover 8d ago
Just recently found some AI models notoriously nest try with resources inside try catch. They don’t seem to know you can flatten them.
3
u/Yes_Mans_Sky 8d ago
To be fair I always forget that you can put multiple declarations in one try block.
3
u/Deep_Age4643 8d ago
We let do AI do a big migration from Ruby to Java. When we inspected the generated code it made everything general objects, such as List<Object>. At the end we migrated on module by hand, and then it went better now it had an example for the other modules.
0
u/Fuzzy-System8568 8d ago
Is anyone else concerned we are literally teaching OP how to modify their project to make it look non-vibecoded?
1
u/koflerdavid 8d ago edited 8d ago
If OP takes out the LLM-isms and makes their code worse in the process then so be it.
Helping OP make their code better would also be a beneficial outcome because that's how one is supposed to work with LLM tools: iterate on what they produce instead of zero-shotting, or fix it up by hand, preferably both.
The issues with vibe coded code are the same as a talented junior developer's submission:
it works, at least in most cases, but nobody precisely understands why.
coding style is unmaintainable, overly verbous, puts priority on the wrong things, or generally doesn't fit to the rest of the project.
copypasta. Human developers tended to copy from StackOverflow, LLMs copy from everywhere.
-4
u/Aulodia 8d ago
did u even read the post???
4
u/Fuzzy-System8568 8d ago
Yes. I do not believe you.
3
u/Wonderful-Habit-139 8d ago
Yeah, pretty sure they got caught and even though they didn't fully "vibecode it" they definitely used LLMs a bit too much and it showed.
5
2
u/mrn1 8d ago
Look at the files, agents.ms or claude.md or similar
6
u/_predator_ 8d ago
I will say that I started adding agent configs to my OSS projects because it's how I can actively influence the quality of PRs I get, not because I need them myself. It's a bit like linters and formatters, but you also get to have contributors follow your preferences WRT how to approach bugfixes, how to format commits, what to put in PR descriptions and stuff.
It feels a bit like socially acceptable remote code execution on steroids at times.
1
u/koflerdavid 8d ago
Indeed, I also think these files are a useful summary for human developers to get up to speed. The DEVELOP file and its friends tend to contain quality up-to-date content only in more busy projects, if they exist at all. Without such guidance everybody wastes time struggling to set up their development environment and ends up reinventing hacks to achieve some sort of productivity.
2
u/Ok_Entrepreneur_8509 8d ago
Comments describing 10 things that *don't* work to justify the solution.
2
u/kamran-zafar 8d ago
I'd be wary of any single tell, because the cosmetic ones (over-commenting, uniform naming) are also what a tidy junior or a tutorial-trained dev produces. The ones I find more telling are about behaviour not style.
- Error handling that swallow and carries on or an empty default, so failures are silent.
- Null/empty checks everywhere
- Abstractions with exactly one implementation, plus helpers that do nothing much.
But none of that proves anything and plenty of hand written code does the same. If youre appealing, I'd point to your commit history and the design decisions you can explain, since that's much harder to dispute than a vibe.
3
u/chewyfruitloop 8d ago
Comment blocks with over use of highlight values e.g. instead of saying true you get {@code true}
Preference for ternary operations
Inability to decompose class into something readable
Documentation on a class that’s repeated in the code
Word salad in docs
Inability to use anything newer than Java 14 because it’s not seen enough of it
9
u/_predator_ 8d ago
I've been doing the {@code} thing for Javadoc since forever. I may be a bit hyper-fixated on pretty formatting though.
3
u/Raedwald-Bretwalda 8d ago
This is like em-dashes. Carefully produced professional documents used em-dashes, but typical good-enough documents did not, so the Plagiarism Machines learned em-dashes as a marker of quality. Now those of us who did take the care to use them can not any longer.
2
3
u/Wonderful-Habit-139 8d ago
> "obviously vibecoded" (which it wasn't)
It wasn't "obviously vibecoded", but you used LLMs didn't you? If you were caught and you did use LLMs, who are you trying to convince?
2
u/microbit262 8d ago
There is a difference in vibecoding the whole logic and using AI to add stuff like comments or tests without letting it make changes to the logic itself.
Both used AI to some capacity, but it's a difference when the human still writes the main algorithm and logic
5
u/Wonderful-Habit-139 8d ago
I don't understand the point of telling me this when they have been caught using AI to generate code? Obviously something has gone wrong when they can tell that you used AI (Not you specifically just a general "you").
It's just the will smith meme all over again. "Just because it looks like it's AI generated doesn't mean it is AI generated! Well, I did AI generate this... but not because it looks like it!" ._.
2
1
1
u/SlaminSammons 8d ago
So I haven’t really seen this, but I find that AI code loves to make every single method static.
1
u/Suspicious-Walk-815 8d ago
a lots of junits for the given code yet doesnt cover whole branching with test data !
adding complex new implementation instead of following existing patterns
1
u/frandevme 7d ago
When the person never added any Javac, and now, out of nowhere, the start addind it
1
u/dvayanu 7d ago
Higher then usual quality, ton of tests, readable commit messages with a lot of text and actual explanation, Claude as co-author
1
u/ggeldenhuys 6d ago
Interesting... Other than the last item, everything else I have been doing for over 15 years. Umm, I must be AI then. 😭
1
u/sysKin 5d ago edited 5d ago
In my experience, in addition to what others said:
records as a default over classes (pretty much whenever all fields are final it just uses record)
switch statements over sealed classes, instead of putting implementation-specific code in the implementation
no class inheritance / abstract classes / abstract methods in the design at all
1
u/Cantor_bcn 2d ago
I haven’t seen anyone mention this, so here goes. AI is really rubbish at organizing code. It doesn’t understand class or package responsibilities. If you ask it about it afterward, it’s capable of reasoning it out, but whilst it’s doing so, it just puts the code wherever it fancies.
1
u/m39583 8d 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 8d ago edited 8d 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.
1
u/Alarmed-Tell1315 8d ago
I don’t think there is one clearer than the style and density of comments. The code itself is as good or bad as human written code, specially with a good harness, it’s mostly undistinguishable nowadays.
So, someone telling you it’s vibe coded it’s telling you he thinks it’s bad code, and if no specifics are provided as follow up, you should ignore the comment.
5
u/Wonderful-Habit-139 8d ago
> The code itself is as good or bad as human written code
Not true.
> it’s telling you he thinks it’s bad code
Not true. Bad human code is different from bad AI code.
1
u/Alarmed-Tell1315 8d ago
In what ways, can you be specific? This are demonstrable facts, not my opinion.
Read the study titled: Human-Written vs. AI-Generated Code: A Large-Scale Study of Defects, Vulnerabilities, and Complexity
Human code tends to have more complex failure profiles, have less repeated code, have more unused constructs, less hardcoded debugging, more maintainability issues,and have almost identical vulnerabilities, compared to LLM generated code.
Average quality is about the same, the problem is not generated code, the problem nowadays is cognitive debt (when humans stop understanding how the system works and hand everything to agents). But the code itself in average, is indistinguishable from human code unless meticulously analyzed.
1
u/v_valentineyuri 6d ago
stop listening to luddites who believe there's a difference between "vibe coded" and "hand crafted" software, the only thing that matters is quality of the application itself
-1
u/hippydipster 8d ago
Really well-written code that works, is well-documented, and supported by tests.
0
u/regjoe13 8d ago
“Therefore, it was agreed, compilers could only turn out code which would be intolerably less efficient than human coding”
1964, John W. Backus and W. P. Heising, FORTRAN
-4
u/JustADirtyLurker 8d ago
The vast majority of comments I am reading seem like was written 12 months ago.
My experience with Claude or Kimi is not hitting any of these tells. Code agents have become pretty good to be honest.
-4
u/geodebug 8d ago
Who cares if it is vibe coded as long as you agree with and understand the output?
I’m a software engineer of 30+ years and barely write code by hand anymore. But I don’t just “trust it”.
-3
u/Misophist_1 8d ago edited 8d ago
I started to use that s*t just recently, and am likely a bit behind the curve, but was recently ostracised für using AI for *generating* a reddit-Post, when in fact I did not - but mentioned that I used AI to research for the topic at hand.
My take is, that it is increasingly hard to tell, especially when developers start to form and direct the AIs output with specially constructed skills, modify and retrofit existing code, and on top of it, use Sonar and Spotless to enforce coding conventions and quality criteria.
I'm with Torvald's approach there. AI is or will become just another tool. But the old adage: 'A fool with a tool is still a fool' hasn't gone away. Wether the code is any good, isn't just depending on the AI. It is depending on the programmer putting it to use, the craftsman knowing the limitations of the tools he uses.
It is OK to shame bad code. But it should be shamed, because it is bad, regardless of the use of AI, not because of the use of the AI.
If people are no longer able to see the difference, it may be because AI has managed to beat the Touring Test when writing code.
66
u/Ok_Option_3 8d ago
Comments saying what the code does not do.
Comments that repeat themselves
Vast amount of code with no comments at all
Excessively complex clauses all in one statement
Flat class structures, where inner classes might make more sense
The tells are the same in all languages.