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

Show parent comments

40

u/llogiq Feb 22 '15

I am one of those bleeding edge developers you mention, I know Lisp, ML, Haskell and am currently looking into Rust. And I'm also a Java developer, and quite happy with Java.

Java sucks at some points, yes, but not as hard as many think. For a lot of problems, it's actually quite capable, and the specific pain points some folks never tire to mention either can be worked around with little effort or don't impair productivity as much as they think anyway. Also, frankly, the tooling just rocks.

1

u/BeforeTime Feb 22 '15

Java has classes and objects. You'd be looking long for a more powerful abstraction mechanism than that. Other languages might have more abstraction tools that are more suited to some situations, but objects can almost always get the job done. Other mechanisms are just more terse, which can be valuable, but they are not strictly speaking more powerful.

What Java lacks is some sort of syntactic abstraction such as e.g. macros or haskells handling of two argument functions.

3

u/alloec Feb 22 '15

Java has classes and objects

In Java context those two are more of less same thing. I think you mean interfaces and objects and it is an okayish abstraction mechanism, but not exactly powerful.

Am I wrong to assume you don't really understand other abstractions other those found in OOP nowadays? Because terseness in the non-oop abstractions you refer to are not the strengths of these abstractions.

2

u/[deleted] Feb 22 '15

Because terseness in the non-oop abstractions you refer to are not the strengths of these abstractions.

If you're saying what I think you're saying, I agree with you.

Java is predominant in the enterprise, and OOP abstractions are more communicable for the concepts an people in that environment than non-OOP abstractions. For example, it is easier to explain the concept of an Account.withdraw() operation to an entire team than explaining a monad.

On the other hand, if you were to write software in a team where mathematics is predominant, functional abstractions would be better suited.