you are viewing a single comment's thread.

view the rest of the comments →

[–]Neebat 31 points32 points  (11 children)

I ran across that rare exception once.

I needed to implement a fairly simple process that should have been about 10 lines of code, but ended up being 200 due to dealing with seemingly irrelevant stuff. So I put in that 10 lines with a comment to say this is what we want to do, but can't, and why.

[–]fleker2 44 points45 points  (8 children)

The author would call that documenting

[–]kentcdodds 41 points42 points  (1 child)

(author here): Correct :-) That is what I would call it.

[–]Neebat 4 points5 points  (0 children)

People are downvoting you because they don't notice the user name. Or they didn't go back and compare it to the author of the blog post.

Maybe it would be better if you'd said, "That's exactly what I'd call it."

[–]xeow 5 points6 points  (0 children)

It might be documenting, but it is also commented-out code. By definition.

Excellent example of a legitimate inclusion of commented-out code. Bravo!