Grokking Functional Programming

Plachta, Michal

  • 出版商: Manning
  • 出版日期: 2022-11-08
  • 定價: $2,100
  • 售價: 9.5$1,995
  • 語言: 英文
  • 頁數: 475
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 1617291838
  • ISBN-13: 9781617291838
  • 相關分類: 程式語言軟體工程
  • 立即出貨

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

相關主題

商品描述

There’s no need to fear going functional! This friendly, lively, and engaging guide is perfect for any perplexed programmer. It lays out the principles of functional programming in a simple and concise way that will help you grok what FP is really all about.

In Grokking Functional Programming you will learn:
 

• Designing with functions and types instead of objects
• Programming with pure functions and immutable values
• Writing concurrent programs using the functional style
• Testing functional programs
• Multiple learning approaches to help you grok each new concept


If you’ve ever found yourself rolling your eyes at functional programming, this is the book for you. Open up Grokking Functional Programming and you’ll find functional ideas mapped onto what you already know as an object-oriented programmer. The book focuses on practical aspects from page one. Hands-on examples apply functional principles to everyday programming tasks like concurrency, error handling, and improving readability. Plus, puzzles and exercises let you think and practice what you're learning. You’ll soon reach an amazing “aha” moment and start seeing code in a completely new way.

about the technology

Finally, there’s an easy way to learn functional programming! This unique book starts with the familiar ideas of OOP and introduces FP step-by-step using relevant examples, engaging exercises, and lots of illustrations. You’ll be amazed at how quickly you’ll start seeing software tasks from this valuable new perspective.

about the book

Grokking Functional Programming introduces functional programming to imperative developers. You’ll start with small, comfortable coding tasks that expose basic concepts like writing pure functions and working with immutable data. Along the way, you’ll learn how to write code that eliminates common bugs caused by complex distributed state. You’ll also explore the FP approach to IO, concurrency, and data streaming. By the time you finish, you’ll be writing clean functional code that’s easy to understand, test, and maintain.

商品描述(中文翻譯)

不需要害怕轉向函數式編程!這本友善、生動且引人入勝的指南非常適合任何困惑的程式設計師。它以簡單而簡潔的方式介紹了函數式編程的原則,幫助您真正理解函數式編程的核心。

在《深入理解函數式編程》中,您將學到:
- 使用函數和類型而不是物件進行設計
- 使用純函數和不可變值進行編程
- 使用函數式風格編寫並行程式
- 測試函數式程式
- 多種學習方法,幫助您理解每個新概念

如果您曾對函數式編程感到厭煩,這本書非常適合您。打開《深入理解函數式編程》,您會發現函數式思想與您作為面向對象程式設計師已經熟悉的內容相結合。本書從第一頁開始著重於實用方面。實例應用函數式原則於日常程式設計任務,如並行處理、錯誤處理和提高可讀性。此外,謎題和練習讓您思考並實踐所學。您很快就會達到驚人的「啊哈」時刻,並以全新的方式看待程式碼。

關於技術

終於有一種簡單的方法來學習函數式編程!這本獨特的書籍從面向對象編程的熟悉概念開始,並使用相關的實例、引人入勝的練習和大量插圖逐步介紹函數式編程。您會驚訝地發現自己很快就能從這個有價值的新角度看待軟體任務。

關於本書

《深入理解函數式編程》將函數式編程介紹給命令式開發者。您將從小型且熟悉的編碼任務開始,這些任務揭示了基本概念,如編寫純函數和使用不可變數據。在此過程中,您將學習如何編寫能消除由複雜分佈狀態引起的常見錯誤的程式碼。您還將探索函數式編程對於IO、並行處理和數據流的方法。最後,您將能夠編寫乾淨、易於理解、測試和維護的函數式程式碼。

作者簡介

Michal Plachta started using Scala commercially in 2014 and has been an active contributor to the Scala and JVM communities since. He regularly speaks at conferences, runs workshops, and organizes meetups to help others become better at functional programming. You can find his blog at michalplachta.com.

作者簡介(中文翻譯)

Michal Plachta於2014年開始在商業上使用Scala,並自此以來一直是Scala和JVM社群的積極貢獻者。他經常在會議上演講,舉辦工作坊,並組織聚會,以幫助他人在函數式編程方面取得更好的成果。您可以在michalplachta.com找到他的部落格。

目錄大綱

Part 1  The functional toolkit
1 Learning functional programming
2 Pure functions
3 Immutable values
4 Functions as values
Part 2  Functional programs
5 Sequential programs
6 Error handling
7 Requirements as types
8 IO as values
9 Streams as values
10 Concurrent programs
Part 3  Applied functional programming
11 Designing functional programs
12 Testing functional programs

目錄大綱(中文翻譯)

第一部分 功能工具包
1 學習函數式編程
2 純函數
3 不可變值
4 函數作為值

第二部分 函數式程式
5 連續程式
6 錯誤處理
7 類型需求
8 值為輸入輸出
9 值為流
10 並行程式

第三部分 應用函數式編程
11 設計函數式程式
12 測試函數式程式