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
Remo H. Jansen is a web development engineer, open source contributor, entrepreneur, technology lover, gamer, and Internet enthusiast. Remo is a Microsoft MVP and an active member of the Typescript community. He organizes the Dublin TypeScript and Dublin OSS meetups, writes a blog, and maintains InversifyJS on GitHub. He is Senior Web Engineer at Stellwagen Technology with several years of experience in web-based technologies. He previously worked at the Aon Centre for Innovation and Analytics (ACIA) in Dublin developing analysis applications for the corporate insurance industry. Prior to that, he worked in web development roles in the fund industry, most recently with MoneyMate Group. Remo was awarded the Microsoft Most Valuable Professional (MVP) award in 2016 and he is the author of Learning TypeScript, Learning TypeScript 2.x - Second Edition and TypeScript: Modern JavaScript Development. He has also been the technical reviewer of Mastering TypeScript. Remo is also an active member of the TypeScript and Open Source communities and the organizer of the Dublin Open Source and Dublin TypeScript user groups.