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

Yeah every other travel site seems to at least show you the proper date range. Let's not make excuses for shitty work, a date picker component isn't an NP Complete problem.


It is not.

Though, it’s interesting to note that once when I took a date picker component and attempted to morph it into a full-blown MacOS calendar, with calendar appointments that slot into different time slots and don’t overlap, I found that that is an NP-Hard bin packing problem.


My comment was not meant to be an apology of any sort at all. Quite the opposite! Not all datepickers are as broken as this one, but that doesn’t mean the situation where everyone keeps reinventing things is a good one.


>Let's not make excuses for shitty work, a date picker component isn't an NP Complete problem.

...how would one even define a complexity class for date picker components?




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

Search: