๐ Hi, Iโm @medmen, aging constantly, admirer of the 3 most beautiful girls in my world and in desperate need of a time-warp to get all my interests aligned :)
๐ Iโm interested in ... whow a lot of things. given enough time among them i like
programming in PHP (my home zone), python, R, js, html, css
hiking, running, bouldering
skiing (including alpine, cross-country and touring), camping, caravaning
any kind of metal music as long as it has at least some good melody, groove or message to offer
๐ฑ Iโm currently learning ...
the hard way that a day is limited to 24 hours, so after subtraction of a minimum of sleep, too much work, family and a bit of social life
there is virtually no time left for my hobbies :)
๐๏ธ Iโm looking to collaborate on any project that
makes my day flow easier
makes my family happy
makes me do more with less effort
๐ซ How to reach me?
i am old-school at this point: drop me a personal message and I'll get back to you.
follow me @whateverSocialThingIsCoolRightNow and chances are good I will never answer, sorry ;)
So far, we try to ditribute the number of duties evenly between all workers.
This will fall short if a person is part time emplyee, since his/her duties should match the part time fraction.
Also when an employee is on vacation she would have to squeeze all duties into the remaining days of the month which is not desired by many.
2 Solutions come to mind:
in rules for even distribution, add a weighting factor (more work, probably more fine grained)
limit the maximum duties for a person (maybe easier to realize)
so far we assume that wishes have priority over other rules, so wishes-rules are parsed first.
no checks against violation of later rules at this time ( if a person wishes duty for 2 consecutive days she probably means "any one of these dates", but currently she will be assigned 2 consecutive days (if no other conflicting wishes exist)
wishes are randomized to avoid name based preference
first idea was to create an array of dates and short messages why a duty was (not) given to a certain person
later, I copied code from wishes.php where $this->debug is a collector for debug messages of all kinds.
mixing both seems dangerous, so untangling will be needed!