Re:Android versus iPhone Development: A Comparison
by Zaak on Friday July 03, 2009 @03:36PM
(#686513)
The reason why idiomatic Java is so verbose is because if you don't write it that way from the start, you wind up painting yourself into a corner because Java doesn't have any way to add flexibility later without breaking things.
It's one of the reasons I really dislike Java.
Re:Android versus iPhone Development: A Comparison
by rozim on Friday July 03, 2009 @11:28AM
(#686165)
Yeah, what drives me crazy is the insistence that java "properties" be hidden behind set/get methods even for simple ones in which their is realistically no need to every intercept their accesses. I think C# and Python at least allow transparent control of properties while still allowing the caller's code to look natural.
You can indeed write much more concise and clear code in it, but for some reason the "proper" way to write java is to use a ton of factories, defining new class (and immediately extending them with more subclasses) for every little thing, wrappers, interfaces and so on.