News for hackers. Stuff that matters.
Re:A categorized list of all Java and JVM features since JDK... by srparish on Thursday April 01, 2021 @06:04PM (#26666759)
Verbosity of code is more of a go thing these days:

  hasThing := false
  for _, v := range stuff {
    if checkForThing(v) {
      hasThing = true
      break
    }
  }
  if !hasThing {
    return false
  }
Java:

  if !stuff.stream().anyMatch(v -> checkForThing(v)) {
    return false;
  }
In the 2020s, loops are the new "goto", too much boiler-plate and ways to subtly be incorrect, much safer to use higher-level collection methods.
Re:A categorized list of all Java and JVM features since JDK... by oftenwrong on Friday April 02, 2021 @03:35AM (#26669674)

    return stuff.stream().anyMatch(this::checkForThing)