Comments: Why?

  • Commenting your own code can save (future) you & and collaborators time.
  • Why of your code, not the how or what.
    • Bad: # Changed default value to 0.9
    • Good: # Increased smoothing parameter to better capture the trend in the data.