Hold on to your hats because we're really going to get into the functional mind-set now.
In this chapter, we're going to do the following:
You may have noticed a few concepts that were brought up in the last chapter when dealing with functional libraries for JavaScript, but not in , Fundamentals of Functional Programming. Well, that was for a reason! Compositions, currying, partial application, and more. Let's explore why and how these libraries implemented those concepts.
Functional programming can come in a variety of flavors and patterns. This chapter will cover many different styles of functional programming:
This chapter, however, will be as style-unbiased as possible. Without leaning too hard on one style of functional programming over another, the overall goal is to show that there are better ways to write code than what is often accepted as the correct and only way. Once you free your mind about the preconceptions of what is the right way and what is not the right way to write code, you can do whatever you want. When you just write code with childlike abandon for no reason other than the fact that you like it and when you're not concerned about conforming to the traditional way of doing things, then the possibilities are endless.