RE: DateTime::Event again

2007-05-16 Thread Metz, Bobby
At a high level, recurring and single events don't have to have different properties IMO, depending on how you structure the series of event references. If you separate the event information from the "scheduling", having an array, hash, whatever of scheduled events would simply hold references to

Re: DateTime::Event again

2007-05-16 Thread Dave Rolsky
On Wed, 16 May 2007, Simon Wistow wrote: On Wed, May 16, 2007 at 04:46:56PM +0100, Zefram said: A "recurring event" is not a single event. It is a structured group of events. You should have distinct classes for single event and recurrence. Most of the methods you list are applicable to one c

Re: DateTime::Event again

2007-05-16 Thread Adriano Ferreira
On 5/16/07, Simon Wistow <[EMAIL PROTECTED]> wrote: I've started sketching out DateTime::Event - a module that would represent a single, err, event. It's based on my experiences with the Palm Calendar, Google Calendar and the iCalendar standard. Eventually it's my hope that there'd would be num

Re: DateTime::Event again

2007-05-16 Thread Zefram
Simon Wistow wrote: > In every calendaring system I've come across a >recurring event and a single event are represented as the same thing >only with different properties. Bad OO design is very common. Especially, I have found, where dates and times are concerned. >

Re: DateTime::Event again

2007-05-16 Thread Simon Wistow
On Wed, May 16, 2007 at 04:46:56PM +0100, Zefram said: > A "recurring event" is not a single event. It is a structured group of > events. You should have distinct classes for single event and recurrence. > Most of the methods you list are applicable to one class or the other, > not both. Hmm, I

Re: DateTime::Event again

2007-05-16 Thread Zefram
Simon Wistow wrote: >I've started sketching out DateTime::Event - a module that would >represent a single, err, event. ... >The problem we have here is that for one off events start and end are >definite points in time. For recurring events this merely represents the >earliest and latest instanc

DateTime::Event again

2007-05-16 Thread Simon Wistow
I've started sketching out DateTime::Event - a module that would represent a single, err, event. It's based on my experiences with the Palm Calendar, Google Calendar and the iCalendar standard. Eventually it's my hope that there'd would be numerous implementations of DateTime::Event::Provider