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

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.

0

u/BeforeTime Feb 22 '15

I think you are wrong to assume that. Objects (and by the same token, closures) are the most general purpose abstraction mechanisms there are, even the things done with call/cc and friends can be done using objects, just in different ways.

This is not to say that objects are the most optimal way to do things, it is just to say that Java has a very powerful abstraction mechanism at its disposal which means it very rarely leaves you hanging even if it might be a bit (quite even) verbose.