DEV Community

Serguey Asael Shinder
Serguey Asael Shinder

Posted on

Commented-Out Code Is a Ghost

That block you commented out
"just in case"?

It's a ghost.
Dead, but still haunting the file.

It confuses every reader.
Is it needed? Why is it here?

You have version control.
The old code is safe in history.

Delete it.
Let the file rest.

– Serguey Asael Shinder

Top comments (0)