frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Building Better Country Selects

https://talysto.com/blog/building-better-country-selects/
8•dlrush•2h ago

Comments

goodmythical•2h ago
yeah the standard country dropdown is basically a scrollathon from hell and nobody wants to play "find the united kingdom" when they're just trying to buy some socks real quick
klondike_klive•1h ago
It's a mess. Do I look in the list of frequently-selected countries and hope to find that we're still in there? Or look for UK? United Kingdom? Great Britain?

I've been foxed before in American forms where I'm forced to select UK but it shows up as GB, even though there is no GB in the list! Every time I come to fill out the form I look at what I did last year and go through the same anti-pattern.

simosmik•2h ago
I like the flags and extra search metadata however it does look quite big. My intial reaction was to scroll, not to press a button to find a country. Still better than the current one though. I'd love to see also a better country phone number selection which in a lot of cases does not even work as it should
forthwall•1h ago
I feel like the best solution is a custom dropdown, instead of a modal, modals rreally take you out of context, when you're editing a form, its a bit jarring to be thrown to a modal, the best country select in my opinion is what you've listed, but also it's in a dropdown.
blturner•1h ago
better yet https://zipcodefirst.com
nlawalker•1h ago
This was discussed a few days ago in https://news.ycombinator.com/item?id=47292485

EDIT to remove negativity, was unnecessary.

Gualdrapo•1h ago
> A full country list inside a native `<select>` has several structural limitations:

> No filtering. Users cannot narrow the list by typing

But you can use an `<input type="text">` instead and add a `<datalist>`[0] to it with the list of countries and you will be able to filter them by typing. Granted, it still has no full support (namely, firefox), but still that's much better than a `<select>` with no filtering ability whatsoever.

Not sure why this is not more known, though, I've seen it just like a couple of times in the wild. Now, back to job searching...

[0] https://developer.mozilla.org/es/docs/Web/HTML/Reference/Ele...

quesera•1h ago
In English: https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/...

:)

LollipopYakuza•1h ago
tl;dr use an autocomplete dropdown
acjohnson55•50m ago
I like the idea of smarter filtering. But I wonder how a modal interacts with automatic form filling.

I don't care for the chaotically ordered list of countries after the suggested country.

I think a better version would be nonmodal, but with a modal button to expose more powerful browsing.

I also question why we have to fill out so many forms in the first place. We should have better ways by now to get frequently used bundles of info to counterparties.

Apple releases iOS 15.8.7 to fix Coruna exploit for iPhone 6S from 2015

https://support.apple.com/en-us/126632
23•seam_carver•20m ago•4 comments

Temporal: A nine-year journey to fix time in JavaScript

https://bloomberg.github.io/js-blog/post/temporal/
514•robpalmer•10h ago•179 comments

Many SWE-bench-Passing PRs would not be merged

https://metr.org/notes/2026-03-10-many-swe-bench-passing-prs-would-not-be-merged-into-main/
130•mustaphah•4h ago•38 comments

Don't post generated/AI-edited comments. HN is for conversation between humans.

https://news.ycombinator.com/newsguidelines.html#generated
2725•usefulposter•6h ago•998 comments

Making WebAssembly a first-class language on the Web

https://hacks.mozilla.org/2026/02/making-webassembly-a-first-class-language-on-the-web/
400•mikece•20h ago•145 comments

Show HN: A context-aware permission guard for Claude Code

https://github.com/manuelschipper/nah/
24•schipperai•2h ago•20 comments

I was interviewed by an AI bot for a job

https://www.theverge.com/featured-video/892850/i-was-interviewed-by-an-ai-bot-for-a-job
141•speckx•7h ago•142 comments

Show HN: I built a tool that watches webpages and exposes changes as RSS

https://sitespy.app
164•vkuprin•9h ago•45 comments

Show HN: Autoresearch@home

https://www.ensue-network.ai/autoresearch
31•austinbaggio•2h ago•10 comments

Google closes deal to acquire Wiz

https://www.wiz.io/blog/google-closes-deal-to-acquire-wiz
228•aldarisbm•10h ago•155 comments

Show HN: s@: decentralized social networking over static sites

http://satproto.org/
10•remywang•1h ago•1 comments

The MacBook Neo

https://daringfireball.net/2026/03/the_macbook_neo
388•etothet•14h ago•671 comments

BitNet: 100B Param 1-Bit model for local CPUs

https://github.com/microsoft/BitNet
303•redm•13h ago•149 comments

CNN Explainer – Learn Convolutional Neural Network in Your Browser (2020)

https://poloclub.github.io/cnn-explainer/
20•vismit2000•3d ago•1 comments

Meticulous (YC S21) is hiring to redefine software dev

https://jobs.ashbyhq.com/meticulous/3197ae3d-bb26-4750-9ed7-b830f640515e
1•Gabriel_h•4h ago

Entities enabling scientific fraud at scale (2025)

https://doi.org/10.1073/pnas.2420092122
258•peyton•12h ago•187 comments

5,200 holes carved into a Peruvian mountain left by an ancient economy

https://newatlas.com/environment/5-200-holes-peruvian-mountain/
94•defrost•1d ago•49 comments

Tested: How Many Times Can a DVD±RW Be Rewritten? Methodology and Results

https://goughlui.com/2026/03/07/tested-how-many-times-can-a-dvd%C2%B1rw-be-rewritten-part-2-metho...
13•giuliomagnifico•3d ago•0 comments

Show HN: Klaus – OpenClaw on a VM, batteries included

https://klausai.com/
115•robthompson2018•9h ago•68 comments

Preliminary data from a longitudinal AI impact study

https://newsletter.getdx.com/p/ai-productivity-gains-are-10-not
31•donutshop•4h ago•21 comments

Against vibes: When is a generative model useful

https://www.williamjbowman.com/blog/2026/03/05/against-vibes-when-is-a-generative-model-useful/
42•takira•1d ago•4 comments

Atlassian to cut roughly 1,600 jobs in pivot to AI

https://www.reuters.com/technology/atlassian-lay-off-about-1600-people-pivot-ai-2026-03-11/
82•jp0d•3h ago•114 comments

Personal Computer by Perplexity

https://www.perplexity.ai/personal-computer-waitlist
110•josephwegner•7h ago•98 comments

Swiss e-voting pilot can't count 2,048 ballots after decryption failure

https://www.theregister.com/2026/03/11/swiss_evote_usb_snafu/
155•jjgreen•12h ago•350 comments

How we hacked McKinsey's AI platform

https://codewall.ai/blog/how-we-hacked-mckinseys-ai-platform
390•mycroft_4221•15h ago•164 comments

Physicist Astrid Eichhorn is a leader in the field of asymptotic safety

https://www.quantamagazine.org/where-some-see-strings-she-sees-a-space-time-made-of-fractals-2026...
111•tzury•9h ago•16 comments

Britain is ejecting hereditary nobles from Parliament after 700 years

https://apnews.com/article/uk-house-of-lords-hereditary-peers-expelled-535df8781dd01e8970acda1dca...
161•divbzero•4h ago•150 comments

Show HN: Open-source browser for AI agents

https://github.com/theredsix/agent-browser-protocol
106•theredsix•11h ago•34 comments

Launch HN: Prism (YC X25) – Workspace and API to generate and edit videos

https://www.prismvideos.com
34•aliu327•9h ago•16 comments

Building a TB-303 from Scratch

https://loopmaster.xyz/tutorials/tb303-from-scratch
211•stagas•4d ago•87 comments