News for hackers. Stuff that matters.
Re:Java 21 makes me like Java again by anoy8888 on Saturday September 16, 2023 @10:39PM (#37540954)
This is correct. It is about culture too. Java is the kind of language that attracts mediocre programmers who produce mediocre code based on the wrong ideas of object oriented programming
Re:Java 21 makes me like Java again by sverhagen on Saturday September 16, 2023 @10:43PM (#37540973)
You're entitled to your opinion. I guess I must be a mediocre programmer then. (Don't forget that 90% of developers thinks of themselves as above average.) But if Java can evolve, why wouldn't its practitioners?
Re:Java 21 makes me like Java again by x86x87 on Saturday September 16, 2023 @10:43PM (#37540974)
That escalated quickly. There are good and less good people everywhere and using language X does not automatically tell anything about you.

If anything I think the cases where you can use Go successfully are only o fraction of the cases where you can use Java successfully. It's not necessarily Java itself but the ubiquity of the JVM and its ecosystem (see Kotlin, see Scala as examplea that have leveraged this ecosystem successfully)

Re:Java 21 makes me like Java again by riku_iki on Sunday September 17, 2023 @01:22AM (#37541786)
> the cases where you can use Go successfully are only o fraction of the cases where you can use Java successfully

could you elaborate why do you think so, and maybe give examples of cases where Go can't compete with Java?..

Re:Java 21 makes me like Java again by Scarbutt on Sunday September 17, 2023 @02:42AM (#37542177)
Libraries for application programming, last time I used Go nothing came close to the Java PDF creation libs for example.
Re:Java 21 makes me like Java again by x86x87 on Sunday September 17, 2023 @11:52AM (#37546393)
Imho Go is really good for self contained micro-services. The way Go does binaries and the cross-compilation part are great.

Otoh, Java has a huge ecosystem. Huge. This plus dependency managemnt make it the first choice in most cases. Not even going to go into the massive innertia given that Java has been around for decades (who is going to rewrite everything in go?)

Today most of the time I pick Kotlin which is sort of whatbJava could have been (or maybe will become) with proper investment and care.

Re:Java 21 makes me like Java again by Xeamek on Saturday September 16, 2023 @10:45PM (#37540988)
In the past, when java was dominant and most popular language - sure.

Today though, with languages like js being the most popular one, I would be surprised if inflow of mediocre developers into Java world would be even the same, not to mention higher, then with those more popular languages (Go included)

Re:Java 21 makes me like Java again by FpUser on Saturday September 16, 2023 @11:11PM (#37541151)
And some people for no fucking reason think that they're smarter than everyone else and are qualified to tell others how they should go about they business.
Re:Java 21 makes me like Java again by realusername on Sunday September 17, 2023 @03:50AM (#37542556)
Yeah that's not going to be too popular but Java in particular has a tech culture problem. It's way more common to find overengineering and overabstractions in Java projects than any other language.

The language itself might be fine but I'll never touch it because of that.

Re:Java 21 makes me like Java again by za3faran on Sunday September 17, 2023 @04:01AM (#37542630)
Let's not forget who golang was made for:

"The key point here is our programmers are Googlers, they’re not researchers. They’re typically, fairly young, fresh out of school, probably learned Java, maybe learned C or C++, probably learned Python. They’re not capable of understanding a brilliant language but we want to use them to build good software. So, the language that we give them has to be easy for them to understand and easy to adopt. - Rob Pike

Re:Java 21 makes me like Java again by aarbor989 on Sunday September 17, 2023 @04:31PM (#37549015)
Despite the fact that this is a claim with no basis in reality, what you are saying is that people who don't understand the core concepts the language is built on write bad code...Isn't that true for every language?
Re:Java 21 makes me like Java again by throwaway2037 on Monday September 18, 2023 @05:03AM (#37553877)
This generalisation is easy to explain. On the server-side, Java "won" the enterprise battle. In the last 20 years, big corporates re-wrote their server-side C/C++ stack in pure Java (and thick desktop clients in C#). It is so much easier to maintain than C/C++. As a result, they can hire mediocre Java developers to maintain their "new" legacy services.

    who produce mediocre code based on the wrong ideas of object oriented programming
This overlooks this history of OOP. Each decade, lots of new ideas have emerged so that skilled programmers continue to use the same languages (Java, C#, C++, C), but change how they use them. C++ in 1996? Let's fight about diamond inheritance! C++ in 2006? C++ in 2016? C++ in 2026? Repeat for all four languages that I mentioned. The story will look similar. Anyone good writing new code in these four languages isn't using many levels of inheritance. It is gone. Sure, it exists in the language for historical reasons, but it is hardly used in new code. "Prefer composition over inheritance."
Re:Java 21 makes me like Java again by yMMe2WYE_D on Monday September 18, 2023 @07:11AM (#37554685)
> attracts some mediocre programmers who produce mediocre code

That will be reality for most companies, no matter the language. And if Java projects still got delivered in such conditions - it might also be a mediocre language but it is also just good enough.