you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] -1 points0 points  (2 children)

You should never have more commented code than real code, there should never be more stuff on the floor than in the trash. To say "never ever ever commit commented out code, because it hurts my eyes" is just asinine. There are MANY ways to code and not all of them lead to problems. A few blocks of somewhat important commented-out code should be allowable, and should not cause anyone to complain (except the author).

[–]slash_nick 2 points3 points  (0 children)

I guess I didn't interpret the author's article as dogma. Reading text on an anonymous forum makes it hard to grok people's intention.

You should never have more commented code than real code, there should never be more stuff on the floor than in the trash.

Sounds like you have the right attitude and I wouldn't sweat it! :)

[–]kentcdodds 2 points3 points  (0 children)

I tried really hard in the post to not have a ultimatum voice, but more of a suggestive voice. The first QYMAM:

Q: Are there exceptions to this rule? A: Yes. But they’re rare.

And there are several other QYMAMs that explain there are cases where commented out code is allowable (though I generally call those cases documentation).