Streams vs. Decorators

The Streams API was introduced in Java 8, together with lambda expressions, just a few years ago. I, as a disciplined Java adept, tried to use this new feature in a few of my projects, for example here and here. I didn't really like it and went back to good old decorators. Moreover, I created Cactoos, a library of decorators, to replace Guava, which is not so good in so many places.

[image error]La Haine (1995) by Mathieu Kassovitz

Here is a primitive example. Let's say we have a collection...

 •  0 comments  •  flag
Share on Twitter
Published on October 09, 2017 17:00
No comments have been added yet.