Functional Programming in Java: Harnessing the Power Of Java 8 Lambda Expressions (Paperback)
暫譯: Java中的函數式編程:利用Java 8的Lambda表達式的力量(平裝本)

Venkat Subramaniam

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

商品描述

Intermediate level, for programmers fairly familiar with Java, but new to the functional style of programming and lambda expressions.

Get ready to program in a whole new way. Functional Programming in Java will help you quickly get on top of the new, essential Java 8 language features and the functional style that will change and improve your code. This short, targeted book will help you make the paradigm shift from the old imperative way to a less error-prone, more elegant, and concise coding style that's also a breeze to parallelize. You'll explore the syntax and semantics of lambda expressions, method and constructor references, and functional interfaces. You'll design and write applications better using the new standards in Java 8 and the JDK.

Lambda expressions are lightweight, highly concise anonymous methods backed by functional interfaces in Java 8. You can use them to leap forward into a whole new world of programming in Java. With functional programming capabilities, which have been around for decades in other languages, you can now write elegant, concise, less error-prone code using standard Java. This book will guide you though the paradigm change, offer the essential details about the new features, and show you how to transition from your old way of coding to an improved style.

In this book you'll see popular design patterns, such as decorator, builder, and strategy, come to life to solve common design problems, but with little ceremony and effort. With these new capabilities in hand, Functional Programming in Java will help you pick up techniques to implement designs that were beyond easy reach in earlier versions of Java. You'll see how you can reap the benefits of tail call optimization, memoization, and effortless parallelization techniques.

Java 8 will change the way you write applications. If you're eager to take advantage of the new features in the language, this is the book for you.

What you need:

Java 8 with support for lambda expressions and the JDK is required to make use of the concepts and the examples in this book.

商品描述(中文翻譯)

中級水平,適合對 Java 相當熟悉,但對函數式編程風格和 lambda 表達式較為陌生的程式設計師。



準備以全新的方式進行編程。Java 中的函數式編程 將幫助您快速掌握 Java 8 的新特性和將改變及改善您代碼的函數式風格。這本短小精悍的書籍將幫助您從舊有的命令式編程方式轉變為一種更不易出錯、更優雅且簡潔的編碼風格,這種風格也更容易進行並行處理。您將探索 lambda 表達式、方法和建構子引用以及函數式介面的語法和語義。您將能夠使用 Java 8 和 JDK 中的新標準來設計和編寫更好的應用程式。



Lambda 表達式是輕量級、高度簡潔的匿名方法,並由 Java 8 中的函數式介面支援。您可以利用它們進入 Java 編程的全新世界。憑藉函數式編程的能力,這在其他語言中已經存在了幾十年,您現在可以使用標準 Java 編寫優雅、簡潔且不易出錯的代碼。本書將指導您完成這一範式的變化,提供有關新特性的基本細節,並展示如何從舊有的編碼方式過渡到改進的風格。



在本書中,您將看到流行的設計模式,如裝飾者模式、建構者模式和策略模式,如何生動地解決常見的設計問題,但過程中幾乎不需要繁瑣的儀式和努力。掌握這些新能力後,Java 中的函數式編程 將幫助您掌握在早期版本的 Java 中難以實現的設計技術。您將看到如何獲得尾調優化、記憶化和輕鬆並行化技術的好處。



Java 8 將改變您編寫應用程式的方式。如果您渴望利用語言中的新特性,這本書就是為您而寫的。



您需要的:



需要 Java 8 及支援 lambda 表達式的 JDK,以便使用本書中的概念和範例。