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.

  • 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

Other Tips By