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.

Advertisements

Leave a comment

Filed under Domain Names, Technical Article

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s