Back

Why do developers comment out code instead of deleting it?

4

299

  • No matching results...
  • Searching...

/ 1000

They think they could put it back later, and don't realize it could be done with source code control.

42

We’re afraid that it might be important and we will need to put it back and don’t want to forget where it was :D

44

For me, back when I was doing it, the thought of it being in the projects version control didn't cross my mind 😂 We are also better at adding stuff, than subtracting, so deleting previous work is a bit challenging.

1

121

Sometimes I need to do some quick changes and I forget to delete the code afterwards.

95

Same reason I still have that shirt from high school that has a hole in it, I ‘spose. It’s cozy, comfortable, and I don’t know if I’ll remember it when it’s gone.

133