Functional Programming in Java: How Functional Techniques Improve Your Java Programs

Pierre-Yves Saumont

  • 出版商: Manning
  • 出版日期: 2017-01-27
  • 定價: $1,750
  • 售價: 9.5$1,663
  • 語言: 英文
  • 頁數: 472
  • 裝訂: Paperback
  • ISBN: 1617292737
  • ISBN-13: 9781617292736
  • 相關分類: Java 程式語言
  • 相關翻譯: Java 函數式編程 (簡中版)
  • 立即出貨 (庫存 < 4)

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

相關主題

商品描述

Summary

Functional Programming in Java teaches Java developers how to incorporate the most powerful benefits of functional programming into new and existing Java code. You'll learn to think functionally about coding tasks in Java and use FP to make your applications easier to understand, optimize, maintain, and scale.

Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications.

About the Technology

Here's a bold statement: learn functional programming and you'll be a better Java developer. Fortunately, you don't have to master every aspect of FP to get a big payoff. If you take in a few core principles, you'll see an immediate boost in the scalability, readability, and maintainability of your code. And did we mention that you'll have fewer bugs? Let's get started!

About the Book

Functional Programming in Java teaches you how to incorporate the powerful benefits of functional programming into new and existing Java code. This book uses easy-to-grasp examples, exercises, and illustrations to teach core FP principles such as referential transparency, immutability, persistence, and laziness. Along the way, you'll discover which of the new functionally inspired features of Java 8 will help you most.

What's Inside

 

  • Writing code that's easier to read and reason about
  • Safer concurrent and parallel programming
  • Handling errors without exceptions
  • Java 8 features like lambdas, method references, and functional interfaces

About the Reader

Written for Java developers with no previous FP experience.

About the Author

Pierre-Yves Saumont is a seasoned Java developer with three decades of experience designing and building enterprise software. He is an R&D engineer at Alcatel-Lucent Submarine Networks.

Table of Contents

 

  1. What is functional programming?
  2. Using functions in Java
  3. Making Java more functional
  4. Recursion, corecursion, and memoization
  5. Data handling with lists
  6. Dealing with optional data
  7. Handling errors and exceptions
  8. Advanced list handling
  9. Working with laziness
  10. More data handling with trees
  11. Solving real problems with advanced trees
  12. Handling state mutation in a functional way
  13. Functional input/output
  14. Sharing mutable state with actors
  15. Solving common problems functionally

商品描述(中文翻譯)


摘要

Java 函數式編程教導 Java 開發人員如何將函數式編程的最強大優勢融入新的和現有的 Java 代碼中。您將學習在 Java 中以函數式思維來處理編碼任務,並使用函數式編程使您的應用程序更易於理解、優化、維護和擴展。

購買印刷版書籍將包含 Manning Publications 提供的 PDF、Kindle 和 ePub 格式的免費電子書。

關於技術

這裡有一個大膽的說法:學習函數式編程,您將成為一個更好的 Java 開發人員。幸運的是,您不必掌握函數式編程的每個方面,就能獲得巨大的回報。如果您掌握了一些核心原則,您將立即提升代碼的可擴展性、可讀性和可維護性。我們有提到您將減少錯誤嗎?讓我們開始吧!

關於本書

Java 函數式編程教導您如何將函數式編程的強大優勢融入新的和現有的 Java 代碼中。本書使用易於理解的示例、練習和插圖來教授核心函數式編程原則,如引用透明度、不可變性、持久性和惰性。在此過程中,您將發現 Java 8 中的哪些新功能受益最大。

內容簡介

 


  • 編寫更易於閱讀和理解的代碼

  • 更安全的並行和並行編程

  • 處理錯誤而不使用異常

  • Java 8 的功能,如 lambda、方法引用和函數接口

讀者對象

本書針對沒有函數式編程經驗的 Java 開發人員。

作者簡介

Pierre-Yves Saumont 是一位經驗豐富的 Java 開發人員,擁有三十年的企業軟件設計和構建經驗。他是 Alcatel-Lucent Submarine Networks 的研發工程師。

目錄

 


  1. 什麼是函數式編程?

  2. 在 Java 中使用函數

  3. 使 Java 更具函數性

  4. 遞歸、共遞和記憶化

  5. 使用列表處理數據

  6. 處理可選數據

  7. 處理錯誤和異常

  8. 高級列表處理

  9. 使用惰性

  10. 更多使用樹處理數據

  11. 使用高級樹解決實際問題

  12. 以函數式方式處理狀態變化

  13. 函數式輸入/輸出

  14. 使用演員共享可變狀態

  15. 以函數式方式解決常見問題