ENGINEERING 66 upvotes 2022

How I built a date picker

66 pts
Hacker News Signal
2022 · Shared by @zsbenke
How I built a date picker by @zsbenke

Retrospective Overview & Key Insights

Distilled reflections, business mechanics, and tactical takeaways:

In this technical retrospective (2022), @zsbenke shares practical architectural lessons learned from running, scaling, or migrating production software under lean constraints.

Core Principles for Independent Builders:
1
Defaulting to simpler architectures (such as monolithic frameworks, SQLite, or managed VPS) prevents early engineering bankruptcy.
2
Evaluating true compute and egress costs reveals that high cloud bills can often be slashed by 80%+ through judicious re-platforming.
3
Code you write at 2 AM as a solo engineer must be easy to debug six months later without complex microservice dependencies.
Community Debate Themes:

HN engineers debated the tradeoffs between cloud convenience and raw server economics, database indexing strategies, and resisting premature architectural complexity.

Community Discussions & Critical Reviews

Key perspectives, counter-arguments, and peer founder insights debated on Hacker News (56 total discussions):

KR @kristopolous Peer Contributor
HE @helsinkiandrew Peer Contributor

What would improve my quality of life is if date pickers used some global cookie mechanism to share recent dates between websites. The number of times I'm looking at flights/hotels around the web and have to keep entering the same date on infuriatingly different date pickers is soul destroying.

At least allow a date to be pasted in and have the logic to accept if the user has entered something thats different from what the backend needs but makes sense for the the current date and their locale: "22 feb" "22/02/2022" "22/2" "2/22" etc

XI @ximm Peer Contributor

Please please please don't do this! This article doesn't even mention ARIA and the result would fail any accessibility audit.

There is really no way to implement this in JS anyway because all major browsers have native date pickers by now: https://caniuse.com/input-datetime ↗

CS @csense Peer Contributor

Why does every website in the world insist on having its own massively over-engineered GUI to solve this problem?

Use a text entry field, validate it with a regex, and have an error message that says "YYYY-MM-DD plz" if it fails the regex.

BU @buryat Peer Contributor

I mostly gave up on date pickers, I prefer entering a datetime as text and if it can automatically figure out the format I'm using then it's godsend. Clicking tiny buttons with unknown behavior takes way too much time

HISTORICAL ERA Pandemic Bubble (2020–2022)
COMMUNITY SCORE 66 points
TOTAL DISCUSSIONS 56 comments
TOPICS & TECH STACK: