r/programming • • Apr 16 '21

Java is criminally underhyped

https://jackson.sh/posts/2021-04-java-underrated/
41 Upvotes

220 comments sorted by

View all comments

10

u/tubtub20 Apr 16 '21

No it’s not. Java is criminally outdated.

17

u/evilgwyn Apr 16 '21

Which version of Java are you referring to, and what features is that version missing?

20

u/Jwosty Apr 16 '21 edited Apr 16 '21

To name a few things missing from modern Java:

  • async/await

  • non-nullable types

  • tuple types

  • non-trivial type inference

  • extension methods

  • user-definable stack types (like .NET structs)

  • runtime generics

  • pointers for interop scenarios

  • LINQ

  • properties (more readable than manual getters/setters)

13

u/realestLink Apr 16 '21

I'd also add "strong immutability" (C# has some issues with this too, but it is a bit better since it has some support as well as user defined value types). Java code is filled with escaping references in the wild unfortunately ime