Delete your Code
hackernoon.com
hackernoon.com
That's an interesting perspective. Personally I don't leave lines of commented out code as I opt for cleanliness, but I do keep a journal for each project I do where I write down little gotchas I discover, or paste in a snippet that either works well, or doesn't and the reasons why.
Now, I backup the source file somewhere for archive, run multiple tests on the new code, and make an obligation for me to deliver a cleaned source file, with no other comments than the one needed.
It's more clear when you go back to your code to not be distracted by old thoughts.
Totally agree, which is why I didn't feel so bad about deleting it from my system. It was more of a psychological barrier to do so I think, as it represented starting over :)