in reply to Re^2: general rule for using use
in thread general rule for using use

Good question this ++ for that. I often think like this and some times I write my own simple module(in terms of number of lines of code) for solving problems rather than using a third party one, since there are lot of dependencies and it is really painful, it pulls thousands of lines of code un-necessarily, but it might be designed to work in all platforms, much reliable, etc, I seriously don't want to complain any third party module, this is my opinion

What you are trying to do? UNIT Testing or adding any new feature into the code?.
if UNIT Testing, better don't disturb the flow of the code, just test as it is.
if you are planning to add any new feature or if you want to re-engineer the entire code(since you don't like to load 800+ modules and you think it can be done in a simpler way), if you know the clear requirements, better write you own code which uses simple set of modules which meets your requirement(provided if you have time, if you don't have time, just understand the existing code base and find out why they have done like that, nothing would have been done for no reason, better note down drawbacks and do it later when you have time).


Vivek
-- In accordance with the prarabdha of each, the One whose function it is to ordain makes each to act. What will not happen will never happen, whatever effort one may put forth. And what will happen will not fail to happen, however much one may seek to prevent it. This is certain. The part of wisdom therefore is to stay quiet.

Replies are listed 'Best First'.
Re^4: general rule for using use
by drench (Beadle) on Apr 09, 2009 at 17:48 UTC

    Or maybe you've switched the calling code to use the new 100% compatible and much faster Order_XS module. Yet here's module X, still pulling in the now-unused pure-Perl Order module. It's code it doesn't need, but everything keeps working, so nobody cares (or even notices).

    A couple years later you're installing the app on a new server, and the sysadmin asks, "do I need to install this Order module?" And you say "no I switched to Order_XS years ago. Don't bother." And then...