[prog] Perl advice

Kathryn Andersen kat_lists at katspace.homelinux.org
Thu Jun 30 23:24:36 EST 2005


On Thu, Jun 30, 2005 at 11:42:11AM +0100, Dan wrote:
> I run the LinuxChix Perl course, and I'm close to wrapping it up now.
> Does anyone have some words of wisdom to offer beginners?

"There's more than one way to do it" (grin)
 
Always check on CPAN to see if there's a module that's already been
written which does what you want.

However, that being said, if you're writing a module that you think you
might put up on CPAN, try not to have it depend on lots of modules.

Less is more.  Better to write two small modules which do something
well, than a whole kitchen-sink which does lots of things that not
everybody may want.

A concrete example of this: somebody wrote a module for converting RGB
colours into HSV colours and suchlike -- but they did it as part of a 
suite of modules related to PDF generation.  All *I* was interested in
was the colour conversion (because I wanted to use it for a script for
generating colour schemes for X Window managers).  So I begged the
author of the PDF suite to split it out as a separate, independent
module, and he did.

Kathryn Andersen
-=-=-=-=-=-=-=-=-
Free Software: the Software by the People, of the People and for the People.
Develop! Share! Enhance! and Enjoy! 

   -- Andy Tai
-- 
 _--_|\     | Kathryn Andersen	<http://www.katspace.com>
/      \    | 
\_.--.*/    | GenFicCrit mailing list <http://www.katspace.com/gen_fic_crit/>
      v     | 
------------| Melbourne -> Victoria -> Australia -> Southern Hemisphere
Maranatha!  |	-> Earth -> Sol -> Milky Way Galaxy -> Universe


More information about the Programming mailing list