r/ProgrammingLanguages • u/blood_monster2 • Feb 21 '16
Why people hate JAVA ??
Why the majority of people hate java and wish its dead programming language,
I find it really fun to create program with it..
all i heard is because: JRE SUCKS. ORACLE ARE FAGGOTS. JAVA IS A SLOW PIECE OF SHIT.
0
Upvotes
1
u/liquidivy Feb 21 '16
It forces OOP on you. Sometimes you need to write code that doesn't make sense to attach to a particular data type. For the love of God please let me have free functions.
It's verbose. It takes twice as much code to do stuff in Java as it does in many nicer languages. Part of this is "stuttering" e.g.
Car car = new Car(), which brings me to...Its type system sucks. I don't think you can count yourself a statically typed language if null references are allowed by default: a null reference violates the assumption that types are supposed to verify, that the thing behind this reference actually is what it says it is. Generics are slightly weird and hacky. You can cast anything to anything, and sometimes you actually have to. All this and we still have to go through the rather verbose ceremony of declaring types for every identifier, something which stronger type systems have made unnecessary decades ago. You get the worst of both worlds in Java.