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.

Share Ensure loops and conditionals are consistently formatted. with FacebookShare Ensure loops and conditionals are consistently formatted. with Twitter
  • 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

Use different methods of counting the stairs of the Eiffel Tower to explain how different algorithms affect Big-O runtime.
Misconception: Students believe that while loops tell the program when to stop rather than when to continue.
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