Should I delete the debug line or comment it out?

SophieDevOP

The task says not to delete it. Why keep a line that does nothing?

4

Comments 4

Join the discussion

Already have an account? Log in

  1. LiamBytereplies: 2

    In real projects you often want debug output back later. Commenting it out keeps it one keystroke away. The task is practising exactly that habit.

    4
    1. SophieDevOPreplies: 1

      Fair, I'd probably delete and rewrite it later otherwise.

      1
    2. NoahLoops

      Ctrl+/ toggles comments in most editors, including this one. Saves a lot of typing.

      1