|
|
| There's more than one way to do things | |
| PerlMonks |
Minimizing dependencies (was: Perl Factory Method Pattern?)by lachoy (Parson) |
| on Oct 12, 2004 at 20:40 UTC ( [id://398747]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
Just a few words on minimizing dependencies: Having to download/build dependencies is a complaint a lot of people have with large modules/applications on CPAN. I don't personally agree with not using a module because of dependencies-- especially a pure-Perl module! without additional dependencies of its own! -- but you should at least realize that you're making a number of trade-offs by doing so.
I'm not saying anything bad about re-creating functionality to learn how it works because I learn by doing too. Going through the trials of typing in code, debugging it, thinking about ways to break it is a great way to learn. (And I've been known to recreate some wheels as well...) But CPAN is such a fantastic resource that it seems a shame to dismiss it because you'll have to mount the wheel yourself :-) And yes, I'm the Class::Factory author, so I'm a little biased :-) Chris
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||