Book Image

Mastering JavaScript Functional Programming

By : Federico Kereki
Book Image

Mastering JavaScript Functional Programming

By: Federico Kereki

Overview of this book

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 (22 chapters)
Title Page
About the Author
About the Reviewer
Customer Feedback
Connecting Functions - Pipelining and Composition
Answers to Questions

What are Design Patterns?

One of the most relevant books in software engineering was design patterns: Elements of Reusable Object-Oriented Software, 1994, written by theGoF (Gang of Four): Erich Gamma, Richard Helm, Ralph Johnson, and John Vlissides. This book presented about two dozen different OOP patternsand has been recognized as a highly important book in computer science.


Patterns are actually a concept from architectural design, originally defined by an architect, Christopher Alexander.

In software terms, a design pattern is a generally applicable, reusable solution, to a usually seen, common problem in software design. Rather than a specific, finished and coded design, it's a description of a solution (the word templateis also used) that can solve a given problem that appears in many contexts. Given their advantages, design patterns are on their own best practices, which can be used by developers working with different kinds of systems, programming languages, and environments...