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.

4

u/htuhola Feb 22 '15

I hoped to see a large-scale interview when I saw the title. Without that you can't really say whether java developers are happy with their language or not.

Looking on Reddit I see people advocating about all kinds of languages. You'll find APL, C, C++, PHP, Fortran lovers. Wouldn't be surprised if somebody says he loves cobol or basic.

You probably can't know if people hated C++ in the 1990-1995 period, similar to how you can't know if people hate java now. We don't have the data to drive those conclusion. Besides you've pretty much proved this far that such study couldn't lead us to other conclusions. Popularity of a programming language isn't rooted into it's quality.

I'm surprised to hear that you respect java for it's productivity and readability, though. But maybe you're doing so simple things that it works out.

4

u/joequin Feb 22 '15

I think it's extremely readable, because unlike functional languages and newer languages it doesn't encourage the cleverness that often impedes code readability.

1

u/yogthos Feb 23 '15

Since when is declarative code less readable exactly?

1

u/joequin Feb 23 '15

That's not what I said.

1

u/yogthos Feb 23 '15

Then perhaps you could be a bit more specific about what it is that you mean. My experience is that there's far more cleverness in OO than in FP.

With FP everything is data driven. I have some data and I want to transform it into a different piece of data. I break the transformation into steps and find the functions that do these steps. There's nothing at all clever going on there.

On the other hand, with OO we start creating models of things and that can get pretty clever indeed. You end up with a bunch of state machines each doing something funky inside and you have to figure out how they all interact with one another.