2 ms·
No it doesn't. Your version control system will keep the deleted piece for you forever. In the examples the OP is giving, the purpose of code comments is stori
by smikhanov 16y ago
No it doesn't. Your version control system will keep the deleted piece for you forever.
In the examples the OP is giving, the purpose of code comments is storing the snippets of the earlier code the developer might eventually need. No matter which VCS you use, it is better suited for that purpose. There's nothing heroic about that, so yes, go ahead and delete that piece.
- billybob 16y agoYes. When I first started using version control, the freedom to refactor and delete old code confidently was a thrill. These days, even a tiny, short-term project can get the benefit of version control; it's as simple as `git init`. There's no reason to leave commented-out code in a file anymore.