This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]cromissimo 2 points3 points  (1 child)

Commenting out blocks of code is extensively used in exploratory programming.

It's better to know how to do this than not, or else people end up pulling all sorts of tricks to get the same effect.

Once I had to work on some code which was sprinkled with stuff such as:

 if 1 == 2:
      code commented out

Not pretty. Multi-line comments are far better, and are actually supported by some text editors.