Live data from Hacker News

Pickadate.js

github.com

111–120 of 130 posts

Re: Pickadate.js

#111

A few random comments... This value is not what it says: SECONDS_IN_DAY = 86400000, That's the number of milliseconds in a day. Instead of a magic precalculated number, why not create all the relevant constants so the values become perfectly clear: HOURS_IN_DAY = 24, MINUTES_IN_DAY = HOURS_IN_DAY * 60, SECONDS_IN_DAY = MINUTES_IN_DAY * 60, MILLISECONDS_IN_DAY = SECONDS_IN_DAY * 1000, Personally, I find these kinds of…

Looks like you were trying to send pull requests?

Re: Pickadate.js

#112

Deperately needs localisation support. In the UK weeks start on Monday, not Sunday as they do in the US. This is a big deal.

Is it really critical? If you take the datepicker of the TFL official website (http://www.tfl.gov.uk/) they start the week on sunday too. But I agree it can be a pain when you assume the first day is monday.

Re: Pickadate.js

#113

Deperately needs localisation support. In the UK weeks start on Monday, not Sunday as they do in the US. This is a big deal.

And this is why the author will slowly realize why the other datepickers aren't so "lightweight" - because they solve a hard problem.

Re: Pickadate.js

#115
Very nice.

1) I think you should put a little tiny triangle / down arrow on the right side of the text-box to give it the official "selection" ui signal.

2) I think you should NOT grey out dates that have already passed and are not selectable but instead keep them the same black color as the others, just them. They're really hard to see when grayed out that much and it confused me a little bit when I first saw the month.

Re: Pickadate.js

#116
post #100
post #51

Earlier quoted context omitted.

There you go - this will make your life easier then: http://dojotoolkit.org/reference-guide/1.8/dijit/form.html#d...

Please, never use the Dojo Toolkit. I was forced to use it on a project and working with it was reinventing the wheel while pulling out hair. It was overly complicated for something that needed to be straightforward and simple.

Out of curiosity - what did you had to reinvent? The whole point is so that you could use existing components provided to you.

Re: Pickadate.js

#117
post #59
post #54

Earlier quoted context omitted.

Too bulky in my opinion. I don't need 90 percent of the things in that sdk.

I should add, I also feel like these big frameworks have all the components and dont do a good job of each component. I rather use something that is by itself but the author is passionate about the widget and it is the best it can be.

It should not be a matter of "feeling", but testing things out. Usually frameworks like Jquery UI, YUI, dojo toolkit do a very good job, jquery doesn't provide any widget infrastructure, but still it does a good job afaik.

Re: Pickadate.js

#118

> whereas jQuery UI datepicker is 42kb minified For anyone who cares, the Closure Compiler gets jQuery UI Datepicker down to 30kb (11kb gzipped). Not quite as drastic as he claims but still significantly larger compared to his 6.7kb (2.8kb gzipped).

What functionality is sacrificed for size?

Re: Pickadate.js

#119

Deperately needs localisation support. In the UK weeks start on Monday, not Sunday as they do in the US. This is a big deal.

Is it really critical? If you take the datepicker of the TFL official website ( http://www.tfl.gov.uk/ ) they start the week on sunday too. But I agree it can be a pain when you assume the first day is monday.

Yeah, I've booked travel on the wrong dates before because I've selected the dates visually. Really annoying. As you've spotted it's an endemic problem in the UK, and it needs fixing. Even Apple get it right, and they have a strong bias to USA-ify (at least more than, say, Microsoft).
Post reply on HN