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)

Sunday May 23, 2004
10:13 AM

Date::Holidays

[ #18899 ]

I am fooling around with implementing a Date::Holidays class, which is can utilize all the modules in the Date::Holidays::* namespace.

This tasks is somewhat more frustrating than I had imagined. The list of modules I want to use are currently 6 and the number of exceptions to the normal program flow I have had to implement up to now counts: 4, this is just based on module naming conventions and other small things...

This is quite crazy since all I have working is the loading and calling of subs, which is currently tested using a set of generic tests and I had not even started to look at the test output yet at this point...

In the test suite I have 3 tests per module, with the 6 modules this ends up with 18 tests out of these 7 fail.

Some of the failures can be explained, since only Date::Holidays::DK have implemented one of my suggested additions of a dk_holidays method.

This is the current TODO list of Date::Holidays:

From processing of test results from bin/test_date-holidays_modules.t

- Date::Holidays::UK misses holidays or similar method

- Date::Holidays::FR misses holidays or similar method

- Date::Holiday::PT misses holidays or similar method

- Date::Holidays::DE misses is_holiday or similar method

- Date::Japanese::Holiday cannot be called in the expected way, since it is OOP and requires the class name (I consider leaving this module out all together)

--

- Should the holidays and is_holiday methods return return values others than undef in order for Date::Holidays to act as real super class or should I implement Date::Holidays::Super as an alternative to Date::Holidays::Abstract.

Well there is much work remaining... and possible patches and suggestions to the authors...

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.