Java 8 Lambdas: Pragmatic Functional Programming (Paperback)
暫譯: Java 8 Lambda 表達式:務實的函數式程式設計 (平裝本)

Richard Warburton

買這商品的人也買了...

商品描述

If you’re a developer with core Java SE skills, this hands-on book takes you through the language changes in Java 8 triggered by the addition of lambda expressions. You’ll learn through code examples, exercises, and fluid explanations how these anonymous functions will help you write simple, clean, library-level code that solves business problems.

Lambda expressions are a fairly simple change to Java, and the first part of the book shows you how to use them properly. Later chapters show you how lambda functions help you improve performance with parallelism, write simpler concurrent code, and model your domain more accurately, including building better DSLs.

  • Use exercises in each chapter to help you master lambda expressions in Java 8 quickly
  • Explore streams, advanced collections, and other Java 8 library improvements
  • Leverage multicore CPUs and improve performance with data parallelism
  • Use techniques to “lambdify” your existing codebase or library code
  • Learn practical solutions for lambda expression unit testing and debugging
  • Implement SOLID principles of object-oriented programming with lambdas
  • Write concurrent applications that efficiently perform message passing and non-blocking I/O

商品描述(中文翻譯)

如果您是一位具備核心 Java SE 技能的開發者,這本實作導向的書籍將帶您了解 Java 8 中因引入 lambda 表達式而產生的語言變化。您將透過程式碼範例、練習和流暢的解釋學習這些匿名函數如何幫助您撰寫簡單、乾淨、達到庫級別的程式碼,以解決商業問題。

Lambda 表達式是 Java 中相對簡單的變化,書籍的第一部分將向您展示如何正確使用它們。後面的章節將展示 lambda 函數如何幫助您透過並行處理提升性能、撰寫更簡單的並發程式碼,以及更準確地建模您的領域,包括構建更好的 DSL。

- 使用每章的練習幫助您快速掌握 Java 8 中的 lambda 表達式
- 探索流、進階集合及其他 Java 8 庫的改進
- 利用多核心 CPU 並透過數據並行性提升性能
- 使用技術將您現有的程式碼庫或庫程式碼「lambdify」
- 學習 lambda 表達式單元測試和除錯的實用解決方案
- 使用 lambda 實現物件導向程式設計的 SOLID 原則
- 撰寫有效執行訊息傳遞和非阻塞 I/O 的並發應用程式