Functional Python Programming
暫譯: 函數式 Python 程式設計
Steven Lott
- 出版商: Packt Publishing
- 出版日期: 2015-01-31
- 售價: $2,200
- 貴賓價: 9.5 折 $2,090
- 語言: 英文
- 頁數: 360
- 裝訂: Paperback
- ISBN: 1784396990
- ISBN-13: 9781784396992
-
相關分類:
Python、程式語言
海外代購書籍(需單獨結帳)
相關主題
商品描述
Key Features
- Implement common functional programming design patterns and techniques in Python
- Learn how to choose between imperative and functional approaches based on expressiveness, clarity, and performance
- Apply functional Python to common Exploratory Data Analysis (EDA) programming problems
Book Description
Python’s easy-to-learn and extensible abilities offer a number of functional programming features for you to bring into your workflow, especially in the realm of data science.
If you’re a Python developer who wants to discover how to take the power of functional programming and bring it into your own programs then this book is essential for you, even if you know next to nothing about the paradigm. Starting with a general overview of functional concepts you’ll explore common functional features such as first-class and higher-order functions, pure functions and more, and how these are accomplished in Python to give you the core foundations you’ll build upon. After that, you’ll discover common functional optimizations for Python to help your apps reach even higher speeds. You'll also explore data preparation techniques and data exploration in depth, along with learning how the Python standard library fits the functional programming model. Finally, to top off your journey into the world of function Python you’ll at look at the PyMonad project and some larger examples to put everything into perspective.
With Functional Python Programming by your side you’ll understand the core concepts of function Python, its impact on the programming workflow, and how to implement it in Python, giving you the ability to take your applications to an even higher level.
What you will learn
- Use Python's generator functions and generator expressions to work with collections in a non-strict (or lazy) manner
- Utilize Python library modules including itertools, functools, multiprocessing, and concurrent.futures for efficient functional programs
- Use Python strings with object-oriented suffix notation and prefix notation
- Avoid stateful classes by making use of families of tuples
- Design and implement decorators to create composite functions
- Use functions like max(), min(), map(), filter(), and sorted()
- Write advanced higher-order functions
About the Author
Steven F. Lott has been programming since the 70s, when computers were large, expensive, and rare. As a contract software developer and architect, he has worked on hundreds of projects, from very small to very large. He's been using Python to solve business problems for over 10 years.
Table of Contents
- Introducing Functional Programming
- Introducing Some Functional Features
- Functions, Iterators, and Generators
- Working with Collections
- Higher-order Functions
- Recursions and Reductions
- Additional Tuple Techniques
- The Itertools Module
- More Itertools Techniques
- The Functools Module
- Decorator Design Techniques
- The Multiprocessing and Threading Modules
- Conditional Expressions and the Operator Module
- The Pymonad Library
- A Functional Approach to Web Services
- Optimizations and Improvements
商品描述(中文翻譯)
#### 主要特點
- 在 Python 中實現常見的函數式程式設計設計模式和技術
- 學習如何根據表達能力、清晰度和性能在命令式和函數式方法之間進行選擇
- 將函數式 Python 應用於常見的探索性資料分析 (EDA) 程式問題
#### 書籍描述
Python 的易學性和可擴展性為您提供了多種函數式程式設計功能,特別是在資料科學領域,讓您能夠將其融入工作流程中。
如果您是一位 Python 開發者,想要探索如何將函數式程式設計的力量帶入自己的程式中,那麼這本書對您來說是必不可少的,即使您對這種範式幾乎一無所知。從函數式概念的一般概述開始,您將探索常見的函數式特性,例如一級函數和高階函數、純函數等,以及這些在 Python 中是如何實現的,為您提供基礎知識。之後,您將發現 Python 的常見函數式優化,幫助您的應用程式達到更高的速度。您還將深入探索資料準備技術和資料探索,並學習 Python 標準庫如何適應函數式程式設計模型。最後,為了讓您更好地理解函數式 Python 的世界,您將查看 PyMonad 專案和一些更大的範例,以便將所有內容放在正確的視角中。
有了《Functional Python Programming》作為您的指導,您將理解函數式 Python 的核心概念、它對程式設計工作流程的影響,以及如何在 Python 中實現它,讓您的應用程式達到更高的水平。
#### 您將學到的內容
- 使用 Python 的生成器函數和生成器表達式以非嚴格(或延遲)方式處理集合
- 利用 Python 庫模組,包括 itertools、functools、multiprocessing 和 concurrent.futures 來編寫高效的函數式程式
- 使用帶有物件導向後綴表示法和前綴表示法的 Python 字串
- 通過使用元組族來避免有狀態的類別
- 設計和實現裝飾器以創建組合函數
- 使用 max()、min()、map()、filter() 和 sorted() 等函數
- 編寫高級高階函數
#### 關於作者
**Steven F. Lott** 自 70 年代以來一直在編程,當時的電腦龐大、昂貴且稀有。作為一名合約軟體開發者和架構師,他參與了數百個項目,從非常小到非常大。他已經使用 Python 解決商業問題超過 10 年。
#### 目錄
1. 介紹函數式程式設計
2. 介紹一些函數式特性
3. 函數、迭代器和生成器
4. 處理集合
5. 高階函數
6. 遞迴和歸納
7. 附加元組技術
8. itertools 模組
9. 更多 itertools 技術
10. functools 模組
11. 裝飾器設計技術
12. multiprocessing 和 threading 模組
13. 條件表達式和 operator 模組
14. Pymonad 庫
15. 函數式網路服務方法
16. 優化和改進