Implementing and Testing Applications using Functional JavaScript [Video]

Implementing and Testing Applications using Functional JavaScript [Video]

This video is included in a Mapt subscription
Zsolt Nagy

See how to build and test your application using functional programming
$0.00
$37.50
$29.99p/m after trial
RRP $124.99
Subscription
Video
Start 30 Day Trial
Subscribe and access every Packt eBook & Video.
 
  • 4,000+ eBooks & Videos
  • 40+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 
Preview in Mapt

Video Details

ISBN 139781788291743
Course Length2 hours 36 minutes

Video Description

You will get an in-depth overview of how to handle asynchronous code with promises, generator functions, and the ES2017 async-await construct. These tools will help you set up communication with a server via an API later, when implementing a web application.

Lazy evaluation will allow you to optimize performance of retrieving a collection of data, where you may need to process and retrieve just a fraction of the available elements. This powerful technique will not only allow you to write performant code, but it also makes it possible for you to handle infinite sequences.

We will also implement a web application together, demonstrating the practical usage of most of the features you learned in this course, and in the previous volume of this course, Deep Dive into Functional JavaScript. You will see higher order functions, currying, partial evaluation, recursion, ES6, asynchronous code with promises and ES2017 async-await, and many more language construct and functional programming ideas in practice. While we anchor these techniques into your mind with the repeated practical usage, you will also learn about techniques to write maintainable software: test driven development, top-down design, and bottom-up design. We will use Mocha and ChaiJs to write unit tests for the functional part of the application

Style and Approach

Expect a smooth action-packed course. Your time is valuable, so there’s no clutter. Code examples illustrate all important concepts in the course, and it encourages you to implement them yourself, guided by the course.

Table of Contents

Bridging Functional Programming Theory and Practice
The Course Overview
Functors in JavaScript
Monads
Asynchronous Code and Promises in Depth
Escaping the Pyramid of Doom
ES6 Promises and Functional Programming
Asynchronous Functional Programming with ES6 Generator Functions
Functional Programming with Async-Await
Lazy Evaluation
What Is Lazy Evaluation?
Using ES6 Generator Functions for Evaluating Lazy Sequences
Implementing a Web Application Using Functional Programming
Introduction
Weather App
Application Setup
Bottom-Up Design Using Test Driven Development
Bottom-Up Design and TDD (Continued) –Parsing the Response
Handling Timezones
Getting Weather Data with Promises and Async-Await
Rendering the Weather App
Course Summary and Next Steps

What You Will Learn

  • See how to rewrite nested asynchronous callbacks with generator functions in a linear fashion
  • Simplify your linearized asynchronous code with async functions and the await operator
  • Optimize the performance of your application with lazy evaluation and memoization
  • Understand how to model and use infinite sequences with lazy evaluation
  • Understand theoretical functional programming concepts in practice to understand in-depth theory articles
  • Unit test your functional code with Mocha and Chai using test-driven development
  • Find out how to use top-down and bottom-up design
  • Use a third-party library that simplifies communication with a server via an API
  • See how to set up your development environment, including automated testing
  • Use several refactoring steps to get an idea of how to make your code more maintainable
  • Understand the theoretical background of wrapped sets in jQuery, the map function, and flatMap

Authors

Table of Contents

Bridging Functional Programming Theory and Practice
The Course Overview
Functors in JavaScript
Monads
Asynchronous Code and Promises in Depth
Escaping the Pyramid of Doom
ES6 Promises and Functional Programming
Asynchronous Functional Programming with ES6 Generator Functions
Functional Programming with Async-Await
Lazy Evaluation
What Is Lazy Evaluation?
Using ES6 Generator Functions for Evaluating Lazy Sequences
Implementing a Web Application Using Functional Programming
Introduction
Weather App
Application Setup
Bottom-Up Design Using Test Driven Development
Bottom-Up Design and TDD (Continued) –Parsing the Response
Handling Timezones
Getting Weather Data with Promises and Async-Await
Rendering the Weather App
Course Summary and Next Steps

Video Details

ISBN 139781788291743
Course Length2 hours 36 minutes
Read More

Read More Reviews

Recommended for You

Learning JavaScript Promises: Practical Applications in ES6 and AngularJS [Video] Book Cover
Learning JavaScript Promises: Practical Applications in ES6 and AngularJS [Video]
$ 74.99
$ 22.50
Mastering Functional JavaScript Libraries [Video] Book Cover
Mastering Functional JavaScript Libraries [Video]
$ 124.99
$ 37.50
Universal JavaScript with React, Node, and Redux [Video] Book Cover
Universal JavaScript with React, Node, and Redux [Video]
$ 124.99
$ 37.50
Building Web Apps with jQuery, JavaScript and Bootstrap [Video] Book Cover
Building Web Apps with jQuery, JavaScript and Bootstrap [Video]
$ 124.99
$ 37.50