Mastering JavaScript Functional Programming

Master Functional Programming techniques with this comprehensive guide for writing cleaner, safer, high-performing JavaScript codes
Preview in Mapt

Mastering JavaScript Functional Programming

Federico Kereki

Master Functional Programming techniques with this comprehensive guide for writing cleaner, safer, high-performing JavaScript codes
Mapt Subscription
FREE
$29.99/m after trial
eBook
$25.20
RRP $35.99
Save 29%
Print + eBook
$44.99
RRP $44.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$25.20
$44.99
$29.99 p/m after trial
RRP $35.99
RRP $44.99
Subscription
eBook
Print + eBook
Start 14 Day Trial

Frequently bought together


Mastering JavaScript Functional Programming Book Cover
Mastering JavaScript Functional Programming
$ 35.99
$ 25.20
JavaScript: Functional Programming for JavaScript Developers Book Cover
JavaScript: Functional Programming for JavaScript Developers
$ 63.99
$ 44.80
Buy 2 for $35.00
Save $64.98
Add to Cart

Book Details

ISBN 139781787287440
Paperback386 pages

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.

Table of Contents

Chapter 1: Becoming Functional – Several Questions
What is Functional Programming?
Why use Functional Programming?
Is JavaScript functional?
How do we work with JavaScript?
Questions
Summary
Chapter 2: Thinking Functionally - A First Example
The problem - do something only once
Some bad solutions
A functional solution
Questions
Summary
Chapter 3: Starting Out with Functions - A Core Concept
All about functions
Using functions in FP ways
Questions
Summary
Chapter 4: Behaving Properly - Pure Functions
Pure functions
Impure functions
Testing - pure versus impure
Questions
Summary
Chapter 5: Programming Declaratively - A Better Style
Transformations
Logical higher-order functions
Questions
Summary
Chapter 6: Producing Functions - Higher-Order Functions
Wrapping functions
Altering functions
Other higher-order functions
Questions
Summary
Chapter 7: Transforming Functions - Currying and Partial Application
A bit of theory
Currying
Partial application
Partial currying
Final thoughts
Questions
Summary
Chapter 8: Connecting Functions - Pipelining and Composition
Pipelining
Composing
Questions
Summary
Chapter 9: Designing Functions - Recursion
Using recursion
Recursion techniques
Questions
Summary
Chapter 10: Ensuring Purity - Immutability
The straightforward JS way
Persistent data structures
Questions
Summary
Chapter 11: Implementing Design Patterns - The Functional Way
What are Design Patterns?
Object-oriented design patterns
Functional design patterns
Questions
Summary
Chapter 12: Building Better Containers - Functional Data Types
Data types
Containers
Functions as data structures
Questions
Summary

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

Authors

Table of Contents

Chapter 1: Becoming Functional – Several Questions
What is Functional Programming?
Why use Functional Programming?
Is JavaScript functional?
How do we work with JavaScript?
Questions
Summary
Chapter 2: Thinking Functionally - A First Example
The problem - do something only once
Some bad solutions
A functional solution
Questions
Summary
Chapter 3: Starting Out with Functions - A Core Concept
All about functions
Using functions in FP ways
Questions
Summary
Chapter 4: Behaving Properly - Pure Functions
Pure functions
Impure functions
Testing - pure versus impure
Questions
Summary
Chapter 5: Programming Declaratively - A Better Style
Transformations
Logical higher-order functions
Questions
Summary
Chapter 6: Producing Functions - Higher-Order Functions
Wrapping functions
Altering functions
Other higher-order functions
Questions
Summary
Chapter 7: Transforming Functions - Currying and Partial Application
A bit of theory
Currying
Partial application
Partial currying
Final thoughts
Questions
Summary
Chapter 8: Connecting Functions - Pipelining and Composition
Pipelining
Composing
Questions
Summary
Chapter 9: Designing Functions - Recursion
Using recursion
Recursion techniques
Questions
Summary
Chapter 10: Ensuring Purity - Immutability
The straightforward JS way
Persistent data structures
Questions
Summary
Chapter 11: Implementing Design Patterns - The Functional Way
What are Design Patterns?
Object-oriented design patterns
Functional design patterns
Questions
Summary
Chapter 12: Building Better Containers - Functional Data Types
Data types
Containers
Functions as data structures
Questions
Summary

Book Details

ISBN 139781787287440
Paperback386 pages
Read More

Read More Reviews

Recommended for You

JavaScript: Functional Programming for JavaScript Developers Book Cover
JavaScript: Functional Programming for JavaScript Developers
$ 63.99
$ 44.80
Mastering Functional JavaScript Libraries [Video] Book Cover
Mastering Functional JavaScript Libraries [Video]
$ 124.99
$ 106.25
Augmented Reality for JavaScript Developers [Video] Book Cover
Augmented Reality for JavaScript Developers [Video]
$ 124.99
$ 106.25
JavaScript Choice Made Easy - Angular v. React v. Vue [Video] Book Cover
JavaScript Choice Made Easy - Angular v. React v. Vue [Video]
$ 124.99
$ 106.25
The complete JavaScript developer: MEAN stack zero-to-hero [Video] Book Cover
The complete JavaScript developer: MEAN stack zero-to-hero [Video]
$ 73.99
$ 62.90
Mastering JavaScript Object-Oriented Programming Book Cover
Mastering JavaScript Object-Oriented Programming
$ 35.99
$ 25.20