Live data from Hacker News

Pickadate.js

github.com

91–100 of 130 posts

Re: Pickadate.js

#91
post #40

https://github.com/amsul/pickadate.js/blob/gh-pages/pickadat... the code is a giant var statement. I don't know why, but somehow that bothers me.

looks like a single var pattern inside an immediately invoked function expression to me. works well and great for readability

Thank you for not calling it a "self-executing anonymous function".

Re: Pickadate.js

#94
post #77
post #29

Earlier quoted context omitted.

The fact that the code is very neat and is well documented bothers me. Also the fact that javascript is a lot more readable when you put a blank line between every two lines bothers me (a lot!). And that it works perfectly and looks great, man that bothers me.

// If datePassed is true else if ( datePassed === true ) { Yes, very well documented. >.>

Indeed. In fact, I'd posture that the comments, after the first, are wrong; the lines' intents are to _set_!

    // Set the element as readonly
    element.readOnly = true

    // Get the date today
    DATE_TODAY = P.getDateToday()

    // Get the date to select
    DATE_SELECTED = P.getDateSelected()

    // Get the month to focus
    MONTH_FOCUSED = P.getMonthFocused()

    // Get the date ranges
    DATE_MIN = P.getDateRange( SETTINGS.date_min )
    DATE_MAX = P.getDateRange( SETTINGS.date_max, 1 )

Re: Pickadate.js

#95
post #31
post #30

A javascript date picker? Is HN being very expertly trolled?

No. DatePickers, along with Forms, are the bane of my existence. More choices that are brought to light, the better.

Agreed! I had no idea how many bad ones there were until I needed one for a project.

Re: Pickadate.js

#96

I really like the datepicker on https://www.google.com/flights/ . I wish someone would clone it for jQuery.

It seems to be far faster than the rest of the datepickers people have linked to on this page, as well. Feels great to use.

Re: Pickadate.js

#99
Looks cool but on iOs it won't let you close the picker unless you select a date other than what's selected. Touching the input again might be a good way to close it.

Re: Pickadate.js

#100
post #51
post #31

Earlier quoted context omitted.

No. DatePickers, along with Forms, are the bane of my existence. More choices that are brought to light, the better.

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.
Post reply on HN