Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: To USE or not to USE

by gmax (Abbot)
on Jul 22, 2003 at 14:25 UTC ( [id://276734]=note: print w/replies, xml ) Need Help??


in reply to To USE or not to USE

My feelings are such that if we intend to only use less than 50% of what the module offers we are better writing the function our selves.

In this case, quantity doesn't matter.

Let's say you need to use a database. The DBI has a few dozen methods, but you just need to use connect, selectall_arrayref, and disconnect.
Would you write those methods yourself or would you use DBI?

Think about what's behind those three methods, in terms of complexity, efficiency, and testing. I'm sure you don't want to go through such ordeal.

That's just an example, but I could say the same for a dozen modules that I use on a daily basis.

IMO, you should use what is well tested and established, and rewrite only if you have a really strong reason for that, such as buggy code and unresponsive author.

_ _ _ _ (_|| | |(_|>< _|

Replies are listed 'Best First'.
Re: Re: To USE or not to USE
by MidLifeXis (Monsignor) on Jul 23, 2003 at 16:58 UTC

    In addition, If you need to gut one part of your system for another (say, DBD::CSV -> DBD::MySQL -> DBD::Oracle), I would much rather be able to change (basically) my connect string, test, test, and test, rather than have to rewrite the guts of each of these.

    Sometimes the overhead is due to bolting a consistant interface on your module, so that it can replace / be replaced by something less / more appropriate.

    Good question, though.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://276734]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2024-04-25 17:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found