3 ms·
> Committing commented out code means you don't know how to use your version control system. Read the linked article more carefully. It's an example of how, s
by incepted 11y ago
> Committing commented out code means you don't know how to use your version control system.
Read the linked article more carefully.
It's an example of how, sometimes, it's better to keep comments in the code than relying on source control to preserve them.
These situations are rare, but they happen.
People who say "Commented code should always be deleted, period" need to be a bit more open minded about the constraints in which we operate in the real world.
- V-2 11y agoI don't rule out there may be cases when something like that is justified, but burden of proof lies on the other party, and having read most comments I remain unconvinced. The "close-minded" crowd is making more sense to me. Of course people will go to great lengths to justify cutting corners, shortcuts, messiness etc. it's always called for by exceptional circumstances :) I just hope my doctor isn't open-minded about washing his hands...