Twitt.er, Twe.et or Tw.it?
Tuesday, December 8, 2009Back in the early days of Twitter, also known as the ancient times of 2006, sharing links on Twitter was a huge problem. A link to a particularly insightful blog would look like this:
Having only 140 characters at your disposal, this means that posting that great link just took up over 100 of your available characters to tweet about it.
Soon, the micro-blogging service realized the issues and as a result, automatically started shortening long URLs to make its users save on space for their 140-character updates.
To accomplish this end, Twitter used TinyURL, ( www.tinyurl.com) a service that shortens URLs. How does this work?
Every long URL is associated with a key, which is the part after http://domain.tld/. For example http://tinyurl.com/m3q2xt has a key of m3q2xt. There are several techniques used to shorten names; keys can be generated numerically in base 36, which assumes 26 letters and 10 numbers.
The keys in order would be 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, and then the alphabet a, to z. If uppercase and lowercase letters are accepted then the number should be in base 62 (26 + 26 + 10).
