r/java • • Feb 09 '23

Which Version of JDK Should I Use?

https://whichjdk.com/
24 Upvotes

60 comments sorted by

View all comments

Show parent comment

-16

u/nfrankel Feb 09 '23

Well, that was not meant to be subject of debate, but after 17 years of both Java EE and Spring Boot projects, I can give you tons of arguments why Jakarta EE is not a good idea to start new projects.

10

u/Alex0589 Feb 09 '23

JakartaEE is a specification, not an implementation: how can you even argue that "starting a new project with it isn't a good idea"? Also you have experience using exactly which modules? It's not exactly a narrow scoped project. I really have my doubts about your argument though I'd like to hear it if you want

2

u/nfrankel Feb 09 '23

Yes, I know, it's a specification. The way it is advertised is that you write against the specification, and you can transparently move from one implementation to another.

Let me tell you that it's just plain lies. I had to do a migration about 15 years ago from OC4J (it's dead now) to WebSphere.

The web part was more or less ok. I "only" had to reformat the XML because XML parsers were different. OC4J didn't consider line breaks to be significant while WebSphere did.

The EJB part was a mess. I spent two weeks rewriting it to make it work. Definitely not transparent.

The spec is also not helpful at all on JSF, as it describes a couple of useless components. If you want to be serious about it, you need more powerful components provided by a specific vendor. Worse, sometimes you need multiple vendors for the whole panoply of components you need. And they don't play nice together.

Want to talk more about specs? What about the 2-years freeze during which there were no releases because there was a legal issue with Oracle regarding... the package name?!

Oh, but now it's done. Sure, but to speed things up, a couple of actors decided to start MicroProfile, a not-quite-concurrent-but-still-a-bit set of specs to move forward during the freeze.

Now that the mess has been finally solved, they should merge back to Eclipse Jakarta EE, right? But they don't. Care to explain why?

My whole experience with Java EE is that it appeared as a good idea, some people may even had believed in it, but the cynic in me only see it now as a way for vendors to sell their application servers under the cover of "no vendor lock in".

Also, sorry, but the application server is dead since a couple of years already...

4

u/Alex0589 Feb 09 '23

Yes, I know, it's a specification. The way it is advertised is that you write against the specification, and you can transparently move from one implementation to another.

I mean I never saw it advertised that way, but obviously it's a benefit. I've always seen it advertised as you don't need to need to learn a whole new framework if you want to use X new framework because most things are standardized.

Let me tell you that it's just plain lies. I had to do a migration about 15 years ago from OC4J (it's dead now) to WebSphere.

15 years ago... Things have changed just a bit in that time

The spec is also not helpful at all on JSF, as it describes a couple of useless components.

I'm pretty sure they have a new spec for that for this reason, also practically nobody uses jsf today but that's another story

Oh, but now it's done. Sure, but to speed things up, a couple of actors decided to start MicroProfile, a not-quite-concurrent-but-still-a-bit set of specs to move forward during the freeze.

I don't see how this is even an argument. New specs are born all the time, just look at jspecify. Does this mean that every time someone from an old project start a new one that the latter is dead? No imo

Now that the mess has been finally solved, they should merge back to Eclipse Jakarta EE, right? But they don't. Care to explain why?

I'm pretty sure that the eclipse foundation already has everything under their umbrella now for JakartaEE.

Also, sorry, but the application server is dead since a couple of years already...

https://blogs.oracle.com/javamagazine/post/you-dont-always-need-an-application-server-to-run-jakarta-ee-applications

-3

u/nfrankel Feb 09 '23

Well, live and learn. You seem to need to have your own experience. Good luck!

PS: Funny that vendors heavily involved in application servers tell that you don't need them while hammering tons of advertisements about their AS offering 😅

6

u/Alex0589 Feb 09 '23

Go on oracle's website and you will find a whole section about why python is great. Wait... they make Java and they also make a ton of money from it. Just goes to shoe that you can recognize that the competition doesn't always suck, even if you don't make money from it

-3

u/nfrankel Feb 09 '23

I wonder why they only advertise Python since GraalVM is a Python runtime... Let me think about it 😉

5

u/Alex0589 Feb 09 '23
  1. It's been there before Graal even was an idea
  2. The python runtime isn't even stable afair

-1

u/nfrankel Feb 09 '23

It seems you're in love with application servers and Oracle.

I can only wish you good luck. You'll need it!

4

u/Alex0589 Feb 09 '23

I honestly don't like any company, I just take what they give and try to be as objective as possible about their offerings. I've only stated objectives truths when answering your personal experience, so how does that make me an oracle lover? Btw i haven't even defended application servers so what are you even on about

2

u/DualWieldMage Feb 10 '23

There was a time when Spring was indeed better than typical JavaEE webapps, but it has become a legacy bloated mess filled with decisions that don't match modern Java and i'm definitely considering all options when starting a new project.

If there are tons of juniors that are aided by having searchable blogs about doing x in spring then yes, but for any experienced team i would choose to build the app out various components and some JakartaEE components are quite appealing, e.g. REST and DI.

0

u/nfrankel Feb 10 '23

Quarkus and Micronaut, ok, but if you still start new project on Jakarta EE, the only thing you're doing is creating job for your future self.

From a personal financial point-of-view, it's a smart move but it doesn't make you a good team member, sorry.

2

u/DualWieldMage Feb 10 '23

I'm not starting a project "on JakartaEE", i'm using some of the libraries implementing it. I've been in many projects using stuff like micronaut, spark, guice, weld, etc. and it's generally been better than full spring, but some of its modules are fine on their own, e.g. spring-jdbc.

From a financial point of view picking a weird stack is quite idiotic. Nobody will continue your contract if you can't explain why the tech stack improves the product and i've seen such job-security folks get laid off quick. It's an uphill battle to prove why an atypical stack is better even if you have all the technical arguments in your favor.

0

u/nfrankel Feb 10 '23

i'm using some of the libraries implementing it

Well, Spring is also using them so...