Book Image

Mastering Functional JavaScript Libraries [Video]

By : Zsolt Nagy
Book Image

Mastering Functional JavaScript Libraries [Video]

By: Zsolt Nagy

Overview of this book

<p><span id="description" class="sugar_field">The goal of this course is to give you hands-on experience with JavaScript functional programming libraries. You will discover throughout the course how easy it is to apply functional programming concepts in practice. </span></p> <p><span id="description" class="sugar_field">In the first section, you will learn how different functional programming libraries implement automatic currying, partial application, lazy evaluation, higher-order functions, promises, cloning, chaining, function composition, and immutable data structures. You will execute code in Underscore.js, LoDash, Lazy.js, Ramda.js, Immutable.js, Scala, Elm, PureScript, and ClojureScript.</span></p> <p><span id="description" class="sugar_field">In order to learn how to use functional programming libraries in depth, in the second and third sections you will learn how to implement two web-applications using LoDash and RxJS.</span></p> <p><span id="description" class="sugar_field">The LoDash application shows you how to process matrixes with LoDash, by implementing a Sudoku game in JavaScript. We will model the Sudoku table with LoDash, collect all the constraints of the table, and validate it. The Sudoku table will be rendered using Underscore templating, and DOM events will help you manipulate state space with user interactions.</span></p> <p><span id="description" class="sugar_field">The third section introduces functional reactive programming using RxJS. Functional reactive programming deserves its own section, as it is a comprehensive topic providing you with a different developer experience from most of the other functional programming libraries. After learning the fundamentals of functional reactive programming and RxJS, you will learn how to put the theory into practice by implementing a web application. This web application uses the Slack API to monitor the activity of different Slack channels. Beyond submitting Ajax requests, you will also learn how to use web sockets to display live updates on your site using event streams.</span></p> <h2><span class="sugar_field">Style and Approach</span></h2> <p><span class="sugar_field"><span id="trade_selling_points_c" class="sugar_field">Expect a smooth action-packed course. Your time is valuable, so expect no clutter. Code examples will illustrate all important concept in the course and encourage you to implement them yourself, guided by the course. You will also learn how to implement web applications that go beyond small introductory examples. This course will show you how to get started with implementing web applications on your own, how to make modeling decisions, and how to structure your code.</span></span></p>
Table of Contents (3 chapters)
Chapter 2
LoDash in Practice
Content Locked
Section 2
Modelling Field Constraints
After collecting all the nine tuples of the Sudoku table, we will implement a function that checks whether all constraints of the Sudoku table are satisfied. - Collect all the nine tuples of the Sudoku table - Implement the all_distinct check on one nine tuple - Determine whether all the field constraints are satisfied