Slash Boxes
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.
More | Login | Reply
Loading... please wait.
  • For what it's worth, I recommend refactoring.

    Throwing away something that mostly works is a good way to get to write all of the easy stuff and all of the fixed bugs all over again, while making new mistakes.

    Think of it like revising an article or a book chapter. Unless Pudge comes down on you super hard, you're better off rephrasing things, moving paragraphs around, and adding more jokey footnotes than scrapping everything and starting over.

    (Of course, if Pudge does say "That's completely wrong. You should delete all copies, grind that hard drive into dust, and set it on fire before I kick your ***!", then you should start over. I think that's completely out of his system, though.)

    Seriously, learning the discipline of improving something that is ugly but mostly working will serve you very well. You might even get a job refactoring part of the Perl core library. Yikes.

    • I was rooting through the code earlier today in my discrete math class and I came to a similar conclusion: "Most of this works. I just need to fix some of the way I'm building my data structures and then add new stuff." This clinches it for me.

      It always feels better when I decide what I'm doing so I can get to the doing of it. :)


      You are what you think.