Tom Ritchford
Feb 21, 2024

--

The beginning clause seems to have been garbled a bit, but the second half is bang on.

In particular, I argue that never under any circumstances should you comment out code. We are all running git or some other source control system, and this is what they are for: just delete the code!

Commented-out code is a nasty trap. As you maintain the rest of the code, you can't maintain those comments, so very quickly the code becomes wrong, and an attractive nuisance.

--

--

Responses (1)