5
jkuhl
6y

Screw Java. Spent the last two days in this language and it's driving me to fits. Tried making a generic function. Java can't seem to easily handle generic typed arrays. Java threw a fit when I converted an array function to an integer function. Java has all this stupid boilerplate code that you put on every stupid thing.

Programming in Java is about as pleasurable as running face first into a brick wall.

Comments
  • 0
    Generics don't really recognize the wrapper classes for arrays of primitive types - stupid, but if you make the array with the wrapper class instead of the primitive type it works.
    Whats funny is that it works with normal variables, just not with arrays.
  • 0
    Some of your issues seem to be with type erasure (a List[SomeClass] can't be cast to a List[BaseClass] because the types aren't stored with the collection. This is a throwback to 1.4 -> 1.5 comparability and we've had to deal with it since).

    Try Scala. I love Scala. It still has a lot of issues (although different issues) but it's a lot more fun to write in Scala once you learn all the functional concepts.
Add Comment