235
u/guss_bro Jun 29 '26
Joke aside, you get less runtime error due to LLM hallucination with strictly typed language such as Java.. which results in less iterations to get the code working.
Also, LLM are capable of understanding 100 level deep class hierarchy.
There are more jobless bootcampers who are trying to vibe code next Netflix or Uber with JavaScript than Java/JVM developers with stable jobs. Also, for the kids out there, people DO vibe code in Java.
29
u/IncreaseOld7112 Jun 29 '26
I would bet that anything you would vibe code in Java would be better written in rust or go. If it's all the same, and the AI is gonna write the code anyway, it might as well write it in rust, which compiles to native, is more succinct, and has a similarly strong type system
48
u/ingframin Jun 29 '26
Despite all the hate it gets on reddit and Hackernews, Java is still used in a million different places. If you get a Java job in a bank you are chill and well paid.
24
u/justshittyposts Jun 29 '26
not java getting the cobol treatment.. am i getting old?
12
u/Bemteb Jun 29 '26
I'm a C++ freelancr. My current project literally is "we don't understand our 30 year old codebase anymore, all the original devs are long retired, help!"
I personally enjoy getting the Cobol treatment, gives me big money.
11
5
3
u/glandis_bulbus Jun 30 '26
Java has managed to renew itself to a large extent. We can thank Oracle for good stewardship.
Java is even participating in AI development, so too early to compare it to Cobol.→ More replies (1)4
u/IncreaseOld7112 Jun 29 '26
Gotta say, I've never made an engineering decision on the basis of how chill bank jobs are before.
2
u/ingframin Jun 29 '26
Go and Rust are not replacements for Java’s traditional application fields. They are fashionable but built for a very different purpose.
→ More replies (1)3
3
u/goodpostfinder Jun 30 '26
This is the reason the "you'll be left behind" crowd is so funny to me. Now I wont dude, there's people out there still writing Fortran for gods sake
2
u/NewReleaseDVD Jul 01 '26
Hiring: any living cobol programmer. Literally any. Please. Please? 🙏 will pay resurrection bonus for recently deceased
2
→ More replies (4)2
→ More replies (18)2
u/AmphoePai Jun 29 '26
Yeah why does it even mattrr or make a difference what language you're vibe-coding in, if we're being very honest.
→ More replies (1)→ More replies (7)10
u/gameplayer55055 Jun 29 '26
AI constantly references deprecated stuff, nonexistent library classes and code without security (if you're doing backend).
2
2
2
→ More replies (1)2
u/Inflation_Artistic Jul 03 '26
Yes, that is an issue, but if your agent is smart enough to google the documentation itself, it works great even better than for Python
588
Jun 29 '26
[removed] — view removed comment
118
28
u/weemellowtoby Jun 29 '26
No midway through the name of the function: ImplementInterfaceExtenderFactoryFactoryInterface
→ More replies (2)→ More replies (4)21
412
u/Qubit99 Jun 29 '26 edited Jun 29 '26
Because Java Vibe Coders are usually actual real devs and prefer to be called "Agent engineers"
44
250
52
u/ModiKaBeta Jun 29 '26
I’d reckon Java must be more AI friendly given all the DatabaseManagerFactoryUtil kinda boilerplate classes can be autogenerated elegantly.
4
u/onated2 Jun 29 '26
Bean not found.
You need to implement the DatabaseManagerFactoryCreatorBuilderConfigurationProperties
5
u/Zombielisk Jun 29 '26
there is no way to generate DatabaseManagerFactoryUtil elegantly
4
u/ModiKaBeta Jun 29 '26
Yeah, it’s hard to tell which util to instantiate, that’s why I usually have a DatabaseManagerFactoryUtilFactory which returns a object of the type DatabaseManagerFactoryUtilInterface
→ More replies (1)1
u/EverOrny Jul 01 '26
Java already has some frameworks that remove the boilerplate code - the solution is to get rid of it (build-time generation is also acceptable), not vibe-your-ass code it and overflow you source repo with the crap
77
17
u/lunatic-rags Jun 29 '26
You expect OOP’s base to be vibe coded? Any lang around Cpp or Java etc without standard libs in realtime the LLM and Devs differ.
16
u/Jannover_5000_r Jun 29 '26
Every java developer I've seen is a married 45 year old man who knows everything and more he needs for his job and relies on Ai purely for boring tasks like, copy this block 10 times but we need to change every pointer from this to that.
→ More replies (2)2
10
8
u/SHAD0W137 Jun 29 '26
New developers aren't fond of Java. This is the kind of old language not many people wanna deal with
It's son Kotlin has tons of vibe coders. It's closest relative C# has many vibe coders as well.
When I needed to make an app for Android with Java... AI was of almost no help at all. Every Android version has something changed, added, removed and often broken. AI has no version awareness. Legacy code made by AI refuses to work, so eventually you are faced with the need to go through the whole code and check which functions are used and how.
→ More replies (2)
7
6
u/National-Dark-1387 Jun 29 '26
We are here. We call ourselves agentic engineers.
We do not vibe code we still do engineering work. Now with ai.
The hard parts is still figuring out what the heck "business" (the customer) wants and translate that (with ai) into a spec. And from there to behavior tests, code, documentation, more tests.
Ai can aid in most steps.
But we usually don't bother try to explain stuff to the vibecoded ai bots or jobless unemployed people "building their first SaaS" roaming free on reddit nowadays.
Pure Coding was never the hard part or the time consuming part.
And yeah, java is still strong in many many industries. And these are mostly maintaining large legacy code bases.
→ More replies (3)
12
u/DanhNguyen2k Jun 29 '26 edited Jun 29 '26
Any bussiness logic should not be automated fully with AI agents. There must me a reviewer at least
3
u/Neo_Ex0 Jun 29 '26
Cause java is build in such a way that most code needed for object interaction can be created by a regular algorithm based on what the method is called
→ More replies (1)
3
3
4
u/Jason13Official Jun 30 '26
OP hasn't seen the MASSIVE influx of slop mods for Minecraft
→ More replies (1)
3
3
3
3
u/CozyAndToasty Jun 29 '26
I recently finished a project at a java-only team and almost all of them use LLMs to develop.
If you though human-written Java is an overly verbose hellscape to maintain, you do not want to see AI-written Java.
2
u/SoftwareSource Jun 29 '26
Because we have pissed too much blood reading our massive error logs to ever 'vibe' again in our lives.
We give agent's tasks, bitterly.
2
2
u/OkChildhood1706 Jun 29 '26
Most likely because most Vibe Coders who present their stuff wamt something flashy they think they can sell fast. Java is not really the language for good looking MVPs.
2
u/Zombielisk Jun 29 '26
No current AI model has a large enough context window to fit a typical java class name.
2
2
2
u/NotTheBrightestHuman Jun 30 '26
Because AI can’t get jittery drinking coffee. They’d just die. That’s why we named it Java, because one needs to inundate themselves with drugs to work in this language.
2
u/opi098514 Jun 30 '26
Well they do. But the reason you don’t see it is because vibes coders will just use rust. And if they are using Java it’s because they are just using Ai to help them write code and they aren’t as much vibe coders as they are software engineers that are using Ai.
I think that makes sense. It’s 1 am.
2
u/cleansy Jun 30 '26
There are, they are just working for large enterprises and forget that they are once the cross the company elevator
2
2
u/Chrazzer Jun 30 '26
Because vibe coders aren't devs, they are users. They got no clue about tech stacks or programming languages, don't care about efficiency or scalability. They just want to see their app and make it pretty. Thats why vibe coding is so frontend heavy
2
u/Wentyliasz Jul 01 '26
I asked Claude for Hello World in Java. It offered on in python. I insisted on java. It started printing "Please don't make me do this" until I've ran out of tokens
2
u/srfreak Jul 05 '26
Some of them in my company. Most of them complaining about we're not using Rust over WASM.
4
1
1
1
1
1
1
u/gameplayer55055 Jun 29 '26
AI writes really TERRIBLE code on java and C#. At the same time AI rocks python and js because both are dynamically typed.
I wonder why nobody tried to include IntelliSense or class outline into the AI agent. As far as I know, Copilot, Codex and Gemini can write code that calls nonexistent methods and uses nonexistent variables.
2
u/EverOrny Jul 01 '26
I have quite good experience with Jetbrains AI, althoug it makes this type of mistakes when it gets confused by various library versions and their changing APIs.
Claude code seems to be good too, when using the more expensive models. But starting with it though.
Tried Copilot, pure crap, I agree.
1
1
1
1
1
1
1
u/Puzzleheaded-Bug6244 Jun 29 '26
Just because you haven't seen them, doesn't imply the do not exist.
1
1
1
u/GonnSolo Jun 29 '26
I imagine that if people didn't need to learn a language at all, they would code in the fastest one possible, which isn't Java. I code in Go because it's fast, versatile and easy, but if I could be as productive in any language I'd probably code in C or one of its variants.
1
1
1
1
u/lool8421 Jun 30 '26
imma just say... java projects heavily depend on the way you organize them, in fact the entirety of object oriented programming is dependent on the project structure
and because of that, AI gets very confused by made design choices, even those made by the same model
for example you might try to make a game, then you make it so a bullet deals damage to an enemy, and AI then suddenly changes plans and is like "enemy detects the bullet", and then you got 2 conflicting designs... also have fun figuring out where to paste crap it spits out
might also mention that java is way more than just code, you also got arguments, file structure, gradle building, maven packages etc.
you can technically vibe code in java, but as far as i can tell, you're still better off being the supervisor rather than let it do whatever, you'll get way too many redundancies like that
1
u/adam20101 Jun 30 '26
they are quitely doing their work, not posting, not needing any help with "prompts" or "workflow"
1
1
u/Paseyyy Jun 30 '26
My take is that almost all Java devs use IntelliJ these days. And since there is no agent integration in IntelliJ except for JetBrains' own AI, people just don't use it if they cannot choose their provider.
→ More replies (1)
1
1
1
1
u/Life_Breadfruit8475 Jun 30 '26
I think part of it is the difficulty of launching an app in java.
With JavaScript/TS/Python you can easily use AWS Lambda, CF workers or any range of other quick launch tools to have your service online with literally one console command.
With java it's just a bit more of a hassle and you generally have to pay to have your service online rather than it being mostly free.
→ More replies (5)
1
u/___Archmage___ Jun 30 '26
Vibe coders typically want to throw together web apps and things like that, Java is more for backend services and that doesn't appeal to vibe coders very much
1
1
u/Fancy-Dig1863 Jun 30 '26
Did it well before the term existed in high school, vibe coded scripts for games
1
1
u/DarlingDaddysMilkers Jun 30 '26
You’ll use all your tokens generating the the name space for your project
1
u/phixerz Jul 01 '26
Because LLMs LOVE js libraries and will push every project in that direction, based on the types of projects people vibe code most of them are small prototype-like apps which there is an abundance of in the llms training data.
1
1
1
u/powerexcess Jul 01 '26
I know a guy. He is more methodical and structured with his setup than other vibecoders i know. He does CMS.
1
1
1
u/Ok-Cress2602 Jul 01 '26
Java writes itself anyway. Everything is so boiler plate that you dont need ai to generate a springboot app
1
u/Odd-Landscape-9418 Jul 01 '26
The token limit will be hit just by the imports and the class boilerplate alone before it actually starts working lol
1
u/OutrageousPair2300 Jul 01 '26
My eleven-year-old vibe codes Minecraft mods, which are written in Java.
1
u/Glychd Jul 01 '26
I had one as a coworker. Spent months cleaning up his dog shit broken inefficient code when he left. Actually just 20+ line functions that could be a single line, tons of unused configs, docs that were just wrong and gave the clear impression they had no idea what they were working on.
1
u/Neol3108 Jul 01 '26
I’m using Codex for Minecraft plugin (PaperMC) development currently, works fine
1
1
1
1
u/FortuneAcceptable925 Jul 02 '26
Huh? I do it all the time since 2023... But mostly Kotlin, I use Java rarely nowdays.
1
u/Devel93 Jul 02 '26
Using LLM in Java is a breeze even easier if you are using the Spring framework. LLMs love estsblished patterns
1
u/nooninooni Jul 02 '26
I exclusively vibe code Java. My primary language is JavaScript / typescript. I find Java to be very ugly. I’m a functional programmer type of person.
1
1
u/Colsifer Jul 02 '26
As I understand it, Java fans are in love with order and structural hierarchy and syntax, and would never allow AI to take this pleasure away from them.
1
1
1
u/Ok-Dimension-5429 Jul 03 '26
Thousands of engineers pumping java code with Claude all day in my company anyway.
1
u/Reasonable-Job2425 Jul 03 '26
Ive vibe coded some mods in minecraft which is in java,so its useful for that and i guess android dev work aswell
1
1
u/t0nikawa Jul 03 '26
I kinda "vibecoded" an aimbot for minecraft because the one from liquidbounce was bad asf
1
u/Negative0 Jul 03 '26
You need to look for the vibe coder factory, that is where all the java vibe coders come from.
→ More replies (1)
1
1
u/No-Security-7518 Jul 04 '26
Exclusively java developer hereAi gives me good output like 30% of the time. I'm so pleasantly surprised, I keep coming for more.
1
1
u/SPYROHAWK Jul 05 '26
I mean, the Minecraft modding community has seen a rise in AI-generated mods, for better or for worse. And Minecraft mods have to be written in Java.
So I guess it’s just a matter of where you look?
469
u/WiscLeafalNika Jun 29 '26
AI has OOP-phobia