Mastering JavaScript Functional Programming: In-depth guide for writing robust and maintainable JavaScript code in ES8 and beyond
Authors: Federico Kereki
ISBN-10: 1787287440
ISBN-13: 9781787287440
Publication Date 出版日期: 2017-11-29
Print Length 页数: 386 pages
Book Description
By finelybook
Master Functional Programming techniques with this comprehensive guide for writing cleaner,safer,high-performing JavaScript codes
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
contents
1 Becoming Functional – Several Questions
2 Thinking Functionally – A First Example
3 Starting Out with Functions – A Core Concept
4 Behaving Properly – Pure Functions
5 Programming Declaratively – A Better Style
6 Producing Functions – Higher-Order Functions
7 Transforming Functions – Currying and Partial Application
8 Connecting Functions – Pipelining and Composition
9 Designing Functions – Recursion
10 Ensuring Purity – Immutability
11 Implementing Design Patterns – The Functional Way
12 Building Better Containers – Functional Data Types