In this tutorial we'll be building off of the previous tutorial updating our user prompt to a more familiar web UI—forms.
Learning a new skill is difficult. It’s easy to give up and it’s easy to beat yourself up. So this week and I want to take a quick break from coding to offer you some words of encouragement. Hopefully this will help you solidify your drive to learn how to program.
In this tutorial we're going to take a look at automated testing. Automated testing is a way for us to automate the testing of our code—something we've been doing manually up until this point. We’ll be taking a test-driven development (TDD) approach meaning we’ll write our tests first. These tests will initially be failing (referred to as red in TDD) because the actual code hasn’t been written yet. Then we’ll write the code, run the test again, and (hopefully) verify that our tests are passing (referred to as green in TDD).
Up until this point we've been calling functions (also referred to as methods) like console.log() and .charAt(). In this tutorial we're going to switch from calling functions to writing them as well.
When I first started learning how to program I remember taking a lot of time to research my sources before I started. I would ask myself questions like: Who is this person? Do they have a resume with credible experience and projects? Do other people enjoy this person's tutorials? What is their teaching style? How are they different from other teachers? Are they committed to this project or will these tutorials stop coming in a month? So to help you I'm going to answer these questions for you upfront.