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 5
Using the FRP Library – Bacon.js
Content Locked
Section 2
Errors and Exception Handling in Bacon.js
This video explains how Bacon.js library is a library for functional reactive programming. More specifically, it is a library for working with events and dynamic values (which are called Properties in Bacon.js). It provides the Bacon.Error constructor to explicitly mark events or values of EventStreams or properties respectively as errors so that Bacon can identify them and open up a wide variety of other APIs to work with those errors specifically. Let us begin with: - Subscribing to errors - Mapping errors - Retrying a function call - Ending an EventStream or property on error - Handling exceptions