"calendar.jal" doesn't do much. And, it does not conform to nothing. Well, the filename explains the function a bit, but that's all. If added today, this file would have no chance to survive. So, there's a discrepancy: Dumb old code is kept because it's already there, and new clever code must go, because its clothes don't conform to the dress code.
I think, either the standards must be lowered, or the existing code must brought up to the high standard.
Greets,
Kiste
Thinking about that again, the filename is misleading. In the basic sense, a calendar is a device made from papaer or cardboard, used to find out today's date using knowledge of the weekday, or to find out the weekday using knowledge of the date. Both tasks are not covered by "calendar.jal". It only checks if a minute has passed, if yes, it moves a time pointer forward. If I should sum up this function very short, I would come to something like "carry seconds to * to years", but not "calendar".
Greets,
Kiste
> What should it do extra?
I've added a lib "big_calendar.jal" which has some extra functions:
- All leap years according to the gregorian calendar rules
- Function to calculate the weekday of a given date
- Function to add or subtract a number of days to/from a date
- Function to calculate the date of easter sunday for western churches
For a standard RTCC application, big_calendar has a bit a bigger footprint than calendar.jal, partly due to the use of records as parameters, but it can really act as a calendar for bigger applications.
Greets,
Kiste
Eur, please do not feel you or your work as critisized. It was just an example of existing code I have read recently. When I wrote my lib, it took four days to write, and more than a week to comply with the wishes of jallib team members. Then I was a bit jealous, for your code is in there, and noone minds how global variables are named. Now, my extended version has to declare functions as internal, prefixes here, there, but not like that...
I just wanted to point out that it's probably not such a good idea to have very high standards for new additions, while existing code does not at all come near these standards.
Greets,
Kiste
(Kiste, of doos, als je niet het duits begrijpt :-)
--
You received this message because you are subscribed to the Google Groups "jallib" group.
To post to this group, send email to jal...@googlegroups.com.
To unsubscribe from this group, send email to jallib+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/jallib?hl=en.
Hi again :-)Eur, please do not feel you or your work as critisized.
--You received this message because you are subscribed to the Google Groups "jallib" group.To post to this group, send email to jal...@googlegroups.com.To unsubscribe from this group, send email to jallib+un...@googlegroups.com.For more options, visit this group at http://groups.google.com/group/jallib?hl=en.
---
ir EE van Andel e...@fiwihex.nl http://www.fiwihex.nl
Fiwihex B.V. Wierdensestraat 74, NL7604BK Almelo, Netherlands
tel+31-546-491106 fax+31-546-491107