Object-oriented programming makes code understandable by encapsulating moving parts. Functional programming makes code understandable by minimizing moving parts.

Michael Feathers

Chapter 8Let Your Data Flow

In the first half of the sixteenth century, the astronomer Nicolaus Copernicus published his ideas on heliocentrism—the astronomical model in which the Earth revolves around the sun and not the other way around. At the time, this was a fundamental revolution of thought and the way that we humans view the universe and our place in it.

The release of Java 8 was a similar revolution to the Java world. Since then, it’s become possible to use the functional programming paradigm with lambda expressions and streams in regular Java programs out ...

Get Java By Comparison now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.