this post was submitted on 16 Apr 2024
38 points (91.3% liked)

Programming

16781 readers
112 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities [email protected]



founded 1 year ago
MODERATORS
top 17 comments
sorted by: hot top controversial new old
[โ€“] [email protected] 21 points 4 months ago (4 children)

Java is looking more and more cool.

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

[โ€“] [email protected] 12 points 4 months ago (1 children)

which is why the world should just move to kotlin

[โ€“] [email protected] 8 points 4 months ago (1 children)

just move to rust and be done with it :)

[โ€“] [email protected] 3 points 4 months ago (1 children)

Seriously though, Java devs? Moving to Rust?

[โ€“] [email protected] 1 points 4 months ago (1 children)

What's so surprising about that?

[โ€“] [email protected] 2 points 4 months ago* (last edited 4 months ago) (1 children)

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

[โ€“] [email protected] 1 points 4 months ago (1 children)

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.

[โ€“] [email protected] 1 points 4 months ago

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

[โ€“] [email protected] 6 points 4 months ago

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

It's the only one that matters ๐Ÿฅฒ Think of the shareholders.

[โ€“] [email protected] 2 points 4 months ago (1 children)

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

[โ€“] [email protected] 1 points 4 months ago

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.

[โ€“] [email protected] -5 points 4 months ago* (last edited 4 months ago) (2 children)

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

[โ€“] [email protected] 13 points 4 months ago

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.

[โ€“] [email protected] 4 points 4 months ago* (last edited 4 months ago)
[โ€“] [email protected] 5 points 4 months ago* (last edited 4 months ago) (1 children)

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?

[โ€“] [email protected] 2 points 4 months ago (1 children)

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?

[โ€“] [email protected] 1 points 4 months ago

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