3 ms·
5) delete it from your code. You do have source control, so you will be able to recover the code later. If you want to leave evidence, add a comment: -- Remo
by Someone 13y ago
5) delete it from your code. You do have source control, so you will be able to recover the code later. If you want to leave evidence, add a comment:
-- Removed Foo handling in revision ... because of ...
That should be rare, though.
For temporary disabling, I tend to do:
const disableFooForDebugging = true
if( disableFooForDebugging)
That makes it easier to recognize and correct accidental checkins.
- themstheones 13y agoSorry, I was attempting to be humourous. Obviously #5 is the right way to go. I can't remember ever pulling something useful out of a block of commented out code.