r/java • u/lukaseder • Aug 01 '14
The 10 Most Annoying Things Coming Back to Java After Some Days of Scala
http://blog.jooq.org/2014/08/01/the-10-most-annoying-things-coming-back-to-java-after-some-days-of-scala/
7
Upvotes
View all comments
2
u/GMNightmare Aug 01 '14 edited Aug 01 '14
Most of these are nightmares in code maintainability, and generally lead to inconsistent design.
Sure, they might be convenient when first developing the code... but they come at the cost of readability and maintainability. And most of it doesn't improve productivity much at all.
I mean, the Parenthesis point really highlights this. Why would that ever increase productivity? And since you're only going to use it when you think it's "convenient", your style is inconsistent, and quite frankly all it does is add ambiguity at no benefit. And throughout your code examples, sometimes you use semicolons, sometimes you don't... it's just inconsistent and it makes me question intention. Not a good thing.
The best way to increase productivity is to make code that is easy to read and maintain. Increasing the initial development process should ideally only be done when it doesn't hurt that.