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.

4

u/wildjokers Oct 12 '19
  1. Licensing is pretty easy to understand. Just use an OpenJDK build.

  2. What? Examples? Pretty bold to be speaking for all java devs.

  3. Umm, what? Not true at all. I have taken many apps above java 1.8, including some that were first written back when Java 1.3 was new and shiny.

You appear to be just spreading FUD.

4

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

Yeah. He's one of those people who don't want to learn new things. I think these people are pretty much the worst component of the Java community; they are generally against anything they don't know already because they just want to keep their job at a bank, not really do anything all day, and pretend they're busy in meetings 7 our of 8 hours a day.

4

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

Nobody can understand Oracle's licensing

Java is open source and OpenJDK is the Java JDK. There's nothing to understand. There are no licensing issues unless you need to use Oracle JDK. Which almost no one does.

It seems that Java is being taken in a strange direction by people who don't seem to be Java developers at heart.

Interesting bit of gatekeeping. The only slightly controversial issue was local type inference and that is being added to pretty much all modern languages. Heck; even C++ has it.

Applications written in Java 8 won't run in later versions for many reasons.

Migration is generally dead simple unless you are doing nasty stuff with sun.misc.Unsafe for example.

What you gave is not a list of reasons, but a list of excuses. Subtle difference. The main issue is "I don't wanna".

3

u/nerdyhandle Oct 11 '19 edited Oct 11 '19

Man point 2 is what makes me sad. A lot of the changes that are being added to Java are just bloating the language. Like does Java really need to contain both Object Oriented Programming and Functional Programming?

Like the syntax is already getting messy because it's trying to be multiple paradigm which in my opinion it shouldn't. Java was originally designed as an OO language and it should stay there. If you want a functional language go out and use one of the many that already exist.

Also, let's not add every fad to the language which seems to be happening.

Anyways that's just like my opinion man and my opinion doesn't really matter.

3

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

Man point 2 is what makes me sad. A lot of the changes that are being added to Java are just bloating the language. Like does Java really need to contain both Object Oriented Programming and Functional Programming?

Yes, because they work really fucking well together. If Java does not keep pace with other modern languages it will die out eventually.

-1

u/nerdyhandle Oct 12 '19

I disagree. Java shouldn't become an amalgamation of all the current popular languages. That's how you wind up with a bloated language with messy syntax and that will cause people to go to other languages as well.

2

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

Java shouldn't become an amalgamation of all the current popular languages.

Fortunately that's not what they're doing. They are only taking the stuff that works well together with Java. And FP and OOP work just fine together.

1

u/Kraizee_ Oct 12 '19

I'm still waiting for someone to actually explain why adding fp is bad. Fp isn't a fad, its probably been around longer than you have.

-2

u/nerdyhandle Oct 12 '19

Java was designed as an OO language. You shouldn't be mixing paradigms here.

And functional programming has existed for a while but there has never been a super popular functional language. Most were descendents or dialects of the LISP which hadn't really been used much out of research.

2

u/Kraizee_ Oct 12 '19

You shouldn't be mixing paradigms here.

Why not? Please elaborate. OOP and FP work incredibly well together. I suppose if you are so against FP you similarly hate C++, C#, Python, PHP, Rust, and Javascript

-1

u/nerdyhandle Oct 12 '19 edited Oct 12 '19

I've said it like several times now. It makes the language bloated, the syntax becomes messy, and it makes it harder to maintain the language. Following a single paradigm fixes these issues.

I said nothing about hate or that I was against functional programming. In my opinion a language should stick to one paradigm. I'm not a fan of languages adding new fads that come out or even adding the same features other languages have. At some point the language developers are just developing for shits and giggles without a purpose or clear direction.

Again, this is how I feel Java has become a language with no clear direction and everything including the kitchen sink is being thrown in. Eventually the language will become so bloated that devs will start to look for more streamlined and more focused languages.

1

u/Kraizee_ Oct 12 '19

the syntax becomes messy

i.e. You can't be bothered to learn it

it makes it harder to maintain the language

Only in the same way that adding any new feature increases the amount of maintenance required.

Following a single paradigm fixes these issues.

There is really no issue to fix. FWIW java has been multi-paradigm long before FP was included. But I guess we need to forget that for your argument to hold any sort of value.

I'm not a fan of languages adding new fads that come out

FP is not a fad. It is an incredibly powerful paradigm that has existed for a long time and compliments the OOP paradigm.

or even adding the same features other languages have.

What is wrong with adding features other languages have? No language would ever grow if they didn't not take features from other languages. Java is one of the most popular languages, maintains strict levels of backwards compatibility, and is used by a large portion of businesses. That is exactly why it lets other languages experiment with new features and they oracle developers look at what works well and what doesn't.

Java has become a language with no clear direction

They have a very clear direction. New features coming to java have been purposefully slow because they are well thought out and take a lot of feedback from the community.

You are unfortunately incredibly misinformed.

1

u/nerdyhandle Oct 12 '19

I do t think you fully comprehend what an opinion is. It's ok that you disagree with me I am not telling you that you are wrong merely that I disagree.

You don't have to be an asshole and try to start arguments. You don't like what I say you can move a long.

-6

u/TwixySpit Oct 11 '19

Yes.. this is how most actual Java dev's feel.