http://www.perlmonks.org?node_id=492165


in reply to What's your Module Template

I don't have one.

Thus forcing myself to remember what I'm doing, and not just having a bunch of default code that may or may not be relevant to the module I'm writing.

What's yours btw?

C.

Replies are listed 'Best First'.
Re^2: What's your Module Template
by robot_tourist (Hermit) on Sep 15, 2005 at 11:15 UTC

    I believe in the third way, although I'm definitely not a New Labour or Tony Blair supporter (except when he annoys the unions and I thought the minute or so I saw of his speech to the UN the other day was rather good).

    I think it's always good to have a little boilerplate, like comments and use strict, maybe constructor templates, etc, because it helps with best practice. But it's bad (I know from experience) to just get an old project (usually in Delphi where I work, although sometimes in Perl too) and just save it under a different name and start writing the stuff that's specific for the new project.

    How can you feel when you're made of steel? I am made of steel. I am the Robot Tourist.
    Robot Tourist, by Ten Benson