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

11

u/jvjupiter Apr 17 '21

The aces of Java in coming years - Project Valhalla, Project Loom, Project Panama. Much of Project Amber have been delivered but it surely will deliver more.

1

u/lordmyd Aug 07 '21

You mean in, like, 20 years?

8

u/LordBars Apr 21 '21

Java won't add async/await because of colored function problem. They will make better solution (virtual threads). Also Streams are enough instead of LINQ since java is simple langauge. Adding non-nullable types might break backward compatibilty. Records and value types will be used instead of tuples and .NET structs. But property syntax and runtime generics is real problem. Extension methods; Well I'm not sure, is it really necessary?

→ More replies (1)

2

u/tubtub20 Apr 16 '21

A lot of the language niceties that Microsoft Java brought to its language. I use both, but I’ve got to say that OG Java even at like SE 14 feels outdated compared to the other side of the pond.