in reply to Reinventing the spaceship

++nothingmuch for accepting TIMTOWTDI into your heart.

Most, if not all, agree that CPAN modules are very useful. I can tell that you agree with that as well. But there is no good reason why, if they don't quite do what you need or want, you should force yourself to make do. Great, so you're willing to put in the time to build yourself nothingmuch::DBI. There is nothing wrong with that.

<advice>
If I were in your shoes I wouldn't start from scratch; I would probably use other perl modules as springboards. I'd look at the source of whatever module I was dissatisfied with and see how I could change the interface or workings of it to suit my own needs and preferences.
</advice>

I think that the important part of the 'Don't reinvent the wheel' thing is to not start from scratch if you don't need to. It doesn't say 'Use what someone else has written unless you're absolutely sure there's nothing.' If what you need is something that looks and behaves exactly like DBI.pm, use DBI.pm. If what you need is close, but not quite, use DBI.pm as a departure point and modify it. If you need something completely different grab your Rizlas and roll your own. Doesn't mean you need to reinvent the Rizla.

LAI

__END__

Replies are listed 'Best First'.
Re: Re: Reinventing the spaceship
by nothingmuch (Priest) on Apr 08, 2003 at 18:07 UTC
    The reason for doing this is, as i forgot to mention, that I sometimes find it harder to use a model whose workings I don't like than to rewrite something. Had I not first seen how it works on the inside, aswell as taken ideas from it I would probably not be able to make a new version of it as easily as I could bend my way of thought/code to accomodate it. it being a hypothetical module. I totally agree wth you.

    On a hi mom type of note, i'd like to thank the insightful replies i've gotten to this node in a more general forum. Thanks!

    -nuffin
    zz zZ Z Z #!perl