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

use Perl Log In

Log In

[ Create a new account ]

jonasbn (1153)

jonasbn
  reversethis-{gro.napc} {ta} {nbsanoj}
http://e-diot.dk/
AOL IM: BJonasN (Add Buddy, Send Message)

Perl Programmer located in Copenhagen, Denmark. Active member of Copenhagen Perl Mongers.

Author of:

  • Business::DK::CPR
  • Business::DK::CVR
  • Business::DK::PO
  • Business::OnlinePayment::CashCow
  • Date::Holidays
  • Date::Holidays::Abstract
  • Date::Holidays::Super
  • Date::Pregnancy
  • Games::Bingo
  • Games::Bingo::Bot
  • Games::Bingo::Print
  • Module::Info::File
  • Module::Template::Setup
  • Test::Timer

and maintainer of:

  • Tie::Tools
  • XML::Conf
  • Workflow

Journal of jonasbn (1153)

Thursday May 13, 2004
02:34 AM

Date Holidays modules on CPAN (part 2)

[ #18731 ]

I have sent a implementation of an extra method to the maintainer (as written in my journal earlier) of Date::Holidays::DK (LTHEGLER). The aim was to try and get the module to be able to share its internal data - the module on CPAN should be updated soon.

The current version of Date::Holidays::DK (0.01) only holds the is_dk_holiday method. So my dk_holidays method returns the complete set of holidays for a given year.

I would very much like for the other Date::Holidays::* (and Date::Japanese::Holidays) modules to implement the same method (I have not started lobbying seriously for this yet).

Today it struck me, that if all the modules in the Date::Holidays::* namespace (and the Japanese one) implement differently named versions, using all of them will result in long programs - and the solution is of course polymorphy.

SO! - I have just mailed the author of Date::Holidays::DK a new patch implementing the following methods by wrapping the existing ones:

is_holiday

holidays

Looking forward to hearing what he says :)

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.
  • I would very much like for the other Date::Holidays::* (and Date::Japanese::Holidays) modules to implement the same method (I have not started lobbying seriously for this yet).

    Or even at all, if you believe my inbox.

    richardc - guilty party for Date::Holidays::UK [cpan.org]
  • I have only lobbied in my journal - I was thinking about what would be the best way to go about this:

    1. Write the authors and ask them to implement?
    2. Write the patches and then write the authors and ask them to accept?
    3. Write an abstract module using Michael Schwerns Class::Virtual [cpan.org] and then do 2.
    4. Do nothing and hope for the best

    I am currently working on 3 just for the fun of it - it is pratically done - only docs remain...