News for hackers. Stuff that matters.
Re:OMG, Java is so verbose, guys by bsou on Tuesday December 13, 2016 @10:59AM (#13167727)
My main gripe with Java is its lack of type inference and the resulting redundancy that pops up. Things like the following got tiresome quickly (I might be a newb missing out on a better way to do things like this)

  private final TreeMap<String, TreeMap<String, Record>> searchTree = new TreeMap<String, TreeMap<String, Record>>();
Re:OMG, Java is so verbose, guys by reitanqild on Tuesday December 13, 2016 @11:10AM (#13167813)
FWIW This will raise a warning in my dev environment as I have declared in my pom file that I use JDK 8.

Also I'd consider it better style to only specify the interface on the left hand side, something like this should work:

private final Map<String, Map<String, Record>> searchTree = new TreeMap<>();

Edit: if you use Netbeans with maven it will automatically pick up correct settings from the pom and autocomplete with a shorter version like the one I suggested.

Re:OMG, Java is so verbose, guys by cholantesh on Tuesday December 13, 2016 @12:08PM (#13168381)
This is a much more reasonable example than the line used in the article.