Skip to main content
CS Teaching Tips

Main navigation

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

CS 1

When you write a function, like (foo x), students don’t realize you can put a variable with a name OTHER than x in there, or an actual number.

When tracing through code in Java, use different colors for code that is executed in a main method versus in a class method.

Introduce “base-case” and “smaller-caller” as a helpful way for students to remember the different parts of recursion.

Before moving onto arrays, make sure students feel really confident about loops.

Have students work in small groups to solve logic puzzles so they develop algorithmic thinking and good problem-solving habits.

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.

When teaching introductory courses, teach students to use “top-down thinking” and “bottom-up implementation.”

Ensure that your courses have clear expectations about prerequisite knowledge so all students are well-equipped for class material.

Use the "PB&J" sandwich activity to introduce important components of algorithms.

Be explicit about what direction references point when teaching about objects and references.

Pagination

  • Previous page ‹‹
  • Page 17
  • Next page ››
Subscribe to CS 1

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

Privacy Policy