News for hackers. Stuff that matters.
Re:I built this 'HN inspired' site. What do you think? by diocles on Saturday February 12, 2011 @09:46AM (#2210075)
The first thing I spotted was that full domains weren't showing next to the links, so for example, story 3 is currently:

  Hosni Mubarak has resigned (co.uk)
Showing just the last two sections of the domain is clearly unexpected behaviour. :) The intention is clearly "TLD plus one more section", but not all TLDs are as short as ".com".

This reminds me of the difficulties with cookie domain validation - Mozilla actually contains a hardcoded list of top-level domains: https://wiki.mozilla.org/Public_Suffix_List

So you could either copy that, or just show the domain in full.

Re:I built this 'HN inspired' site. What do you think? by geekytenny on Sunday February 13, 2011 @05:09PM (#2214121)
You got me there. Plus i noticed that also. My solution was some crappy regex thing. i obviously need to do better.