Functional Programming in JavaScript

Unlock the powers of functional programming hidden within JavaScript to build smarter, cleaner, and more reliable web apps
Preview in Mapt

Functional Programming in JavaScript

Dan Mantyla

3 customer reviews
Unlock the powers of functional programming hidden within JavaScript to build smarter, cleaner, and more reliable web apps
Mapt Subscription
FREE
$29.99/m after trial
eBook
$16.80
RRP $23.99
Save 29%
Print + eBook
$29.99
RRP $29.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
$16.80
$29.99
$29.99p/m after trial
RRP $23.99
RRP $29.99
Subscription
eBook
Print + eBook
Start 30 Day Trial

Frequently bought together


Functional Programming in JavaScript Book Cover
Functional Programming in JavaScript
$ 23.99
$ 16.80
JavaScript: Functional Programming for JavaScript Developers Book Cover
JavaScript: Functional Programming for JavaScript Developers
$ 63.99
$ 44.80
Buy 2 for $34.30
Save $53.68
Add to Cart
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 

Book Details

ISBN 139781784398224
Paperback172 pages

Book Description

This is a fast-paced guide that will help you to write real-world applications by utilizing a wide range of functional techniques and styles.

The book first explores the core concepts of functional programming common to all functional languages, with examples of their use in JavaScript. It's followed by a comprehensive roundup of functional programming libraries for JavaScript that minimizes the burden of digging deep into JavaScript to expose a set of tools that makes functional programming not just possible but highly convenient. The book then rounds off with an overview of methods to effectively use and mix functional programming with object-oriented programming.

Table of Contents

Chapter 1: The Powers of JavaScript's Functional Side – a Demonstration
Introduction
The demonstration
The application – an e-commerce website
Functional programming
Summary
Chapter 2: Fundamentals of Functional Programming
Functional programming languages
Working with functions
The functional programmer's toolkit
Summary
Chapter 3: Setting Up the Functional Programming Environment
Introduction
Functional libraries for JavaScript
Development and production environments
Summary
Chapter 4: Implementing Functional Programming Techniques in JavaScript
Partial function application and currying
Function composition
Mostly functional programming
Functional reactive programming
Summary
Chapter 5: Category Theory
Category theory
Functors
Monads
Implementing categories
Summary
Chapter 6: Advanced Topics and Pitfalls in JavaScript
Recursion
Variable scope
Function declarations versus function expressions versus the function constructor
Summary
Chapter 7: Functional and Object-oriented Programming in JavaScript
JavaScript – the multi-paradigm language
JavaScript's object-oriented implementation – using prototypes
Mixing functional and object-oriented programming in JavaScript
Summary

What You Will Learn

  • Separate core logic from the program state to write more maintainable code
  • Replace ugly for loops with pure functions and recursion
  • Simplify code with method chains of pure, higher-order functions
  • Create more reliable code with closures and immutable data
  • Explore lazy evaluation strategies and what they can accomplish
  • Develop more powerful applications with currying and function composition
  • Use promises, functors, monads, and function factories

Authors

Table of Contents

Chapter 1: The Powers of JavaScript's Functional Side – a Demonstration
Introduction
The demonstration
The application – an e-commerce website
Functional programming
Summary
Chapter 2: Fundamentals of Functional Programming
Functional programming languages
Working with functions
The functional programmer's toolkit
Summary
Chapter 3: Setting Up the Functional Programming Environment
Introduction
Functional libraries for JavaScript
Development and production environments
Summary
Chapter 4: Implementing Functional Programming Techniques in JavaScript
Partial function application and currying
Function composition
Mostly functional programming
Functional reactive programming
Summary
Chapter 5: Category Theory
Category theory
Functors
Monads
Implementing categories
Summary
Chapter 6: Advanced Topics and Pitfalls in JavaScript
Recursion
Variable scope
Function declarations versus function expressions versus the function constructor
Summary
Chapter 7: Functional and Object-oriented Programming in JavaScript
JavaScript – the multi-paradigm language
JavaScript's object-oriented implementation – using prototypes
Mixing functional and object-oriented programming in JavaScript
Summary

Book Details

ISBN 139781784398224
Paperback172 pages
Read More
From 3 reviews

Read More Reviews

Recommended for You

Mastering Web Application Development with AngularJS Book Cover
Mastering Web Application Development with AngularJS
$ 26.99
$ 5.40
Object-Oriented JavaScript - Second Edition Book Cover
Object-Oriented JavaScript - Second Edition
$ 29.99
$ 21.00
Mastering JavaScript Design Patterns Book Cover
Mastering JavaScript Design Patterns
$ 26.99
$ 18.90
AngularJS Web Application Development Blueprints Book Cover
AngularJS Web Application Development Blueprints
$ 29.99
$ 21.00
Node.js Design Patterns Book Cover
Node.js Design Patterns
$ 29.99
$ 6.00
Responsive Web Design with HTML5 and CSS3 Book Cover
Responsive Web Design with HTML5 and CSS3
$ 23.99
$ 4.80