出版社: Manning Publications
副标题: Lambdas, Streams, and functional-style programming
出版年: 2014-8-28
页数: 424
定价: USD 49.99
装帧: Paperback
ISBN: 9781617291999
内容简介 · · · · · ·
While the term "lambda expression" may sound abstract and academic, Java 8 Lambdas can have a big impact on how you program every day. In simplest terms, a lambda expression is a function—a bit of code—that you can pass to another method as an argument. Thus, you can cope with changing requirements by using a behavior, represented by a lambda, as a parameter. Java 8's functiona...
While the term "lambda expression" may sound abstract and academic, Java 8 Lambdas can have a big impact on how you program every day. In simplest terms, a lambda expression is a function—a bit of code—that you can pass to another method as an argument. Thus, you can cope with changing requirements by using a behavior, represented by a lambda, as a parameter. Java 8's functional programming features, like lambdas and the new Stream API that enables a cleaner way to iterate through collections, can help you write concise, maintainable code that scales easily and performs well on multicore architectures.
Java 8 in Action is a clearly-written guide to Java 8 lambdas and functional programming in Java. It begins with a practical introduction to the structure and benefits of lambda expressions in real-world Java code. The book then introduces the Stream API and shows how it can make collections-related code radically easier to understand and maintain. Along the way, you'll discover new FP-oriented design patterns with Java 8 for code reuse, code readability, exception handling, data manipulation, and concurrency. For developers also exploring other functional languages on the JVM, the book concludes with a quick survey of useful functional features in Scala.
作者简介 · · · · · ·
Raoul-Gabriel Urma has worked as a software engineer for Oracle's Java Platform Group, Google's Python team, Ebay, and Goldman Sachs as well as for several startup projects. He's currently completing a PhD in Computer Science at the University of Cambridge and is a regular speaker and instructor. Mario Fusco is a senior software engineer at Red Hat working on Drools, the JBoss ...
Raoul-Gabriel Urma has worked as a software engineer for Oracle's Java Platform Group, Google's Python team, Ebay, and Goldman Sachs as well as for several startup projects. He's currently completing a PhD in Computer Science at the University of Cambridge and is a regular speaker and instructor. 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.
You can follow Raoul and Mario on Twitter at @raoulUK and @mariofusco.
目录 · · · · · ·
PART I: FUNDAMENTALS
1 Java 8: why should you care? - FREE
2 Passing code with behavior parameterization - AVAILABLE
3 Lambda expressions - AVAILABLE
PART II: FUNCTIONAL-STYLE DATA PROCESSING
· · · · · · (更多)
PART I: FUNDAMENTALS
1 Java 8: why should you care? - FREE
2 Passing code with behavior parameterization - AVAILABLE
3 Lambda expressions - AVAILABLE
PART II: FUNCTIONAL-STYLE DATA PROCESSING
4 Processing data with streams - AVAILABLE
5 Collecting data with streams - AVAILABLE
6 Parallel data processing and performance - AVAILABLE
PART III: EFFECTIVE JAVA 8 PROGRAMMING
7 Refactoring, testing, debugging - AVAILABLE
8 Default methods - AVAILABLE
9 Optional: a better alternative to null - AVAILABLE
10 CompletableFuture: composable asynchronous programming - AVAILABLE
11 New Date and Time API - AVAILABLE
PART IV: BEYOND JAVA 8
12 Thinking functionally - AVAILABLE
13 Functional programming techniques - AVAILABLE
14 Blending OOP and FP: comparing Java 8 and Scala - AVAILABLE
15 Conclusions and "where next" for Java - FREE
APPENDICES:
A Miscellaneous language updates - AVAILABLE
B Miscellaneous library updates - AVAILABLE
C Performing multiple operations in parallel on a Stream - AVAILABLE
D Lambdas and bytecode - AVAILABLE
· · · · · · (收起)
喜欢读"Java 8 in Action"的人也喜欢 · · · · · ·
Java 8 in Action的书评 · · · · · · ( 全部 14 条 )
耳目一新的Java 8
这篇书评可能有关键情节透露
花了18天,把这书通读一遍,体验了一下代码,并作了些笔记,发布在 我的oschina博客 和 我的csdn博客 上。 Java 8 的新特性主要有Lambda表达式、Stream流、接口的默认方法。这些特性出现,我认为可以帮助码农们写出更加优雅的代码。譬如,在Java8前按照策略模式,需要编写接口... (展开)Java 8入门和进阶参考
Java8实战读后感
这篇书评可能有关键情节透露
背景介绍:阅读过Java编程思想,深入理解JVM,并发编程实战,一半Effective Java,无函数式编程的经验 阅读本书前面章节时(1~3章),曾觉得较为简单,以前已经习惯了匿名内部类的写法,在我看来Lambda及方法引用只是个匿名内部类的语法糖,虽然提供了函数式编程的思想,使开发人员能更清... (展开)全面介绍Java 8的核心特性
这么多年过去了,java 8仍然可以反复学习
Java实战(第2版):开启深度技术的探索之旅
感受一下Lambda的伟大思想
> 更多书评 14篇
论坛 · · · · · ·
在这本书的论坛里发言这本书的其他版本 · · · · · · ( 全部4 )
-
人民邮电出版社 (2016)9.1分 696人读过
-
人民邮电出版社 (2019)8.8分 77人读过
-
Manning Publications (2018)8.6分 20人读过
以下书单推荐 · · · · · · ( 全部 )
- 书单|Java 后端开发 (枫之叶)
- In Action (deyken)
- Manning系列的人物书 (damengxinfa02)
- JAVA (lightenwang)
- 计算机书单 (看看)
谁读这本书? · · · · · ·
二手市场
· · · · · ·
订阅关于Java 8 in Action的评论:
feed: rss 2.0
0 有用 丸子 2016-10-09 12:52:16
其实应该叫「FP in Java 8」更合适,CompletableFuture类大概是目前最实用的类了。
0 有用 wltan 2019-11-06 09:46:27
有的地方为了追求浅显而放弃了系统,比如completableFututure那章,看的时候顺着作者思路都明白,但是实际工作中用的时候,还得去看文档。适合初次接触java8的人,后续体系化的理解需要借助其他资料。
0 有用 雄爷 2018-01-30 10:06:32
对于全面了解Java8的新特性,非常有帮助。
0 有用 夙4 2016-11-20 05:20:11
废话太多,不过对于没接触过函数式编程的人大概很不错。
0 有用 highwind 2017-07-31 22:27:55
虽然lambda和pipeline的引入使语法简洁很多,但某种意义上一小块方糖无法使整杯咖啡变甜,所以java程序员应该尽早拥抱kotlin
0 有用 razors 2024-04-02 19:46:03 北京
已经熟悉 fp 了,感觉一般吧,许多 best practice 都被 scala 或者 kotlin 或者 rust 这样现代一些的语言 enforce 了
0 有用 villim 2024-02-06 02:23:46 广东
写得真的细!JDK8的所有新知识点都说清楚了。 虽然要用17了,但8仍然没用利索。
0 有用 2024 2021-11-04 00:36:28
Stream + Optional, improve readability and flexibility of java code
0 有用 3点一直线 2021-08-05 01:16:28
这个书 讲了java 8 新的几个特性,挺好的。看完基础可以看这个。 讲了lambda, stream, interface default method 这些新的东西。
0 有用 iamswf 2020-01-11 18:31:42
条理清楚,如果想基于java学习函数式编程,推荐这本。