this post was submitted on 02 Nov 2023
1 points (100.0% liked)

Java News/Tech/Discussion/etc. No programming help, no learning Java

0 readers
0 users here now

News, Technical discussions, research papers and assorted things of interest related to the Java programming language NO programming help, NO...

founded 1 year ago
MODERATORS
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/java by /u/dekc_bu on 2023-11-01 20:28:34.


If compared to something else?

Hi all, hope this doesn't go too much against the rules.

If you worked with other languages and using Java, what do you think is missing?

I worked worked with NodeJS (both javascript and typescript) for 6 years before moving without any regrets to Java 3 years ago.

What I miss is how easy is to create a simple project, simply run npm init or yarn init and Bob's your uncle.

Not using Rust professionally, just small programs to try it out and it's easy as well to start a project, just cargo new hello_world --bin

I read plenty books about Java and sometimes I want to follow along by writing the code, experiment with it, install some dependencies and try again and again, yet I'm still confused on how to create a simple Maven project.

Found this one , which source and target are set to Java 7... cool I can update them. Running mvn install looks good, try java -jar name.jar

no main manifest attribute, in target/app.jar

And same goes for information you get for a dependency ,

compare this eventbridge client on npm

and this on maven

One has tons of information about it with a link to the repository, the other just how to add it to your project.

As for the Java language I honestly have nothing that I miss from [java|type]script, well maybe how easy is to write asynchronous code.

I know Java is trying to be more friendly by removing some ceremonies, void main(), but feels like its ecosystem isn't evolving that much.

Feel free to tell me your opinions, as well as RTFM!

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here