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

Have students implement simple filters on sound objects so they can parse strings of notes into recognizable melodies to get practice manipulating strings.
Organize an activity in which one student gives other students precise instructions for how to draw a certain picture to teach students how a computer executes code.
Misconception: Students often think that classes hold Objects rather than understanding that they’re a blueprint for Objects because of the main method.
  • 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