Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • You know, an Acme::Module::Starter might be called for! The POD alone is worth the price of admission.

  • My module start point is just a directory of TT templates that I process with ttree. When I want to change the templates, I don't deal with code. :)

    #!/usr/bin/perl
     
    use Cwd;
    use File::Spec;
     
    my $module = $ARGV[0] || prompt( "Module name> " );
    my $dist   = $module; $dist =~ s/::/-/g;
    my $file   = $module; $file =~ s/.*:://; $file .= ".pm";
     
    my $cwd    = File::Spec->catfile( cwd(), $dist );
     
    system
            join " ",
       

  • To me it comes down to the fact that documentation, commenting code, and cleaning up or "refactoring" code is generally considered the most boring part of IT. So eliminating the boilerplate as you mention would fall under that category. It's just another one of those things that might fall under the category of accumulating "technical debt."

    It's the tradeoff between "quick and dirty"; and elegant. There's been much hoo-ha about how long Perl 6 is taking to be completed; as I've said before I don't min
  • ExtUtils::ModuleMaker is designed to be customizable to your individual preferences. See, e.g., ExtUtils::ModuleMaker::PBP. Would that help?
    • Well, I pretty much have what I want working now, so I'm happy to leave it as is.

      It also means I can add other functionality like auto-commiting to my repository etc.

      So I'm happy for now.