Daily Archives: September 12, 2006

What may seem trivial may actually be a nightmare

I wanted to have a routine that, given a hostname will return me the “main domain” component of it. That is, let’s say I give it “poeticcode.wordpress.com”, it should return “wordpress.com”. Simple right? Wrong! Checkout how complex this could get if you were to address all possible tlds and sub-tlds.

Now, imagine some project manager factoring time for this routine. Perhaps 10 minutes? But it could turn out to be a day or may be even more if you have to test it out thoroughly.

Leave a comment

Filed under Domain Names, Technical Article