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

Based on Khan Academy’s internal observations, use text-based languages in class for students who are at least 12 years old to begin giving them experience with syntax.
Gradually increase the grading strictness about styling to help students become more meticulous about naming and documentation.
Build rapport with your class to create a comfortable learning environment. Remind students that overwhelming tasks, like undergoing code reviews, are stressful even for skilled programmers.

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

Privacy Policy