Skip to main content
CS Teaching Tips

Main navigation

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

Remind students that the computer will run any code that compiles, no matter how unreasonable, because it doesn’t have the ability to determine if code is reasonable or not.

Share Remind students that the computer will run any code that compiles, no matter how unreasonable, because it doesn’t have the ability to determine if code is reasonable or not. with FacebookShare Remind students that the computer will run any code that compiles, no matter how unreasonable, because it doesn’t have the ability to determine if code is reasonable or not. with Twitter
  • Emphasize that, as a consequence, it is the programmer’s responsibility to ensure the code does what is intended before it compiles.
    • If the programmer does not take this responsibility the computer will run bad, illogical, silly, dangerous, or otherwise maligned code, so long as it compiles.

More about this tip

Tags

  • Development Methods
External Source

"Visual program simulation in introductory programming education" by Juha Sorva.

Other Tips By
Other Tips By Juha Sorva

Similar tips

Use treasure hunts as a way to motivate linux commands.
Have students compete calculating to the 50th Fibonacci number, one team of humans doing the math versus a team students writing a program to stress the importance of computing for calculations.
As a debugging technique, have students write out their programs in their spoken language and compare their description to the code in order to find bugs.

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

Privacy Policy