书籍介绍
这本书最务实之处,在于它不纠缠于函数式编程的理论思辨,而是把 lambda、Stream 和 Optional 当作能直接写进项目的工具。读者反复提到:读完就能提升代码的可读性与灵活度。书中对「并行该用 Stream 还是 CompletableFuture」的取舍尤为实用——计算密集型走并行流,涉及 I/O 等待则用 CompletableFuture 灵活调线程数,这种基于场景的判断正是日常开发中最容易踩坑的地方。此外,同步与异步 API 的对比、响应式编程的入门,都讲得由浅入深、例子生动。需要提醒的是:它聚焦 Java 8/9 的语言规范,信息量不算庞大,Scala 部分略显过时;若你已熟悉其他语言的 Stream 实现,会觉得内容偏薄。适合想系统梳理 Java 新特性、快速上手的开发者速读。
作者简介
Raoul-Gabriel Urma is CEO and co-founder of Cambridge Spark, a leading learning community for data scientists and developers in UK. In addition, he is also Chairman and co-founder of Cambridge Coding Academy, a growing community of young coders and pre-university students. Raoul is author of the bestselling programming book "Java 8 in Action" which sold over 20,000 copies globally. Raoul completed a PhD in Computer Science at the University of Cambridge. In addition, he holds a MEng in Computer Science from Imperial College London and graduated with first class honours having won several prizes for technical innovation. Raoul has delivered over 100 technical talks at international conferences. He has worked for Google, eBay, Oracle, and Goldman Sachs. He is also a Fellow of the Royal Society of Arts.
Mario Fusco is a senior software engineer at Red Hat working on Drools, the JBoss rule engine. He created the open source library lambdaj, an internal Java DSL for manipulating collections in a functional way.
Alan Mycroft is Professor of Computer Science at the University of Cambridge, where he researches programming languages, their semantics, optimization and implementation. He is a co-founder and Trustee of the Raspberry Pi Foundation.