Skip to main content
CS Teaching Tips

Main navigation

  • Browse All Tips
  • Tags
  • 3D
  • About
  • Rate Tips
  • Tip Sheets

Tell your students that they should assume their code has bugs to help decrease their frustration when writing code.

Share Tell your students that they should assume their code has bugs to help decrease their frustration when writing code. with FacebookShare Tell your students that they should assume their code has bugs to help decrease their frustration when writing code. with Twitter
  • Novices in computer science tend to assume that their code is bug-free.
  • Assuming there are bugs will make students more comfortable with the debugging process.
    • This is especially important when students begin writing more complex programs.
  • To learn more, watch Mark Guzdial’s CS Education Zoo interview.

More about this tip

Tags

  • Development Methods
  • CS 1
  • Intro Programming
External Source
CS Education Zoo Interview with Mark Guzdial.
Other Tips By
Other Tips By Mark Guzdial

Similar tips

Show a variety of for loops conditionals (e.g., < vs. <=; different variable names, different start values, different increment operations) to avoid common misconceptions about loops.
Foreshadow arrays right after teaching for loops by showing students how to create a 1x6 grid using the rectangle object in the Java objectdraw library because visualizations built off of recently introduced material provide a useful transition.
Use popular, repetitive music to teach loops in a beginning course because this motivates the purpose and application of loops while keeping students engaged by referencing popular culture.
  • CSTT Facebook
  • CSTT Twitter

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

Privacy Policy

  • National Science Foundation
  • Sage Fox Group
  • Harvey Mudd College