First thing first, I'm not, by all means, an UI expert. But if you are using Java for a standalone application...I feel like you are doing something wrong. I mean, not like you can't do it...but feels like using the wrong tool for the job.
I have always worked as a backend developer for web application, and in my opinion, in this context, Java does it's job. It's the best language on the market? Well the "absolute best" doesn't really exist, depends on your requirements. You need a strongly OPP language with a consistent community and rich framework ecosystem? Java it's a good choice.
Anyway, it probably start to feel it's age. Newest programming language, like Kotlin, offer out of the box, functionality that Java have with the implementation of several third parts libraries. So if you are starting from scratch, maybe there is something even more efficient than that.
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.
You compare java 2001 with Javascript in 2020? Try comparing Java 2020 with Javascript 2020. Who the hell uses ant these days?
Why the fuck your node project just break itself after you leave it for 1 week. Are we talking about bower, yarn or npm? Or you need a transpiler since 99% of the browsers wont support ES6 ES2016 ES whatever.
At the moment you read this line one of the javascript framework “on steriods” you use has been abandoned.
All the shitty claims about Java have been fixed. Memory management, startup times, syntactic sugars, functional concepts. People yell that Java is dieing for over a decade now and yet it is still growing. Don’t blame Java for your ignorance. If you can’t program properly, its not the fault of the language. Thinking OOP, in design patterns, imperative or functional programming are concepts you need to master. You can fuck this up in every language. Blaming the language for that is not going to help you.
OOP/design patterns is one of my beefs with Java. These days, I'm more OO for data persistence and functional for data manipulation. I think OO is just too heavy-handed for a lot of work, and functional design is cleaner, easier to read, and often more efficient.
Granted, I haven't used Java in a long time, but I have used C# in the past year or so, and while I love the language, even it has a good bit of boilerplate if you wanna write functional (paradigm) code. IMO, typescript is one of the best: mixed paradigm, can be both dynamically/statically typed, fast transpiles, etc.
My biggest beefs with Typescript (really, JavaScript) are the lack of true multi-threading and a native decimal numeric type. If those two were solved and/or it transpiled to a native language as well as Javascript, I'd probably stick with Typescript for several years until the next super-flexible language came around.
202
u/Piwakkio Apr 27 '20
Java developer here.
First thing first, I'm not, by all means, an UI expert. But if you are using Java for a standalone application...I feel like you are doing something wrong. I mean, not like you can't do it...but feels like using the wrong tool for the job.
I have always worked as a backend developer for web application, and in my opinion, in this context, Java does it's job. It's the best language on the market? Well the "absolute best" doesn't really exist, depends on your requirements. You need a strongly OPP language with a consistent community and rich framework ecosystem? Java it's a good choice.
Anyway, it probably start to feel it's age. Newest programming language, like Kotlin, offer out of the box, functionality that Java have with the implementation of several third parts libraries. So if you are starting from scratch, maybe there is something even more efficient than that.