Why Don't They Just... ?! The Deliberations Behind Evolving Java#talkThere are many nifty features that Java could have but doesn't. Somewhat surprisingly, there are reasons for that and in this talk I'll discuss those for a few concrete cases as well as the deliberations behind such decisions.
BrokenJava 16 adds a new method
Stream::groupwith Java 16's
Streamand it can be abused to simulate a reverse-
groupoperation (with shortcomings).
FasterJava 16 adds a new method
Stream::mapMultiin Java 16#post
Stream. It fills the same role as
flatMap, but is more imperative - and faster.
Teeing Collector in Java 12#postThe teeing collector, available since Java 12 as Collectors::teeing, forwards its input to two other collectors before merging their results with a function.
Code-First Java 9 Tutorial#postShowing code for the most important Java 9 features: private interface methods, stream and optional APIs, collection factories, reactive streams, stack walking, multi-release JARs, redirected platform logging, unified logging, the module system, and more. If you're new to Java 9, start here.
Repackaging Exceptions In Streams#postHow to repackage checked exceptions that get thrown in a Java stream pipeline so that they can be thrown without the compiler complaining about it.
Expert Java 8#talkWith this talk, I help you get the most out of lambdas,
Optionals, and default methods, helping you master Java 8's core features
Rebutting 5 Common Stream Tropes#postArticles about Java 8's streams often repeat a bunch of tropes: succinctness, ugly mechanics, anemic pipelines, weak exception handling. This is a rebuttal!
Oh No, I ForgotIn Java 9
Streamgets a couple of new methods - one of them is an overload of
iteratethat takes a predicate and returns a finite stream.
Java 9 Additions ToJava 9 is coming! One of the many changes are new Stream methods:
ofNullable. For more fun with streams!
Beware Of findFirst() And findAny()#post
findAny()work with any number of elements in the stream. Make sure to
reduce(toOnlyElement())if there should be at most one.
Stream Performance - Your Ideas#postAnother post about stream performance - this one implements your ideas about how else to approach the topic.
Stream Performance#postA close look at stream performance. How do they compare to for and for-each loops oder arrays and lists. And what role plays boxing?