Hands-On Functional Programming with TypeScript: Explore functional and reactive programming to create robust and testable TypeScript applications
Remo H. Jansen
- 出版商: Packt Publishing
- 出版日期: 2019-01-30
- 售價: $1,640
- 貴賓價: 9.5 折 $1,558
- 語言: 英文
- 頁數: 210
- 裝訂: Paperback
- ISBN: 1788831438
- ISBN-13: 9781788831437
-
相關分類:
JavaScript、TypeScript
海外代購書籍(需單獨結帳)
相關主題
商品描述
Discover the power of functional programming, lazy evaluation, monads, concurrency, and immutability to create succinct and expressive implementations
Key Features
- Get a solid understanding of how to apply functional programming concepts in TypeScript
- Explore TypeScript runtime features such as event loop, closures, and Prototypes
- Gain deeper knowledge on the pros and cons of TypeScript
Book Description
Functional programming is a powerful programming paradigm that can help you to write better code. However, learning functional programming can be complicated, and the existing literature is often too complex for beginners. This book is an approachable introduction to functional programming and reactive programming with TypeScript for readers without previous experience in functional programming with JavaScript, TypeScript , or any other programming language.
The book will help you understand the pros, cons, and core principles of functional programming in TypeScript. It will explain higher order functions, referential transparency, functional composition, and monads with the help of effective code examples. Using TypeScript as a functional programming language, you'll also be able to brush up on your knowledge of applying functional programming techniques, including currying, laziness, and immutability, to real-world scenarios.
By the end of this book, you will be confident when it comes to using core functional and reactive programming techniques to help you build effective applications with TypeScript.
What you will learn
- Understand the pros and cons of functional programming
- Delve into the principles, patterns, and best practices of functional and reactive programming
- Use lazy evaluation to improve the performance of applications
- Explore functional optics with Ramda
- Gain insights into category theory functional data structures such as Functors and Monads
- Use functions as values, so that they can be passed as arguments to other functions
Who this book is for
This book is designed for readers with no prior experience of functional programming with JavaScript, TypeScript or any other programming language. Some familiarity with TypeScript and web development is a must to grasp the concepts in the book easily.
Table of Contents
- Functional programming fundamentals
- Mastering functions
- Mastering asynchronous programming
- The runtime: The event loop and the this operator
- The runtime: Prototypes and closures
- Functional programming techniques
- Category theory
- Optics, immutability, and laziness
- Functional reactive programming
- Real-world functional programming
- Directory of TyprScript FP libraries
- FP learning roadmap from novice to expert
商品描述(中文翻譯)
發現函數式編程、惰性求值、單子、並發性和不可變性的威力,以創建簡潔和表達性的實現
主要特點
- 深入了解如何在TypeScript中應用函數式編程概念
- 探索TypeScript運行時功能,如事件循環、閉包和原型
- 更深入地了解TypeScript的優點和缺點
書籍描述
函數式編程是一種強大的編程範式,可以幫助您編寫更好的代碼。然而,學習函數式編程可能很複雜,現有的文獻對初學者來說往往過於複雜。本書是一本易於理解的函數式編程和反應式編程的介紹,適合沒有JavaScript、TypeScript或其他編程語言函數式編程經驗的讀者。
本書將幫助您了解TypeScript中函數式編程的優點、缺點和核心原則。它將通過有效的代碼示例解釋高階函數、引用透明度、函數組合和單子。使用TypeScript作為函數式編程語言,您還可以提高對應用函數式編程技術(包括柯里化、惰性和不可變性)到實際場景的知識。
通過閱讀本書,您將能夠自信地使用核心函數式和反應式編程技術,幫助您使用TypeScript構建有效的應用程序。
您將學到什麼
- 了解函數式編程的優點和缺點
- 深入研究函數式和反應式編程的原則、模式和最佳實踐
- 使用惰性求值來提高應用程序的性能
- 使用Ramda進行函數式光學學習
- 深入了解范畴論函數數據結構,如函子和單子
- 將函數用作值,以便將它們作為參數傳遞給其他函數
本書適合對象
本書適合沒有JavaScript、TypeScript或其他編程語言函數式編程經驗的讀者。熟悉TypeScript和Web開發對於輕松理解本書中的概念是必要的。
目錄
- 函數式編程基礎
- 精通函數
- 精通異步編程
- 運行時:事件循環和this運算符
- 運行時:原型和閉包
- 函數式編程技術
- 范畴論
- 光學、不可變性和惰性
- 函數式反應式編程
- 真實世界的函數式編程
- TypeScript函數式編程庫目錄
- 從初學者到專家的函數式編程學習路線圖