Skip to content

Comment on Why everybody love/hate Java?

Comments

Pure Hate:

1. Division of primitive datatypes and objects is ungodly annoying.

2. System.arraycopy(), where is the camelCase Java standards fascists?

3. .length vs .size() really, why does a primitive have an attribute anyways?

4. Date, Time, Calendar are a colossal cluster-f* unless your favorite word is Deprecated.

5. System.out.println, this is one of the most common output and debugging methods, why is it 18 characters? NO, static imports don't mitigate the idiocy.

6. HashMap<String,String> map = new HashMap<String,String>(), seem repetitive to anyone?

7. No unsigned data types?

8. Everything has to be a class.

9. Anonymous inner classes are no alternative to lambdas.

10. Generics are broken and Type Erasure for backwards compatibility is simply ridiculous.

11. No operator overloading?

Besides all these petty annoyances Java isn't fun to code, period. If you think it is you should have a go with Python or better yet Ruby.

IMHO Java suffers from two fundamental impairments:

  1. It is too easy.

  2. It is an enterprise programming language.

Because it is so easy the community is inundated with nonsense. Because it is burdened by the expectation of massive enterprises it can never change and therefore it can never improve.

Java 7 fixes 6:

  HashMap<String, String> map = new HashMap<>();
I believe that it has lambdas as well.

That declaration has an unchecked conversion which generates a compiler warning.

No, their are no lambdas in Java.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.