Kalila":2let8mna said:
Why is there such a dogpile on Java?
What is wrong with it as a learning language, compared to the myriad of options given in this thread?
-- That is, anything beyond the personal commercial interests that may be associated with promoting one language or other.
Put simply: as a formative learning experience, Java is insufficiently expressive. See the previous posts: if you teach somebody Python (or Scheme, or Scala, or C#) they can move downward (and it is a downward move, from a complexity, flexibility, and expressiveness standpoint) to Java. Starting with Java, then moving upward, increases the likelihood that a programmer does not avail themselves of the benefits of better expressivity and thus writes Java in X, rather than X in X.
"Learn Java, then move to Scala when you need it" misses the point: a Java programmer is unlikely to realize they can benefit what Scala provides. Which is certainly their prerogative, but people here have a vested interest (having waded through reams of shit code) in not recommending that people start off using a tool that is essentially, via its lack of expressiveness, a vector toward creating shit code when you don't know any better.
Unfortunately, "it's just syntax" is not actually reflective of real programming. The lack of Java expressiveness lends itself to writing bad code filled with patterns devised to overcome Java's limited expressiveness. Starting at a high level (SML would, too, be fine) allows a novice to understand
implicitly--that is, without needing someone to tell them--that pattern-puke in Java exists to overcome the inherent shortcomings in a non-expressive language, rather than that they are something to be desired.
Java is an adequate professional tool; it is a bad pedagogical one, when better alternatives exist.