r/programming • • Feb 22 '15

Java Makes Programmers Want To Do Absolutely Anything Else With Their Time

http://www.forbes.com/sites/quora/2015/02/21/java-makes-programmers-want-to-do-absolutely-anything-else-with-their-time/
35 Upvotes

636 comments sorted by

View all comments

219

u/aldo_reset Feb 22 '15 edited Feb 22 '15

Why do many software engineers not like Java?

They don't.

Seriously, I know it might be hard to believe, especially if you spend time reading reddit, HN or if you are subscribed to a few mailing-lists on the subject (which means you are part of a very tiny minority), but the bottom line is that the majority of Java developers is quite happy with Java.

If you are one of these bleeding edge developers who keep their knowledge current, are aware of Scala, Kotlin, Ceylon, Clojure or maybe even ML or Haskell, you are convinced that Java is an abomination and that certainly, all its users must absolutely hate it. And you are dead, dead wrong about that.

Before Java, we had C++, and if in the 1990-1995 period, you had interviewed C++ developers, you would probably have found out that a huge proportion of C++ developers absolutely hated programming in this language. Which set the stage for Java to take over in 1995.

I'm not seeing this today. There are no rabid mobs of developers with pitchforks massing at the gates and asking for a revolution. Java is respected for its productivity, its readability and its unbeatable fast path to getting things done in a way that's scalable and maintainable.

Which is why that it's not going to be replaced any time soon. Not by Scala, not by Kotlin, not by Ceylon. In a lustrum, maybe. But not in the near future.

Java is fine, it's liked, it's respected (for good and bad reasons) and it's going to be around for a very, very long time.

1

u/makis Feb 22 '15

Before Java, we had C++, and if in the 1990-1995 period, you had interviewed C++ developers, you would probably have found out that a huge proportion of C++ developers absolutely hated programming in this language. Which set the stage for Java to take over in 1995.

that's not entirely true. I mean, this is your opinion, but C++ is still more used than Java.
How's that possible if what you say was true?

Truth is back in the day there were not enough alternatives, and many were forced to use C++, even if they were not able to write proper c++ or understand it.

Truth is, Java was sold as an easier C++, with easy multi threading, (which is not) and people though "now I can finally multi thread and speed up things", and created bloated monsters where every connection opened up a new thread, every computation unit had it's own tread, killing performances for everybody for a long time.
And making CPU and RAM producers happy as never before.

Truth is at my university we studied ML (standard ML) and C++ (besides pascal, prolog and other minor languages), one for learning Object Oriented programming and performance sensitive code, the other for FP and get used to totally different paradigms.

Few years after, some new shiny Sun workstation appeared in the labs, and suddenly everybody was ditching ML to teach Java, and now students were being taught two competing languages, that were very similar, except one of them had horrible performances, libraries, tools, etc. etc. and completely ruined the mindset of a generation of coders.

Yep, I'm talking about money invested to make Java a successful language, while it had no real merit to become one.
Just like Go now, but worse, at least you can learn everything about Go in one week and you'll never ever write a Factory Class with it!
At least Go can be quite useful.

Twenty years later they now have a pretty good VM (you don't say, in 20 years…), but Java the language have set back CS evolution for almost a decade and we are just now realising what big mistake we made, permitting to the "industry" to infiltrate their men in every committee to lobby all over the place, to block C++ standard evolution in primis and praise Java as the only solution that would have freed us from the tyranny of C++.