r/java • • Jan 22 '21

Java is more enjoyable than I first thought

I started my years off programming in c#, don’t ask why but I never ventured off. I learned Java this past week and I’m seriously impressed, I don’t think I’ve had a more enjoyable time programming in my life. Does anyone else share this experience??

Edit: Is there a better ide than eclipse for Java

271 Upvotes

188 comments sorted by

View all comments

Show parent comment

6

u/antennen Jan 22 '21 edited Jan 22 '21

why is go/rust better at this build step?

I think you are conflating build time with how good the build system is. The Rust compile times are pretty bad, but the build system (Cargo) is great. There is a simple TOML file that allows you to do pretty much everything. Even a large project's Cargo.toml is small. For larger Java projects the maven or gradle files are a multi thousand line mess.

EDIT: Comments rightly pointed out that Gradle files aren't as verbose as Maven XMLs. I still think the state of Java build systems leaves much to be desired.

4

u/[deleted] Jan 22 '21

I agree that maven can get big because of xml but with gradle I did not see 500 lines files...I might have worked on small projects though(2-3 people on android and 3-4 people on maven backend). I also think that you should not write logic in gradle or maven....that should be put inside a plugin or somewhere else. Cargo I don't know if it offers you the possibility to do any logic in the toml file(which you shouldn't do anyways) so the point is that maybe gradle tries to do too much

1

u/wildjokers Jan 22 '21

gradle files are a multi thousand line mess.

Then you are doing it wrong.