When you get into the habit of functional programming, you probably start to love the composability and the readability that it brings to your code base. You might start to see code more as a pipeline or “pieces of a puzzle” that you try to connect (or in other words: functional composition). When chaining methods in Java, you can sometimes run into unexpected behavior…

Read more →