News for hackers. Stuff that matters.
Re:How a simple Node.js project turned into Iron Scheduler by cpeterso on Sunday December 29, 2013 @06:38PM (#6982100)
A clever idea I read about scheduling recurring jobs is to use prime numbers for interval durations to avoid inadvertent synchronization of jobs.
Re:How a simple Node.js project turned into Iron Scheduler by dspillett on Sunday December 29, 2013 @07:12PM (#6982270)
That is quite a commonly useful technique (that I'm surprised more people don't know about).

Straying of topic a little...

You can use repeating patterns with prime periods to generate large tiling backgrounds that don't exactly repeat for a long time and so forth (the method is used in many games with procedurally generated landscapes to apply textures that don't repeat often enough to be noticable).

Even nature makes use of prime periods to avoid clashes.

See http://www.sitepoint.com/the-cicada-principle-and-why-it-mat... for more detailed examples.

Re:How a simple Node.js project turned into Iron Scheduler by riffraff on Sunday December 29, 2013 @06:59PM (#6982211)
I don't understand how using a regex expressed over a string representation of a datetime is an improvement over the crontab format.