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.

Share Have students pay special attention to “off by one” bugs to help them avoid common mistakes in their code. with FacebookShare Have students pay special attention to “off by one” bugs to help them avoid common mistakes in their code. with Twitter
  • 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

Students have trouble seeing the connection between models (UMLs, etc.) and code so they only want to focus on coding, a problem when teaching modeling.
Misconception: HTML Beginners confuse tags with attributes and values.
Misconception: When a variable is on both sides of an equal sign (i.e., x = x+1), students can get very confused.

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

Privacy Policy