Mastering JavaScript Functional Programming
“Mastering JavaScript Functional Programming” delves into the intricacies of functional programming in JavaScript. The document explores how to leverage functional programming concepts to write more concise, readable, and maintainable code. It covers topics such as higher-order functions, pure functions, immutability, and functional composition. By mastering these concepts, developers can enhance their JavaScript skills and design robust, scalable applications. The document aims to provide a comprehensive guide for developers looking to harness the power of functional programming paradigms within the JavaScript ecosystem.
Thinking Functionally – A First Example
In Chapter 1 , Becoming Functional , we went over what FP is, mentioned some advantages of applying it, and listed some tools we’d need in JavaScript. For now, let’s leave the theory behind and start...
📚 Read more at Mastering JavaScript Functional Programming🔎 Find similar documents
Designing Functions – Recursion
In Chapter 8 , Connecting Functions , we considered yet more ways to create new functions out of combining previous existing ones. Here, we will get into a different theme: how to design and write fu...
📚 Read more at Mastering JavaScript Functional Programming🔎 Find similar documents
Bibliography
The following texts are freely available online: ECMA-262: ECMAScript 2022 Language Specification , latest edition (currently the 13 th ) at www.ecma-international.org/ecma-262/ . This provides the o...
📚 Read more at Mastering JavaScript Functional Programming🔎 Find similar documents
Building Better Containers – Functional Data Types
In Chapter 11 , Implementing Design Patterns , we went over how to use functions to achieve different results. In this chapter, we will look at data types from a functional point of view. We’ll be co...
📚 Read more at Mastering JavaScript Functional Programming🔎 Find similar documents
Connecting Functions – Pipelining, Composition, and More
In Chapter 7 , Transforming Functions , we looked at ways to build new functions by applying higher-order functions. In this chapter, we will go to the core of FP and learn how to create sequences of...
📚 Read more at Mastering JavaScript Functional Programming🔎 Find similar documents
Ensuring Purity – Immutability
In Chapter 4 , Behaving Properly , when we considered pure functions and their advantages, we saw that side effects such as modifying a received argument or a global variable were frequent causes of ...
📚 Read more at Mastering JavaScript Functional Programming🔎 Find similar documents
Programming Declaratively – A Better Style
Up to now, we haven’t really been able to appreciate the possibilities of functional programming ( FP ) as it pertains to working in a higher-level, declarative fashion. In this chapter, we will corr...
📚 Read more at Mastering JavaScript Functional Programming🔎 Find similar documents
Producing Functions – Higher-Order Functions
In Chapter 5 , Programming Declaratively , we worked with some declarative code so that we could gain understandability and more compact, shorter code. In this chapter, we will go further toward high...
📚 Read more at Mastering JavaScript Functional Programming🔎 Find similar documents
Other Books You May Enjoy
If you enjoyed this book, you may be interested in these other books by Packt: Clean Code in JavaScript James Padolsey ISBN: 978-1-78995-764-8 Understand the true purpose of code and the problems it ...
📚 Read more at Mastering JavaScript Functional Programming🔎 Find similar documents
Altering a function’s behavior
In the previous section, we considered some ways of wrapping functions so that they maintain their original functionality, even though they’ve been enhanced in some way. Now, we’ll turn to modifying ...
📚 Read more at Mastering JavaScript Functional Programming🔎 Find similar documents
Becoming Functional – Several Questions
Functional programming (or FP ) has been around since the earliest days of computing and is going through a sort of revival because of its increased use with several frameworks and libraries, most pa...
📚 Read more at Mastering JavaScript Functional Programming🔎 Find similar documents
Transforming Functions – Currying and Partial Application
In Chapter 6 , Producing Functions , we saw several ways of manipulating functions to get new versions with some changes in their functionality. In this chapter, we will go into a particular kind of ...
📚 Read more at Mastering JavaScript Functional Programming🔎 Find similar documents