News for hackers. Stuff that matters.
Re:Java 12 by Consultant32452 on Wednesday March 20, 2019 @01:20AM (#19439242)
I've been working professionally in Java for almost 20 years. I can't remember the last time I saw someone use features introduced after 1.6. The time API in 1.8 was nice. I've never seen anyone use lambdas in production code. I'm sure people do use newer stuff, but I think it's the minority. So in practice it's even more stable than it is in the headlines.
Re:Java 12 by Scea91 on Wednesday March 20, 2019 @02:34AM (#19439578)
Strange, our production code is full of streams and lambdas. It probably depends on the type of product.
Re:Java 12 by qw on Wednesday March 20, 2019 @03:07AM (#19439715)
I work for a large company and the code base is full of streams and lambdas. Streams are almost used too much and could be replaced with a simple for-loop.
Re:Java 12 by ionised on Wednesday March 20, 2019 @08:22AM (#19441325)
Yeah, stream overuse is definitely an issue at our company.
Re:Java 12 by jcadam on Wednesday March 20, 2019 @07:32AM (#19441006)
I started using Streams and lambdas immediately, along with functional interfaces. Java is still not nearly as pleasant as Scala or Clojure, however.
Re:Java 12 by euyyn on Wednesday March 20, 2019 @02:49AM (#19439641)
Chromium (and so Chrome too) uses lambdas in its Java parts.
Re:Java 12 by gbersac on Wednesday March 20, 2019 @04:50PM (#19446731)
Last time I used java, I used it extensivelly lambda, collection map and flatmap, optinnals... But old school javaist barely used them though.
Re:Java 12 by ionised on Wednesday March 20, 2019 @08:21AM (#19441320)
We start using new features pretty much as soon as the new JDK version is released to general use.
Re:Java 12 by astura on Wednesday March 20, 2019 @08:22AM (#19441328)
I started using them ASAP.