r/javahelp • • Oct 11 '19

Why we still use java 8

Hey everyone
I know that new releases of java bring us new compilers and vm optimization and new language features.

So, why developers still use java 8 for their projects ?

PS: sorry if question is weird or stupid. do not hate me in comments pls.

27 Upvotes

51 comments sorted by

View all comments

26

u/TwixySpit Oct 11 '19

I think the three main reasons :

  1. Nobody can understand Oracle's licensing, and people are still using the Oracle JDK, so they're still using the JDK versions to which the license doesn't apply.

  2. It seems that Java is being taken in a strange direction by people who don't seem to be Java developers at heart. A lot of the features and syntax changes added to later versions of Java feel pretty pointless to Java developers.

  3. Applications written in Java 8 won't run in later versions for many reasons.
    Most large corporates have a legacy codebase dating back to Java 5 or so, it's simply not possible to move to any version of java past 8.

11

u/ObscureCulturalMeme Oct 11 '19

You are absolutely correct.

My customers are some large, large organizations.

Reason 3 is the major killer for them, followed closely by Reason 1. (The customers don't care about Reason 2 as they themselves are not developers.) Unfortunately, Oracle doesn't consider either of those failings to be their own fault, to the detriment of us all.

-4

u/TwixySpit Oct 11 '19

I can't see a move from 8 anytime in the future.
Further, I think Java is going to split.
The later versions seem to be an attempt to make Java something it isn't.
Adding functional programming etc. to Java seems pointless to me.
If people want Java but not Java, they can use Kotlin or Scala etc.
I think Java people will stay with 8, and the people who want other features will move to other languages.
Java will take 8 as a baseline and move forwards from there, with essentially any security fixes.
I personally won't be making efforts to move to later versions of Java.

3

u/nutrecht Lead Software Engineer / EU / 20+ YXP Oct 12 '19

I think Java people will stay with 8

You live in a really really small bubble if you think "Java people" are not embracing local type inference, streams, FP, etc.

3

u/Kraizee_ Oct 11 '19 edited Oct 11 '19

Adding functional programming etc. to Java seems pointless to me.

What do you think is pointless about adding functional programming?

I think Java people will stay with 8, and the people who want other features will move to other languages.

Java 9+ uptake would say otherwise.

Most large corporates have a legacy codebase dating back to Java 5 or so

I wouldn't say "most" by any stretch of the imagination. There are certainly some still using pre java 8, but the majority of developers are on java 8. See below.

https://www.jetbrains.com/lp/devecosystem-2019/java/

https://www.baeldung.com/java-in-2018

https://snyk.io/blog/jvm-ecosystem-report-2018/

2

u/TwixySpit Oct 11 '19

Well we'll see what happens.