r/programming • u/henk53 • Apr 26 '23
Quarkus 3.0 final released!
https://quarkus.io/blog/quarkus-3-0-final-released/3
-2
u/pakoito Apr 26 '23
J2EE is like a parallel universe.
6
u/henk53 Apr 26 '23
J2EE died in 2005. It became Java EE after that, which split into a Jakarta EE Micro Profile, Web Profile and Full Profile, and recently Core Profile.
Quarkus implements mostly the Jakarta EE Core Profile, Micro Profile and a selection of APIs from the Web Profile.
3
u/pakoito Apr 26 '23
Exactly. I just duct-tape libraries for what I need and nothing else and here you need to have Jakarta EE Micro Profile, Web Profile, Full Profile, Core Profile and a gaggle of consultants to get an endpoint to contact a postgres.
3
u/henk53 Apr 26 '23
Which consultants? Are consultants only in Jakarta EE? Other platforms don't have consultants?
You can still mix and match APIs at will with EE. This is what you do on Tomcat mostly, but also with Piranha Cloud (https://piranha.cloud), and to a degree even with Open Liberty.
The profiles... well. Some hate them, some love them. It's really nothing but a label attached to a various subsets of the APIs.
So you have persistence, security, validation, json, rest, injection etc. You can randomly use them if you want. But for your convenience if a product gives you injection + json + rest you can say it supports the core profile.
1
u/pakoito Apr 26 '23 edited Apr 26 '23
It's not that you can randomly use them, it's that you propose a Low Orbit Cannon when what most products need is a BB Gun. I don't know how else to explain that in any other ecosystem they don't need all of these to build products, and after a certain scale these just don't work.
4
u/henk53 Apr 26 '23
What other ecosystems are you talking about? I dabbled in Python and see tons of libs being used for anything for web servers, validation tools, etc. I also looked at C# and .Net and there's a ton of libs for the http server, transaction, security etc. Javascript seems to be even worse, with a dozen of libs for so many different things.
Don't those ecosystems you talk about need something to handle security? Something to do validation?
0
u/pakoito Apr 26 '23
Libraries being the key here. You pick and choose, and you have certain control to write the parts that are key to your business.
Does anyone in your org really know how Spring/Quarkus is managing memory and threading behind all those annotations and reflection? How do you debug code for validation and security that isn't there? How do you find memory leaks in a retained tree in your DI? How do you trace it all?
4
u/henk53 Apr 26 '23
Does anyone in your org really know how Spring/Quarkus
Where did Spring suddenly came from?
Yes, you're arguing against something that is obvious to users of the tech.
Do you know how Chrome is managing memory and threading internally for all those js callbacks and what have you? Do you know all the shadow dom and copying stuff that Angular does?
validation and security that isn't there?
Uhm the annotation applied to business logic for validation refers to a validator class. I put a break point in that, run the code, and it breaks there.
1
u/pakoito Apr 26 '23 edited Apr 27 '23
The valid comparison would be the JVM vs V8. Your backend would run node on v8 too.
If all you know is Java and Angular for frontend, which is heavily java-inspired, I believe I will not convince you there's another world out there.
1
u/henk53 Apr 27 '23
p.s.
and you have certain control to write the parts that are key to your business.
Not only do you have that control, you also have the responsibility. And the burden.
Do you build linux from scratch, or do you just download ubuntu for your desktop?
1
u/johnwaterwood Apr 26 '23
I just duct-tape libraries for what I need and nothing else
Do these libraries you duct-tape have names? If so, can jou give those names?
1
u/pakoito Apr 26 '23
For what ecosystem? JVM? Node? Haskell? Python? Rust? There's no Jakarta EE Core Web Piranha Cloud Profile For Enterprise™ for Ruby that I'm aware of.
1
u/johnwaterwood Apr 26 '23
Jvm sure. Node sure, what do you use there?
There’s no Node JavaScript transpiler typescript babel react for angular for Java that I’m aware of.
I just use Quarkus or WildFly and then I have everything I need. And Quarkus is very lightweight, fast to start and with low memory, so there’s that.
2
u/pakoito Apr 27 '23 edited Apr 27 '23
Javalin with SQLDelight? Ktor if you're in Kotlin. OkHTTP for requests. EHCache. Java-WebSocket. A few minutes in google and you can find the remaining ones.
2
u/st4rdr0id Apr 27 '23
This seems to be the more lightweight approach right now. On a second tier Quarkus, Micronaut and Helidon were the "easier" frameworks back when I researched this. Then the uber complex Spring, and the opinionated Spring Boot (still complex).
0
u/henk53 Apr 27 '23
Javalin, not bad, but doesn't it build on a Servlet container? So there's Jakarta EE already right there.
And how do you secure your web apps with say JWT or OAuth/OIDC? Add auth0? So then in practice it's not just Javalin, it's Javalin, which is actually Jetty + Javalin code + auth0 + SQLDelight.
I've seen this time and again. People advocating for something light, since oh dear, Spring is so huge. Or Jakarta EE is so huge. But it rarely stays light. They add library X, and library Y, and library Z, and nothing is tested integrally and it's just hoping it will all magically work together.
And even if it does work together, it's as mentioned not just plain Javalin anymore. It almost never is.
3
1
u/johnwaterwood Apr 26 '23
What’s the other parallel universe? I mean, to what is J2EE parallel?
-3
u/pakoito Apr 26 '23 edited Apr 27 '23
Piping an HTTP server library to a database connector in any language of your choice.
Nothing in big tech runs on J2EE, it's a maintenance nightmare. So it exists in a small corner of the industry where you have small-to-medium scale mismatched with big ambitions. "Big data" that fits in ram.
4
u/henk53 Apr 26 '23
it's a maintenance nightmare.
What specific maintenance issues are you talking about that you don't have in that magical ecosystem you talk about but won't tell us what it really is?
Reading all your replies I have a strong feeling you have very little idea what Jakarta EE is, and attach it some feeling and believe that are far from reality.
1
u/pakoito Apr 26 '23 edited Apr 27 '23
50/50, I have those strong feelings because we've bled money from engineers throwing annotations at problems not really understanding all the shit that happens behind the scenes. Then we hire some consultants that try to fleece us because they believe (with good reason) that we're retarded and cannot write 100 lines to validate a POJO and need a framework to do it for us.
So my problem is not the minutes to write 100 LoC that Jakarta saves me, but the hours of debugging framework internals, buggy adapters, undocumented behavior-at-a-distance, and the days of back-and-forth to get the framework to do something that's just not exactly the same use case they had in mind in their architecture sessions. It's all over-abstracted yet rigid.
0
3
u/henk53 Apr 26 '23
From the other thread by u/Y__Y
"I was working on a project that required me to create a RESTful API for a database of products.
I had used Spring Boot before, but I was not happy with the performance and the complexity of the configuration. I decided to give Quarkus a try, and I was amazed by how easy and fun it was to use.
I was able to create my API in minutes, using annotations and extensions. Quarkus also provided me with a dev UI that allowed me to test and debug my API in real time. I deployed my API on Kubernetes, and it ran smoothly and efficiently.
Quarkus made my development experience much better, and I would recommend it to anyone who wants to create microservice Java applications."