Skip to main content
CS Teaching Tips

Main navigation

  • Browse All Tips
  • Tags
  • 3D
  • About
  • Rate Tips
  • Tip Sheets

Have students pay special attention to “off by one” bugs to help them avoid common mistakes in their code.

  • These are errors that do not account for edge cases; most frequently, the first or last element.

More about this tip

Tags

  • Development Methods
External Source

Interview with Jim Huggins

Other Tips By
Other Tips By Jim Huggins

Similar tips

Misconception: Students get frustrated when they try to point their character to the left and it ends up flipped upside down because they don’t understand how changing the direction a sprite faces works in Scratch.
Explore students’ syntax errors to reveal their misconceptions.
Have students keep a “bug collection” in a journal so they can more easily recognize and eliminate bugs in the future.

For more information or to report a bug, contact us at admin@csteachingtips.org. Built with Bootstrap. Powered by Drupal.

Privacy Policy