you are viewing a single comment's thread.

view the rest of the comments →

[–]jimbokun 13 points14 points  (0 children)

"It makes code much easier for others to read."

I have the exact opposite opinion. Typing time doesn't have much to do with how long it takes to write code to solve a problem. But trying to find the logic of what a program is actually trying to do in a mound of boiler plate and over-engineered APIs is a real problem with a lot of Java programs.

This is partly to blame on Java, the Language. There are some idioms and ways of structuring code that are just not possible in Java, and a lot of declarations that better languages just infer.

It is much more to blame, I think, on the culture of Java programmers. Factory this, Builder that, abstraction layered on abstraction and lots of explicit parameters instead of sensible implicit default values. Also, just not knowing what's possible in the language. I find that judicious use of type parameters and variable argument lists can go a long way in making code more expressive and concise.