Book Image

Beginning Modern JavaScript Development with Microservices, WebRTC, and React

By : Zsolt Nagy
Book Image

Beginning Modern JavaScript Development with Microservices, WebRTC, and React

By: Zsolt Nagy

Overview of this book

JavaScript has now become a universal development language. Whilst offering great benefits, the complexity of the entire ecosystem can be overwhelming. In this course, we will take a look at the libraries in JavaScript that aid in building applications that have a microservices-based architecture, have features like audio and video calling, real-time score updates, multi-faceted search options and more. We will not only look at building these applications but also explore a number of industry-standard best practices. With coverage of both server-side and front-end development, this course will provide attendees with the skills required to develop cutting-edge web applications that stand the test of time. The code bundle for this course is available at https://github.com/PacktPublishing/Beginning-Modern-JavaScript-Development-with-Microservices-WebRTC-and-React
Table of Contents (7 chapters)
Chapter 4
Functional Reactive Programming
Content Locked
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