Ask HN: Do you as a Java developer hates Java?
I'm not a Java dev, but my current company uses it as its core. I found it okay-ish, verbose but I don't mind it (I've worked a lot with node and laravel before).
Many questions have been asked about this years and years ago (there's 1 popular in reddit). However, stackoverflow insights 2021 still shows 52.85% (15,413 responses) of Java dev hated Java. Do you guys hate it? and why?
10 comments
[ 1.9 ms ] story [ 29.2 ms ] threadhttps://www.youtube.com/watch?v=kqmdgNXlMYo&t=127s
One may hate frameworks like J2EE, Spring, whatnot. But the language itself is better than ever.
It's also really verbose. Kotlin rips out all the verbosity at no cost. Why would I want "@Nullable" when "?" does the trick?
Javadocs are a major code smell too. Why do I need a 8 line comment for a 3 line method?
I think it's more a problem with the habits that have grown around Java.
Java can be very hackable. Fluent Java, lambdas, generics provide opportunities.
> It's also really verbose. Kotlin rips out all the verbosity at no cost. Why would I want "@Nullable" when "?" does the trick?
Just omit it altogether. If you really want, you can prevent nulls on another level.
> I think it's more a problem with the habits that have grown around Java.
Yes. Java was nearly dead, but 8th version significantly improved things. But the biggest problem is frameworks and dragged baggage of EE-style development from early 2000. Lightweight Java is very different, while with its own set of issues.