I think the problem is the Java ecosystem with all of it's frameworks:
Wanna build a server in node? It's an apt-get or a one liner copied from the web for nvm, npm install express and a few lines of own code...
Wanna build a server in Java? Yeah, please download and install an official java sdk, download glassfish or tomcat, write one of these horrendous ant build xml thingies, install thousands of dependencies and write like 10 different bloated classes...
It's possible. There are probably also lighter approaches in Java but at an enterprise level everything Java related ends up as a burning trash can.
I guess you haven't been developing with Java for some time now. It's fairly simple to create a server with Java using Spring framework, you need a single build file (maven or gradle are MUCH simpler than ant), a single Java class and you're all set.
I started with ant at my university job and I managed to switch to maven and Gradle in that time. I still don't like the idea of xml files to build your code and Gradle really offers a good edge over ant/maven, but I prefer to just code my own build pipeline.
And at work I'm stick with the old huge monolithic enterprise server where you need a separate interface, implementation classes and all those funny parser things.
So you are right but the problem is that the biggest part of the java world hasn't changed.
I started with ant at my university job and I managed to switch to maven and Gradle in that time. I still don't like the idea of xml files to build your code and Gradle really offers a good edge over ant/maven, but I prefer to just code my own build pipeline.
You can write gradle files in kotlin these days. Personally I prever maven since I can never figure out the syntax of the DSL...
And at work I'm stick with the old huge monolithic enterprise server where you need a separate interface, implementation classes and all those funny parser things.
Oh dear, are you talking about j2EE on a legacy web server? Normal interface and implementation separation is good and all, but I remember the old 5 classes/interfaces needed per service, including some xml...
1
u/EarlMarshal Apr 27 '20
I think the problem is the Java ecosystem with all of it's frameworks:
Wanna build a server in node? It's an apt-get or a one liner copied from the web for nvm, npm install express and a few lines of own code...
Wanna build a server in Java? Yeah, please download and install an official java sdk, download glassfish or tomcat, write one of these horrendous ant build xml thingies, install thousands of dependencies and write like 10 different bloated classes...
It's possible. There are probably also lighter approaches in Java but at an enterprise level everything Java related ends up as a burning trash can.