Functional Programming in JavaScript — Few data structures, many operations

Few data structures, many operations This chapter covers: Understanding program control and flow Reasoning efficiently about code and data Unlocking the power of map, reduce and filter Discovering the Lodash.js library and function chains Thinking recursively In this chapter, I’ll introduce you to a few useful and practical operations like map, reduce and filter that … Continue reading Functional Programming in JavaScript — Few data structures, many operations

Functional Programming in JavaScript — Higher Order JavaScript

Higher Order JavaScript This chapter covers Why JavaScript is a suitable functional language JavaScript as a language that enables multi paradigm development Immutability and policies for change Understanding higher-order and first-class functions Exploring the concepts of closures and scopes Practical sue of closures As applications get bigger, so does their complexity. No matter how good … Continue reading Functional Programming in JavaScript — Higher Order JavaScript

Functional Programming in JavaScript — Becoming functional

What is functional programming? In simple terms, functional programming is a software development style that places a major emphasis on the use of functions. What better text to print than the good ol “Hello World”: document.querySelector(‘#msg’).innerHTML = ‘<h1>Hello world</h1>’ This program is simple, but because everything is hardcoded, you can’t use it to display messages … Continue reading Functional Programming in JavaScript — Becoming functional