Skip to main content
CS Teaching Tips

Main navigation

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

Have all functions return something in an intro course to help students understand that functions have a start and an end, even though they are always returning.

Share Have all functions return something in an intro course to help students understand that functions have a start and an end, even though they are always returning. with FacebookShare Have all functions return something in an intro course to help students understand that functions have a start and an end, even though they are always returning. with Twitter
  • Seeing what is returned allows students to start debugging without immediately needing to step through the inside of the function. from a function helps students debug what’s going on inside of the function without immediately digging into the function.

More about this tip

Tags

  • CS 1
  • Intro Programming
  • Development Methods
External Source

Interview with Walt Schilling

Other Tips By
Other Tips By Walt Schilling

Similar tips

Explain recursion with the example of determining your row in a stadium by asking the row in front of your what row it is… asking until you get to the first row, the base case.
Use realistic examples of class variables to increase understanding.
Combat stereotypes about computer science and computer scientists. This shows students that, regardless of their personality or other hobbies outside of CS, they could become computer scientists too!

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

Privacy Policy