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

Summary


JavaScript has been called the "assembly language of the web," because it's as ubiquitous and unavoidable as x86 assembly. It's the only language that runs on all browsers. It's also flawed, yet referring to it as a low-level language is missing the mark.

Instead, think of JavaScript as the raw coffee beans of the web. Sure, some of the beans are damaged and a few are rotten. But if the good ones are selected, roasted, and brewed by a skilled barista, the beans can be transformed into a brilliant jamocha that cannot be had just once and forgotten. It's consumption becomes a daily custom, life without it would be static, harder to perform, and much less exciting. Some even prefer to enhance the brew with plug-ins and add-ons such as cream, sugar, and cocoa, which complement it very well.

One of JavaScript's biggest critics, Douglas Crawford, was quoted as saying "There are certainly a lot of people who refuse to consider the possibility that JavaScript got anything right. I used to...