Book Image

Functional Programming in JavaScript

By : Dan Mantyla
Book Image

Functional Programming in JavaScript

By: Dan Mantyla

Overview of this book

<p>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.</p> <p>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.</p>
Table of Contents (16 chapters)
Functional Programming in JavaScript
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Common Functions for Functional Programming in JavaScript
Glossary of Terms
Index

Introduction


Do we need to know advanced math—category theory, Lambda calculus, polymorphisms—just to write applications with functional programming? Do we need to reinvent the wheel? The short answer to both these questions is no.

In this chapter, we will do our best to survey everything that can impact the way we write our functional applications in JavaScript.

  • Libraries

  • Toolkits

  • Development environments

  • Functional language that compiles to JavaScript

  • And more

Please understand that the current landscape of functional libraries for JavaScript is a very fluid one. Like all aspects of computer programming, the community can change in a heartbeat; new libraries can be adopted and old ones can be abandoned. For instance, during the writing process of this very book, the popular and stable Node.js platform for I/O has been forked by its open source community. Its future is vague.

Therefore, the most important concept to be gained from this chapter is not how to use the current libraries for functional...