News for hackers. Stuff that matters.
Re:You can use recursion in real life by 66d8kk on Saturday February 08, 2014 @12:38PM (#7201831)
Just a thought and I've only glanced at your code but could some of the functionality in the Carbon library come in handy? especially for the logic in weekendDates()?

I like to think of it as DateTime on acid ;)

https://github.com/briannesbitt/Carbon

Re:You can use recursion in real life by Kluny on Saturday February 08, 2014 @10:27PM (#7204203)
Quite possibly, I'll check it out. We're already using the CakePHP framework, do you think Carbon would be compatible with it?
Re:You can use recursion in real life by th0br0 on Saturday February 08, 2014 @05:03PM (#7202976)
Why don't you cache $weekends though? Given that you're constantly recalculating it, it probably has a serious performance impact?
Re:You can use recursion in real life by Kluny on Saturday February 08, 2014 @10:26PM (#7204199)
I think the framework caches it automatically, but good point, I should check that.