5 ms·
I'm not entirely sure why HN doesn't just display the full hostname. Displaying only the domain and TLD is actually harder than just displaying the full hostna
by jemfinch 15y ago
I'm not entirely sure why HN doesn't just display the full hostname. Displaying only the domain and TLD is actually harder than just displaying the full hostname, and I don't think there's a major risk of spammers using the hostname as some covert advertising mechanism.
- derefr 15y ago> Displaying only the domain and TLD is actually harder than just displaying the full hostname Perhaps it just reuses the result of some work it's already doing in order to cluster karma/number-of-replies/something else on a per-domain basis, for some sort of convenient analytics. Just a charitable guess.
- underwater 15y agoIt's broken in other ways though. It incorrectly truncates some country TLD's. I noticed "co.ke" being displayed for some domains recently.
- robryan 15y agoYeah, I haven't looked at the source but there isn't an algorithmic way to remove subdomains without a huge lookup list to cover all the edge cases.