Functional Programming in Java: Harness the Power of Streams and Lambda Expressions, 2/e (Paperback)
暫譯: Java中的函數式程式設計:掌握串流與Lambda表達式的力量,第二版(平裝本)
Subramaniam, Venkat
- 出版商: Pragmatic Bookshelf
- 出版日期: 2023-08-29
- 售價: $2,100
- 貴賓價: 9.5 折 $1,995
- 語言: 英文
- 頁數: 250
- 裝訂: Quality Paper - also called trade paper
- ISBN: 1680509799
- ISBN-13: 9781680509793
-
相關分類:
Java 程式語言
立即出貨 (庫存=1)
買這商品的人也買了...
-
$790$672 -
$720$612 -
$477Rust 權威指南 (The Rust Programming Language (Covers Rust 2018))
-
$560$437 -
$780$390 -
$1,540Network Programming with Go: Learn to Code Secure and Reliable Network Services from Scratch
-
$450$356 -
$580$458 -
$780$616 -
$800$632 -
$720$562 -
$600$510 -
$1,654The Rust Programming Language, 2/e (Paperback)
-
$620$484 -
$680$476 -
$620$490 -
$1,000$790 -
$780$616 -
$780$616 -
$680$530 -
$980$774 -
$680$537 -
$380$300 -
$420$331 -
$820$647
商品描述
Imagine writing Java code that reads like the problem statement, code that's highly expressive, concise, easy to read and modify, and has reduced complexity. With the functional programming capabilities in Java, that's not a fantasy. This book will guide you from the familiar imperative style through the practical aspects of functional programming, using plenty of examples. Apply the techniques you learn to turn highly complex imperative code into elegant and easy-to-understand functional-style code. Updated to the latest version of Java, this edition has four new chapters on error handling, refactoring to functional style, transforming data, and idioms of functional programming.
Don't struggle with the limitations of the imperative style; instead learn to combine object-oriented programming with the functional style to reduce the accidental complexity. Harness the functional programming capabilities of Java to create applications where the program reveals its intentions and your team can quickly understand and modify code to align with changing business requirements. Unlock the power of lambda expressions and the Streams API to turn the oft-written spaghetti code into highly concise, expressive, elegant, and maintainable code. See how Streams make the arduous task of parallelizing code as easy as flipping a switch when superior speed is necessary.
Apply design patterns built around lambda expressions, safely manage resource allocations, use memoization, and learn to transform data into different forms, all while honoring immutability, and providing thread safety to leverage lazy evaluation for efficiency and parallel execution for performance. Move beyond the basics, explore the idioms for writing functional programs. Learn to think functionally by refactoring legacy code into the functional style. And, if your code runs aground due to failures, learn to properly handle errors the functional way.
Don't drown in theory; instead learn the practical functional programming techniques to create superior Java code.
What You Need:
Java version 8 or newer.
商品描述(中文翻譯)
想像一下,撰寫的 Java 代碼就像問題陳述一樣,代碼高度表達性、簡潔、易於閱讀和修改,並且降低了複雜性。利用 Java 的函數式編程能力,這並不是幻想。本書將引導您從熟悉的命令式風格,通過實用的函數式編程方面,使用大量範例。應用您所學的技術,將高度複雜的命令式代碼轉換為優雅且易於理解的函數式代碼。本版已更新至最新的 Java 版本,新增四個章節,涵蓋錯誤處理、重構為函數式風格、數據轉換以及函數式編程的慣用法。
不要再為命令式風格的局限而掙扎;相反,學習將面向對象編程與函數式風格結合,以減少意外的複雜性。利用 Java 的函數式編程能力創建應用程序,使程序能夠清晰表達其意圖,您的團隊可以快速理解和修改代碼,以適應不斷變化的業務需求。釋放 lambda 表達式和 Streams API 的力量,將經常寫的意大利麵代碼轉變為高度簡潔、表達性強、優雅且可維護的代碼。當需要更高速度時,看看 Streams 如何使平行化代碼的艱鉅任務變得輕而易舉。
應用圍繞 lambda 表達式構建的設計模式,安全地管理資源分配,使用記憶化,學習將數據轉換為不同形式,同時尊重不可變性,並提供線程安全,以利用延遲評估提高效率,並進行並行執行以提升性能。超越基礎,探索編寫函數式程序的慣用法。學習通過將舊代碼重構為函數式風格來進行函數式思考。如果您的代碼因故障而陷入困境,學習以函數式的方式正確處理錯誤。
不要淹沒在理論中;相反,學習實用的函數式編程技術,以創建優越的 Java 代碼。
您需要的條件:
Java 版本 8 或更新版本。