Why not just use C# instead? It was purposefully designed to address and correct the many mistakes of Java, and much more importantly, it's not owned by Oracle.
Java 20 / JDK 20: General Availability
111–120 of 356 posts
Re: Java 20 / JDK 20: General Availability
#112Earlier quoted context omitted.
https://github.com/tc39/proposal-pattern-matching I'm not sure if it's stalled or not. But it's being discussed.
We're still developing this proposal. be patient LOL
Re: Java 20 / JDK 20: General Availability
#113I'm curious what is meant by a "preview feature, or second preview feature, or..." in a released product?? I don't suppose they are going to remove it later. So in what way is it a preview? Are they signalling that it might have breaking changes in the future?
with a slight addendum here: https://openjdk.org/jeps/8300604
and podcast that discusses both: https://inside.java/2023/03/21/podcast-030/
Re: Java 20 / JDK 20: General Availability
#114And here I am still on Java 8 :/
It's interesting how the introduction of "modules" has forced so many to stick with C++17 and Java 8.
Unless you’re targeting MSBuild Visual Studio Solutions and Windows only, C++17 is currently the most up to date, stable, and battle-proven version.
Re: Java 20 / JDK 20: General Availability
#115Why not just use C# instead? It was purposefully designed to address and correct the many mistakes of Java, and much more importantly, it's not owned by Oracle.
All the while, adding its own mistakes to the pile. As an example, idiomatic Java style is moving away from getters/setters and instead favors builders and immutable types. That whole inheritance vs. composition concept is changing the way Java is being used. Meanwhile, C# has baked getters/setters so deep into their language (as properties) that there's just no moving off of them. Have you tried making a Builder in…
Re: Java 20 / JDK 20: General Availability
#116Re: Java 20 / JDK 20: General Availability
#117Re: Java 20 / JDK 20: General Availability
#118This seems like an appropriate place to post the official Java rap: https://youtu.be/b-Cr0EWwaTk
I prefer this one: Java Forever And Ever Movie (Java vs Windows .Net) https://www.youtube.com/watch?v=RnqAXuLZlaE
Re: Java 20 / JDK 20: General Availability
#119Earlier quoted context omitted.
All the while, adding its own mistakes to the pile. As an example, idiomatic Java style is moving away from getters/setters and instead favors builders and immutable types. That whole inheritance vs. composition concept is changing the way Java is being used. Meanwhile, C# has baked getters/setters so deep into their language (as properties) that there's just no moving off of them. Have you tried making a Builder in…
Yes. And with "records" (record classes, something with the characteristics of a tuple or struct) you can get further away from getter/setter boilerplate code.
If Java records could be told to have a private constructor, I'd be completely satisfied with them. I just don't like the ability for callers to be able to directly instantiate a record without having gone through my builder to do so. I want to completely enforce that my record is instantiated with all its invariants dealt with properly. A builder is a very nice way of doing that.
Re: Java 20 / JDK 20: General Availability
#120Why not just use C# instead? It was purposefully designed to address and correct the many mistakes of Java, and much more importantly, it's not owned by Oracle.
Give it one or two more years and Java is where C# is ... also aesthetically. As did JavaScript.