Hacker News new | ask | show | jobs
by caporaltito 1032 days ago
> Thousands of lines of Javascript were spilled to do this in the past. Now browsers do it for you.

Alright. Now I want my date picker to have no rounded borders, the days in the weekend to be in a specific color and Wednesday to be in another one. And everything has to look the same according to your browser, of course. How does this guy do it?

5 comments

Is that something users would want? It seems preferable as a user to have a standard presentation for form items.
Indicating which days are available during a reservation flow seems like an obvious example.
I assume he gets 90% of the way with html5/css and then calls it a day. Accepts the limits and doesn't seek pixel perfection.
He does that because it is his own project and he does not have PM\BO and designer mandating how it should look.

He also does not have any real interactivity with the date picker - it simply picks date and saves value in a field. I am waiting when he goes into implementing filtering of rows in his 'csvbase' or any other slightly more complex interaction between items on the page ;)

He doesn't. That's the point.
Alright, I will tell my customer it is not possible then, before they leave for the competition who is willing to put the "thousands JS lines".
Tell your customer those features will add $50k and 3 weeks to the project cost, see how much they want them.
Or tell your customer how much more it will cost to write and maintain the "thousands" of lines of JS, and let them and let them say "nope".
They won’t say that, tho.
Everything is sales and everyone sells. If you can't sell your clients on why they shouldn't spend resources making a custom date picker, get a better salesperson in there.
More realistic example: I want to pick start & end dates. Think hotel reservation. Two separate popups is not a good enough user experience.