this post was submitted on 22 Nov 2023
34 points (87.0% liked)

Programming

17343 readers
402 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 !webdev@programming.dev



founded 1 year ago
MODERATORS
 

In this article, we’ll debunk the notion that Java is a relic of the past and showcase the language’s modern features, thriving ecosystem, and unwavering presence in enterprise and open-source communities.

you are viewing a single comment's thread
view the rest of the comments
[–] sizeoftheuniverse@programming.dev 26 points 11 months ago* (last edited 11 months ago) (2 children)

Yes it does, the only parts where Java doesn't shine are usually some advanced features that are nightmarish for people who are building tools and libraries:

  • The type system is so 90s and it's kept like that for backwards compatibility.

  • Generics having type erasure is again an improvisation for the sake of backwards compatibility. It makes writing generic code in conjunction with Reflection painful.

  • The lack of control for the memory layout. I mean in most cases you dont need full control, but there are use cases where it's literally impossible to do optimisations that are easy to do in C/C++. You must have faith in the JVM and JIT.

  • Integration with native code is cumbersome.

Other than that Java is fine for most backend work you need to do, except probably for Real Time Processing apps where every millisecond count, but even there there are ways.

You use Java not for the languages itself, but for the tooling and the ecosystem.

[–] moonleay@feddit.de 5 points 11 months ago

You use Java not for the languages itself, but for the tooling and the ecosystem.

This is why I love Kotlin so much. You can use the Java ecosystem with a modern language.

[–] thtroyer@programming.dev 4 points 11 months ago

Project Panama is aimed at improving the integration with native code. Not sure when it will be "done", but changes are coming.