Skip to main content
CS Teaching Tips

Main navigation

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

Ensure loops and conditionals are consistently formatted.

  • This will help students to understand the basics of each loop and conditional statement.
  • It will also help students avoid unnecessary refactoring of code later on.

More about this tip

Tags

  • Programming Concepts
External Source

“The ugliest beautiful line of code” (blog post) by Neil Brown

Other Tips By
Other Tips By Neil Brown

Similar tips

Misconception: Students have trouble distinguishing between instance variables and parameters in Java.
Reiterate key concepts, such as the base case/recursive case pattern, every time you go through a recursion problem to solidify them in students’ memories.
Focus on these four key concepts when first teaching C to help students with previous programing experiences transition from higher-level languages such as Python.

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

Privacy Policy