There are some events and holidays that span multiple months. Easter is a great example of this:
- Earliest date is March 22
- Latest date is April 25
Not only that, there are other events that are based upon the date of Easter,
- Passover is 40 days after Easter
- Dyngus Day is the day after Easter
I know there are other instances of stuff like this, too, but I can't think of them off the top of my head.
Instead of duplicating the functionality in both the March and April month classes, I was thinking about a group of helper classes.
However, this brings up something else: Refactoring the code heirarchy. Right now its:
Data\Month\En\Us\_monthname_
but should instead be:
Data\En\Us\Month\_monthname_
which would allow for these new helper classes:
Data\En\Us\Helpers\Easter
Data\En\Us\Helpers\SomeOtherHelper
Suggestions?
There are some events and holidays that span multiple months. Easter is a great example of this:
Not only that, there are other events that are based upon the date of Easter,
I know there are other instances of stuff like this, too, but I can't think of them off the top of my head.
Instead of duplicating the functionality in both the March and April month classes, I was thinking about a group of helper classes.
However, this brings up something else: Refactoring the code heirarchy. Right now its:
but should instead be:
which would allow for these new helper classes:
Suggestions?