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

Model the software engineering process by having students design games or other projects for an audience. This helps students gain valuable, hands-on experience and make connections to real world applications.
Be on the lookout for loop syntax that belongs to another language when students are learning multiple languages because they sometimes confuse syntax and create hard to spot bugs.
Use your own mistakes to teach students what mistakes are common and how to identify them.

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

Privacy Policy