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

Alert students working with csv files about removing different types of white-space because students don’t always expect to need to remove white space.
Encourage students to work on side projects to make sure they are getting enough programming practice and to make them more marketable.
Have some students pretend to be robots while other students program them to complete simple tasks to practice debugging and to emphasize the importance of coding precisely.

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

Privacy Policy