Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Welcome to Business Logic. This is where I'd really like pushback to result in things that aren't edgecases.

However you also run into day to day business issues like:

* What if it's now a Holiday and things are closed?

* What if it's some commonly busy time like winter break? (Not quite a single holiday)

* What if a disaster of somekind (even just a burst waterpipe) halts operations in an unplanned way?

Usually flexability needs to be built in. It can be fine to 'target' +3 months, but specify it as something like +3m(-0d:+2w) (so, add '3 months' ignoring the day of month, clamp dom to a valid value, allow 0 days before or 14 days after),



Do all edge cases need to be handled? Just be late when there's a holiday.

72 business hours sounds more like human time than computer time anyways.


Yes, basically, they do need to be handled, but you have to define that for your own case. It's a real pain, if you have to do month math.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: