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.
[ Parent
| on HN ]
Strange, our production code is full of streams and lambdas. It probably depends on the type of product.
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.
Yeah, stream overuse is definitely an issue at our company.
I started using Streams and lambdas immediately, along with functional interfaces. Java is still not nearly as pleasant as Scala or Clojure, however.
Chromium (and so Chrome too) uses lambdas in its Java parts.
Last time I used java, I used it extensivelly lambda, collection map and flatmap, optinnals... But old school javaist barely used them though.
We start using new features pretty much as soon as the new JDK version is released to general use.