View Single Post
Old 07-13-2024, 06:36 PM   #3015
compurandom
Wizard
compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.
 
Posts: 1,017
Karma: 500000
Join Date: Jun 2015
Device: Rocketbook, kobo aura h2o, kobo forma, kobo libra color
Quote:
Originally Posted by chaley View Post
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.
compurandom is offline