Hands-On Functional Programming with TypeScript
- Length: 210 pages
- Edition: 1
- Language: English
- Publisher: Packt Publishing
- Publication Date: 2019-01-30
- ISBN-10: 1788831438
- ISBN-13: 9781788831437
- Sales Rank: #1085526 (See Top 100 Books)
Hands-On Functional Programming with TypeScript: Explore functional and reactive programming to create robust and testable TypeScript applications
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