DEV Community

[Comment from a deleted post]
Collapse
 
pawelsalawa profile image
Pawel Salawa

I recognize three stages of commenting throughout the career:

  1. I don't comment. It's waste of time and energy.
  2. I comment wherever I feel it's necessary. It saves time in future and helps others.
  3. Can I rewrite this part of code, so it does not need a comment? I will comment only otherwise.
Collapse
 
mogery profile image
Gergő Móricz

That is true, but thinking as a beginner, I'd prefer to comment everything that's not console.log simple, just in case I'd forget what it is.