Chapter 4
Functional Reactive Programming
Section 3
Functional Programming in a Nutshell
Before we get into FRP, it's necessary to have basic knowledge about functional programming. This video explains that functional programming is a style of writing code in which we use only pure function calls (including recursion) instead of loops and conditionals, and data is immutable. Let us begin with: - Advantages and disadvantages of immutable data - Advantages of pure functions - Functional programming with JavaScript - Helper functions - EventStreams - Properties - FRP using Bacon.js - Setting up the project - Bacon.js APIs - Merging, filtering, and transforming EventStreams and properties - Using the map() function