This is the code repository for Hands-On Functional Programming with Typescript, published by Packt.
Explore functional and reactive programming to create robust and testable TypeScript applications
Functional programming is is a very powerful programming paradigm that can help us to write better code. However, learning functional programming is complicated and the existing literature is often too complex for beginners.This book is a 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.
This book covers the following exciting features:
The pros and cons of functional programming while compared against object oriented and imperative programming
Build real-world functional-reactive web applications with React + MobX and Cycle.js
Principles, patterns and best practices of reactive programming such as observers, observables and event streams
How to use Lazy.js to help improve the performance of our applications
The working of functional optics with monocle-ts
The category theory functional data structures such as the Maybe, Just and Monad
Use functions as values so we can pass them as arguments to other functions
If you feel this book is for you, get your copy today!
All of the code is organized into folders. For example, Chapter02.
The code will look like the following:
let greetUnnamed: (name: string) => string;
greetUnnamed = function(name: string): string {
return 'Hi! ${name}';
};
Following is what you need for this book: 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.
With the following software and hardware list you can run all code files present in the book (Chapter 1-12).
Chapter | Software required | OS required |
---|---|---|
1-10 | Visual Studio Code 1.30, Node.js 10.15.0, TypeScript 3.2 | Windows, Linux, and OSX |
We also provide a PDF file that has color images of the screenshots/diagrams used in this book. Click here to download it.
Remo H Jansen lives in Dublin, Ireland, where he works as the managing director of Wolk Software Limited and as a part-time lecturer at CCT College Dublin. Remo is a Microsoft MVP and an active member of the TypeScript community. He is the author of Learning TypeScript 2.x, organizes the Dublin TypeScript and Dublin OSS meetups, writes a blog, and maintains some open source projects on GitHub. Remo is available for conference talks, independent consulting, and corporate training services opportunities.
TypeScript: Modern JavaScript Development
Click here if you have any feedback or suggestions.