DEV Community

Discussion on: Don’t comment your code

Collapse
 
davejsaunders profile image
Dave Saunders

Good points. I wrote something similar myself recently.
dev.to/davejsaunders/my-mission-to...

I missed out commented code though, I think that's a really common one.
I do comment out code occasionally though, when I want to tell future people (or future me) 'it used to work like this, now it doesn't because of (some reason), please don't try and be helpful and change it back' 🙂

Collapse
 
nadaelokaily profile image
Nada Elokaily

Such an amazing article Dave thanks for sharing, I agree with all the points you pointed out, I also particularly like the fact that you have a greater meaning for not deleting the commented out code that no longer works, it gave me new perspective, thanks!