Teach students good style as a debugging practice so they will have an easier time debugging.

Like 
  • Emphasize that good style is a method for preventing bugs and making it easier to debug.
    • It is not just meant to make the code look nice.
  • Good style practices include:
    • Descriptive variable names.
    • Structured commenting.
    • Strategic use of whitespace.
    • Breaking up code into smaller, logical chunks.
  • Students should be coding with good style throughout the programming process, not simply implementing good style after the fact.
External Source: 
Interview with Cynthia Lee
Other Tips By: