So, dates. I mean, dates. Right? Stupid Earth doesn't have the decency to revolve and rotate in 10s. And be flat.

I'm starting a little (real world) job dispatch + scheduling app with Catalyst; like many others (locations, users, times, frequencies, free/busy slots for locations and users). My question is probative, data design phase. I do not believe there is anything quite like what I'm doing but I'd love to hear if there is freeware out there to do job dispatching (again this is for the real world; taxi driver, copier repairman, plumber kind of thing where you have to send an agent to a location on an arbitrarily complex schedule).

Scheduled dates (duration, frequency, coincidence like busy/free) are decidedly non-trivial. I'm considering using iCal formats in DB fields. The problem being, the relational aspect just went out the window; you have to read in all possibly related records, vivify them as some kind of iCal object, and then check for conflicts, availability, repetition... So, this strikes me as bad idea but an even worse one is trying to reinvent a date duration/frequency syntax.

Thinking out loud and would appreciate same; any input, guidance, horror stories. I will open source the project if I can write it well enough (clean code + generalizing it well).


In reply to Scheduling/dates design -- iCal + RMDBS? Or...? by Your Mother

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.