Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • Why not just put a textual comment with the commented code explaining why it's commented out. Not only will it not be compiled in, but it will also have a nice long explanation about why it's not being used.

    You can even make a reference to a co-worker's hissy fit that occurred when you deleted it :)
    • I use this approach probably 90% for verbose debugging and 10% to wrap scary looking code. I try to comment scary code sometimes, but most often what I see is

        $foo->method_makes_sense;
        # $foo->mugwumpus;
        $foo->save;
      so then I have to go and figure out what mugwumpus() does, which involves grepping, and emailing. I guess I'd rather spend my time coding than mugwumpus-spelunking :)