Quote:
Originally Posted by chaley
I don't agree. Commenting stuff out leaves piles of cruft one must wade through. It obfuscates the running code. Comments turn into bit rot very quickly. You must comment added code to relate it to the removed code.
If you want to see what was there then look at the GitHub repository. There you get an accurate view of what came and went.
|
Depends if there's any chance of fixing the code and putting back or if it is better gone forever. Also, it would be better to leave it as a comment as a warning to others rather than to have it reinvented badly and still broken.
While in theory pulling it from git history is possible, the longer time slips, the harder it will be to find.
I suppose also depends on how large the elided code is.