Select an Option
What's new
Foundation Lab
ATC
Software Engineering Concepts: Recursion Tutorial
There's a popular idiom in software engineering: in order to understand recursion, you must first understand recursion. This lab provides an environment for practicing writing recursive algorithms for a few challenging examples. Starting with a simple case of calculating the factorial of a number, you will be guided through the process of writing tests to define the behavior (Test-Driven Development or TDD) and then determining the base case and recursive step to solve the problem. You will then use what you have learned to solve the more challenging cases of calculating the Fibonacci sequence, and solving the "Tower of Hanoi" puzzle using recursive algorithms.
This lab uses the programming language TypeScript, so some familiarity with TypeScript or JavaScript (ECMA Script 2016) will be helpful to complete the lab. There are code samples throughout the documentation that will help you along, and checkpoints included for you to check out working code if necessary.
Lab
Foundation Lab
33 launches
Node.js
Using Mock Service Worker to Improve Jest Unit Tests
Mock Service Worker (MSW) improves unit tests of components that make API calls by defining mocks at the network level instead of mocking our own custom code. Better still, we get that benefit while also making our test code smaller, easier to read and easier to reuse.
Article
Aug 5, 2021
11 min read
Node.js
What Is CORS (Cross-Origin Resource Sharing)?
Why do I get a CORS error on my website? What does it mean when a client needs us to implement CORS?
Article
Dec 10, 2020
5 min read
Node.js
Using Jest to Run Integration Tests
Jest is a popular unit test framework that can easily be extended to include integration tests. We'll discuss writing an integration framework in a Node environment backed by a MySQL database.
Article
Sep 29, 2020
6 min read
Foundation Lab
ATC
Turning a Website Into a Progressive Web App
In this lab you turn a website into a Progressive Web Application, this way it can run on a edge device without an Internet connection.
Lab
Foundation Lab
70 launches