Debugging Code You Didn't Write

Stephen Gruppetta 20 Lessons 7h Updated intermediate best-practices js tools

Grace, the owner of The Second Draft, an independent bookshop, sends you a note: a shelf count on the staff desk has gone below zero. Then a customer, Nadia, gets a refund that’s 150 pence short. Both bugs sit in code you didn’t write. In this course, you’ll take each report to a fix you can put your name on, with a saved check script that fails before the fix and passes after it. You’ll learn how to:

  • Reproduce a bug report and cut it down to the records that matter
  • Form a hypothesis a check could prove wrong and log values at the seams between modules
  • Ask the Git history why a line changed, from git blame to the pull request behind it
  • Let git bisect run and your check find the commit that broke something
  • Fix the cause and nothing more, then recheck the invariants the change touches
  • Check Code Mentor’s answers against logged values, and sign off a fix with its evidence

You’ll practice in exercises with automated tests and finish with a project: fixing Nadia’s refund and talking Margaret, who built the refunds code, through your sign-off.

This course is for programmers who know the JavaScript basics and can read an error message and log a value. It follows Finding Your Way Around a Codebase You Didn’t Write, but the first lesson shows you how to get the shop’s code if you’re starting here. You’ll need Node.js, Git, a terminal, a code editor, and a browser.

What’s Included:

  • 20 Lessons
  • Video Subtitles and Full Transcripts
  • Translated Subtitles in 8 Languages
  • 2 Downloadable Resources
  • Interactive Quiz to Check Your Progress
  • 8 Hands-On Coding Exercises
  • Q&A With JavaScript Experts: Ask a Question
  • Certificate of Completion

Downloadable Resources:

Related Learning Paths:

Reviewing What You've Learned

2 Lessons 20m

  1. 1. Reviewing What You've Learned06:30
  2. 2. Course Summary14:00

About Stephen Gruppetta

Stephen obtained a PhD in physics and worked as a physicist in academia for over a decade before becoming a programming educator. He's constantly looking for simple ways to explain complex things.

» More about Stephen

Each tutorial at RealJS is created by a team of developers so that it meets our high quality standards. The team members who worked on this tutorial are:

← Browse All Courses