Mastering JavaScript Functional Programming
- Length: 386 pages
- Edition: 1
- Language: English
- Publisher: Packt Publishing
- Publication Date: 2017-11-29
- ISBN-10: 1787287440
- ISBN-13: 9781787287440
- Sales Rank: #373286 (See Top 100 Books)
Master Functional Programming techniques with this comprehensive guide for writing cleaner, safer, high-performing JavaScript codes
Key Features
- Become proficient and skilled with Functional Programming in JavaScript to solve real-world development problems
- Successfully apply Functional Programming concepts and techniques to everyday JavaScript programming
- Bring modularity, reusability, testability, and performance to your web apps
Book Description
Functional programming is a programming paradigm for developing software using functions. Learning to use functional programming is a good way to write more concise code, with greater concurrency and performance. The JavaScript language is particularly suited to functional programming.
This book provides comprehensive coverage of the major topics in functional programming with JavaScript to produce shorter, clearer, and testable programs.
You’ll delve into functional programming; including writing and testing pure functions, reducing side-effects, and other features to make your applications functional in nature.
Specifically, we’ll explore techniques to simplify coding, apply recursion for loopless 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 JavaScript skills you need to program functional applications with confidence.
What you will learn
- Create more reliable code with closures and immutable data
- Convert existing methods into pure functions, and loops into recursive methods
- Develop more powerful applications with currying and function composition
- Separate the logic of your system from implementation details
- Implement composition and chaining techniques to simplify coding
- Use functional programming techniques where it makes the most sense
Table of Contents
- Becoming Functional – Several Questions
- Thinking Functionally – A First Example
- Starting Out with Functions – A Core Concept
- Behaving Properly – Pure Functions
- Programming Declaratively – A Better Style
- Producing Functions – Higher-Order Functions
- Transforming Functions – Currying and Partial Application
- Connecting Functions – Pipelining and Composition
- Designing Functions – Recursion
- Ensuring Purity – Immutability
- Implementing Design Patterns – The Functional Way
- Building Better Containers – Functional Data Types