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.

3

u/kcuf Feb 22 '15

Layering several abstractions, spread across various files/packages, just to achieve future maintainability impairs readability. Shared mutable state impairs understanding, and thus readability.

2

u/joequin Feb 22 '15

Layering several layers of abstraction and composing several functions both impair readability in the same way (not that much).

2

u/kcuf Feb 22 '15

Ya, I wasn't clear. The issue I was trying to get across is the lack of locality with regards to the control flow that is forced upon the developer because the tools in the language are verbose and spread across several files/packages. Add to that the lack of expressiveness has encouraged the use of heavier frameworks/libraries to lower the boilerplate, but often with the cost of obscuring the flow even more.

1

u/joequin Feb 22 '15

You just have to use the right tool with it. That means a text editor that can jump to definitions. There are a lot of them for free and paid. Then locality doesn't matter a bit.

And really, it doesn't' matter if you know how the called methods work anyway. The whole point of functions and objects is that you trust that they do what they say they do. When they don't and you have to debug, it's not hard to see which methods or functions aren't abiding by their stated functionality, as long as you have a good debugger. Java has good debuggers.

→ More replies (4)