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/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)