TactivergeLite

Lite / Building Machines That Respond / Week 8

Week 8: Debugging

Term 1: Computational Thinking

This week you will

Lessons

  1. Read the traceback · about 30 min
    Your program crashes with six lines of red text. Most people read the top. Why does the answer start at the bottom?
  2. Reproduce, hypothesise, test: hunting logic bugs · about 40 min
    A robot's speed log says 240 m/s. Nothing crashed. Where do you even start?
  3. Catch bad data before it bites · about 40 min
    A data logger writes ERR whenever its sensor hiccups. Should your program crash, skip the line, or quietly count it as zero?
← Week 7Week 9 →