Development Goals for Julian
Hb <[email protected]>
| Newsgroups | gmane.comp.cms.xaraya.devel |
|---|---|
| Organization | Xaraya |
| Message-ID | <[email protected]> |
The Julian calendar module has currently some "characteristics" which makes it nearly unmaintainable and hinder an effective development. Before patching another dozen workarounds into that module we should briefly define some common goals. So please comment: 1. The code uses several different string date/time formats and the UNIX integer timestamp too. For simplicity timestamp is better. Several PHP installations are said to have problems with timestamps below 0, i.e. dates before 1970. In the past string based date/time handling was preferred because of lacking PHP capabilities. = We should internally use timestamp only in future. 2. The database stores a mix of SQL time format and UNIX timestamp. = Although not planned to change, we should aim at the SQL format. 3. In some parts of the code the later output and the form fields are formated to AM/PM. The 24 hrs format is neglected. Xaraya's user depended localization features are rarely used. = We should use the date/time formats preset in var/locales/xx/locale.xml through Xarayas core functions. 4. Mixed use of camelCase and under_scored for naming variables. This leads for example to an array $event with the keys "eDescription" and "description", both carrying the same value (in viewevents.php). The number of blocklayout variables nearly doubled since latest release mainly because of duplicate content: http://bugs.xaraya.com/attachment.cgi?id=4062&action=view = We should serve the templates of the last official release 0.4.5 and delete all other variables. 5. Javascript is used to change the input form after changing the recurrence field. Some input fields are hidden while others are deactivated. = Deactivation is the preferred method. 6. Date/time input is currently done on four files (newhook, modifyhook, addevent, edit) and several templates in a duplicated manner. = For date/time input only one included template should be called by the other templates, see bug 5531. This need a unification of variables. 7. Is the included RFC xardocs/calendar.rfc valid? = A definiton what we want from Julian is necessary. Hb Diffs between releases: unnamed on 2007-04-23 Revision 3684bbe339f29772f415ad10e373201845c5997d http://mt.xaraya.com/revision/diff/e7df2f5f2be047141aa578fc633c7d475793315b/with/3684bbe339f29772f415ad10e373201845c5997d unnamed on 2007-02-19 Revision e7df2f5f.. http://mt.xaraya.com/revision/diff/f46b3e8a01443390ad877ee5c4f2390466075e1d/with/e7df2f5f2be047141aa578fc633c7d475793315b 0.4.5 on 2006-05-28 Revision f46b3e8a.. http://mt.xaraya.com/revision/diff/40b7fde859f96a9577ad66eb6de02bfbe96243bd/with/f46b3e8a01443390ad877ee5c4f2390466075e1d 0.4.4 on 2006-04-23 Revision 40b7fde8.. http://mt.xaraya.com/revision/diff/d1e5b90ad92a152f74f06e47723d085e50805222/with/40b7fde859f96a9577ad66eb6de02bfbe96243bd 0.4.3 on 2006-03-12 Revision d1e5b90a.. http://mt.xaraya.com/revision/diff/dc8131aea3f55b3506a45c208490c49cb6874af1/with/d1e5b90ad92a152f74f06e47723d085e50805222 0.4.2 on 2006-03-09 Revision dc8131ae.. http://mt.xaraya.com/revision/diff/08041f4d464a8fae199ce98ef4ff4293d324db65/with/dc8131aea3f55b3506a45c208490c49cb6874af1 0.4.1 on 2006-02-19 Revision 08041f4d.. http://mt.xaraya.com/revision/diff/9a8551e622251d81744b4d227676934a47b7013e/with/08041f4d464a8fae199ce98ef4ff4293d324db65 0.2.7 on 2006-01-29 Revision 9a8551e6.. http://mt.xaraya.com/revision/diff/1b2b2485ee96fb5b9e7b83965f6a7d273a99fbe4/with/9a8551e622251d81744b4d227676934a47b7013e 0.2.6 on 2005-11-17 Revision 1b2b2485.. http://mt.xaraya.com/revision/info/1b2b2485ee96fb5b9e7b83965f6a7d273a99fbe4