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

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

(buggy code)
(new code)

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.