I have seen stuff like this
Please, don’t commit commented out code
Kent C. Dodds
51519

The worst case was in the C code we produced in a company without proper VCS (or proper usage)…

We commented out sections of code with

#if OLD_CODE
(buggy code)
#else
(new code)
#endif

And then, we had nested conditionals!

Totally unreadable. I ended making a Visual Studio macro to remove whole sections of commented out code to clean up the mess a bit… :-D

Like what you read? Give Philippe Lhoste a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.