Mastering JavaScript Functional Programming - Third Edition: Write clean, robust, and maintainable web and server code using functional JavaScript and
Kereki, Federico
- 出版商: Packt Publishing
- 出版日期: 2023-04-28
- 售價: $1,500
- 貴賓價: 9.5 折 $1,425
- 語言: 英文
- 頁數: 614
- 裝訂: Quality Paper - also called trade paper
- ISBN: 1804610135
- ISBN-13: 9781804610138
-
相關分類:
JavaScript
立即出貨 (庫存=1)
相關主題
商品描述
Apply functional programming techniques to write testable terser code for frontend and backend development with improved clarity, concurrency, and performance
Purchase of the print or Kindle book includes a free PDF eBook
Key Features
- Apply functional programming concepts and techniques to everyday JavaScript or TypeScript programming
- Master functional programming in JavaScript and TypeScript to solve real-world development problems
- Apply functional programming to get better testable programs with higher modularity and reusability
Book Description
Functional programming is a programming paradigm that uses functions for developing software. This book is filled with examples that enable you to leverage the latest JavaScript and TypeScript versions to produce modern and clean code, as well as teach you to how apply functional programming techniques to develop more efficient algorithms, write more concise code, and simplify unit testing.
This book provides comprehensive coverage of the major topics in functional programming to produce shorter, clearer, and testable programs. You'll begin by getting to grips with writing and testing pure functions, reducing side effects, as well as other key features to make your applications functional in nature. The book specifically explores techniques to simplify coding, apply recursion, perform high-level coding, learn ways to achieve immutability, implement design patterns, and work with data types.
By the end of this book, you'll have developed the practical programming skills needed to confidently enhance your applications by adding functional programming to wherever it's most suitable.
What you will learn
- Understand when to use functional programming versus classic object-oriented programming
- Use declarative coding instead of imperative coding for clearer, more understandable code
- Know how to avoid side effects and create more reliable code with closures and immutable data
- Use recursion to help design and implement more understandable solutions to complex problems
- Define functional programing data types with or without TypeScript, add type checking, and implement immutability
- Apply advanced containers to get better structures to tackle errors and implement async programming
Who this book is for
If you are a JavaScript or TypeScript developer looking to enhance your programming skills, then this book is for you. The book applies to both frontend developers working with frameworks such as React, Vue, or Angular as well as backend developers using Node.js or Deno.
商品描述(中文翻譯)
應用函數式編程技術,以改善代碼的清晰度、並行性和性能,編寫可測試的簡潔代碼,適用於前端和後端開發。
購買印刷版或Kindle電子書,即可免費獲得PDF電子書。
主要特點:
- 應用函數式編程概念和技術於日常JavaScript或TypeScript編程。
- 掌握JavaScript和TypeScript中的函數式編程,解決現實世界的開發問題。
- 應用函數式編程,獲得更好的可測試程序,具有更高的模塊化和可重用性。
書籍描述:
函數式編程是一種使用函數開發軟件的編程範式。本書充滿了示例,讓您能夠利用最新的JavaScript和TypeScript版本,產生現代且乾淨的代碼,並教您如何應用函數式編程技術來開發更高效的算法,編寫更簡潔的代碼,簡化單元測試。
本書全面介紹了函數式編程的主要主題,以產生更短、更清晰、可測試的程序。您將首先學習編寫和測試純函數,減少副作用,以及其他關鍵功能,使您的應用程序具有函數式特性。本書特別探討了簡化編碼的技巧,應用遞歸,進行高級編碼,學習實現不可變性,實現設計模式和處理數據類型的方法。
通過閱讀本書,您將開發出實用的編程技能,自信地通過將函數式編程應用於最適合的地方來增強應用程序。
學到的內容:
- 理解何時使用函數式編程而不是傳統的面向對象編程。
- 使用聲明式編碼而不是命令式編碼,編寫更清晰、更易理解的代碼。
- 了解如何避免副作用,使用閉包和不可變數據創建更可靠的代碼。
- 使用遞歸幫助設計和實現更易理解的解決複雜問題的方法。
- 定義函數式編程數據類型,無論是否使用TypeScript,添加類型檢查並實現不可變性。
- 應用高級容器,獲得更好的結構來處理錯誤並實現異步編程。
本書適合對JavaScript或TypeScript開發人員來說,如果您想提升編程技能,那麼本書適合您。本書適用於前端開發人員,使用React、Vue或Angular等框架,以及後端開發人員,使用Node.js或Deno。
目錄大綱
1. Becoming Functional - Several Questions
2. Thinking Functionally - A First Example
3. Starting Out with Functions – A Core Concept
4. Behaving Properly - Pure Functions
5. Programming Declaratively – A Better Style
6. Producing Functions – Higher-Order Functions
7. Transforming Functions – Currying and Partial Application
8. Connecting Functions – Pipelining, Composition, and More
9. Designing Functions – Recursion
10. Ensuring Purity – Immutability
11. Implementing Design Patterns – The Functional Way
12. Building Better Containers – Functional Data Types
目錄大綱(中文翻譯)
1. 成為函數式編程 - 幾個問題
2. 函數式思維 - 第一個例子
3. 函數起步 - 核心概念
4. 正確行為 - 純函數
5. 声明式編程 - 更好的風格
6. 生成函數 - 高階函數
7. 轉換函數 - 柯里化和部分應用
8. 連接函數 - 管道、組合等
9. 設計函數 - 遞歸
10. 確保純凈 - 不可變性
11. 實現設計模式 - 函數式方法
12. 構建更好的容器 - 函數式數據類型