7 points · by robertwt7 · 5y ago · 10 comments
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?
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.
One may hate frameworks like J2EE, Spring, whatnot. But the language itself is better than ever.