News for hackers. Stuff that matters.
Re:Simple Ways of Reducing the Cognitive Load in Code by douche on Tuesday June 28, 2016 @12:44PM (#11995252)
This is a place where local variable type inference really comes in handy for cutting down the noise of the type declarations.

  var descendingTransactionsByValue = comparing(Transaction::getValue).reversed();
  var groceries = transactions.filter(t -> t.getType() == Transaction.GROCERY);
  var sortedGroceries = groceries.sorted(descendingTransactionsByValue);
  var transactionids = sortedGroceries.map(Transaction::getId).collect(toList());
is much easier to understand
Re:Simple Ways of Reducing the Cognitive Load in Code by rakpol on Tuesday June 28, 2016 @09:39PM (#11998951)
Oh definitely, although I'll have to wait for it to be added to the JDK [1] in order to use that in anger :/ (outside of lombok)

[1]: http://openjdk.java.net/jeps/286