Skip to main content
CS Teaching Tips

Main navigation

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

Prioritize straightforward, understandable code over unclear, shortcut-filled code to avoid confusion.

Share Prioritize straightforward, understandable code over unclear, shortcut-filled code to avoid confusion. with FacebookShare Prioritize straightforward, understandable code over unclear, shortcut-filled code to avoid confusion. with Twitter
  • If students cannot parse the code properly, they will not be able to understand what it is doing.
  • This is especially important for beginning students who miss fundamental concepts when trying to write elegant code without understanding the thinking behind it.

More about this tip

Tags

  • Development Methods
  • 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

Demonstrate manipulating primitives with operators before manipulating them with methods so students can understand the basics of primitives before using them in a more complicated way.
Scaffold students to evaluating and understanding 3 === “3” in Javascript using the following steps to help students learn the difference between confusing comparison operators.
Ask students “What is the simplest input to this problem?” when teaching recursion to help students learn to identify appropriate base cases for each argument of their function.

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

Privacy Policy