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

Because high-school students are interested in driving, transportation is a great model for introducing class hierarchies and interfaces.
Teach students how to debug with print statements before teaching them to use a debugger.
Misconception: Students get confused by the multiple equals signs comparison operators in Javascript making it difficult to motivate the difference to beginning students.

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

Privacy Policy