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

Use sounds in Scratch to make it clear when particular lines of code are being executed because it can be really hard for students to figure out the order of execution.
DrJava, the Java interpreter, gives students an interactive environment to practice testing strategies in.
Use Monopoly, explaining that the game is a class, to demonstrate Java classes and objects in a familiar and interactive way.

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

Privacy Policy