Still...
Best demonstration of Poe's Law right here.
there are many reasons to leave code comments besides neglect. though in this case it's neglect :)
#if 20141031 // Date as a valid number != 0
// Active code
#else
// Inactive code
#endif
Helps documenting experimental alternatives, even without SCM.It's only a five minute presentation but it blew me away and I'm keen to give it a try for real at some point. Video here:
Great share, thank you!
We never have.
When I actually think about it I realize it's probably very nearly never. But it's hard to shake the suspicion :)
You only make your source control more valuable by not commenting out code; since you can then search for its presence more easily. Good advice, all around.
Even if you tear it out, it's way more work to try to pull it all back out, line by line, and re-implement it than to comment it out and leave the actual debugging statements in #ifdef blocks that the pre-processor will pull out anyway.