Java 23: The New Features are Officially Announced (coderoasis.com)
from testeronious@lemmy.world to programming@programming.dev on 16 Apr 2024 19:58
https://lemmy.world/post/14368227

#programming

threaded - newest

Endmaker@lemmy.world on 16 Apr 2024 20:30 next collapse

Java is looking more and more cool.

Too bad companies are still stuck on Java 8šŸ˜”

Toes@ani.social on 16 Apr 2024 20:42 next collapse

Too bad companies are still stuck on Java 8šŸ˜”

Itā€™s the only one that matters šŸ„² Think of the shareholders.

abbadon420@lemm.ee on 16 Apr 2024 20:58 next collapse

Thatā€™s bad. 8 hasnā€™t been getting the essential security updates since march 2022. Of course money can buy a lot, but itā€™s still a bad idea. Even the Dutch govern.e t has mostly made the transition and they are no known for their elasticity

mp3@lemmy.ca on 16 Apr 2024 21:31 next collapse
key@lemmy.keychat.org on 16 Apr 2024 21:43 collapse

8 hasnā€™t been getting the essential security updates since march 2022.

Thatā€™s not really true despite what Oracle claims. Even without dropping money for Oracleā€™s 2030 support, thereā€™s been 9 releases to OpenJDK 8 so far in 2024. Amazon has guaranteed OpenJDK 8 LTS through 2026 as ā€œcorrettoā€ for justifying it to corporate compliance teams.

Everyone really should upgrade but itā€™s going to be several years yet before itā€™s an actual security risk.

Aatube@kbin.melroy.org on 17 Apr 2024 00:16 next collapse

which is why the world should just move to kotlin

jimmy90@lemmy.world on 18 Apr 05:35 collapse

just move to rust and be done with it :)

Aatube@kbin.melroy.org on 18 Apr 11:33 collapse

Seriously though, Java devs? Moving to Rust?

pathief@lemmy.world on 18 Apr 21:59 collapse

Whatā€™s so surprising about that?

Aatube@kbin.melroy.org on 19 Apr 00:03 collapse

Java is a lot more high-level than Rust. Rust is even a different paradigm.

pathief@lemmy.world on 19 Apr 09:17 collapse

So? If a Java dev wants to learn Rust, theyā€™ll make it. There are a lot of burned out Java devs wanting to move to something that feels new and exciting again.

Aatube@kbin.melroy.org on 19 Apr 12:05 collapse

But after evaluating the options, I think most would choose the easier language to learn.

porgamrer@programming.dev on 20 Apr 01:20 collapse

Why is this? Did they introduce breaking changes to the language or something?

Endmaker@lemmy.world on 20 Apr 07:44 collapse

Nah, itā€™s more of inaction on the companiesā€™ part. There are so many reasons for that, but IMO it boils down to poor engineering culture.

Aatube@kbin.melroy.org on 17 Apr 2024 00:19 collapse

Other features that were previewed in the Java Development Kit 22 release could also make it quite easily into the Java Development Kit 23 release. These include statements before super(ā€¦), which would give developers greater freedom in expressing constructor behavior ā€“ meaning string templates. This would make it easy to express strings that include values computed at run time ā€“ meaning scoped values. This would enable sharing of immutable data within and across threads; and implicitly declared classes and instance main methods.

[proceeds to show a seemingly normal piece of code]

is this ai generated or do i have secree-slexia?

Solemarc@lemmy.world on 18 Apr 05:12 collapse

From the way Iā€™m reading it, it sounds like a super() call in a constructor must be the first thing you do or something you donā€™t do? I never knew that was a thingā€¦ Looking at my old java code, I havenā€™t written Java since I graduated, this does seem to line up?

Aatube@kbin.melroy.org on 18 Apr 11:32 collapse

Oh yeah, I remember now. That's definitely it.