164 points · by Raphael · 16y ago · 145 comments
Which URL would you rather paste in an email for readability's sake:
http://maps.google.com/maps?f=d&source=s_d&saddr=Oak...
or
In context, the recipient should have no problem anticipating the URL's end point (i.e., you probably just wrote something like, "here are some directions to my house:"), but using the shortened URL makes the email much more readable and prevents any potential screwy scrolling issues that might be caused by an ultra unwieldy URL borking their email software.
That's just one non-microblogging use case for one site that spits out very long dynamic URLs -- there are many use cases for many sites.
TinyURL, et. al. certainly did (and continue to) solve a problem, imho. And they've become even more useful for microblogging sites like Twitter, on which character limit constraints (which essentially defines that type of service) require that URLs be shortened.
[EDIT: I know HN auto truncated that Google Maps URL, but it is a 355 characters long -- and most email software (my use case) wouldn't auto truncate the URL in the same way. So readability would be negatively affected for the recipient by using the long URL instead of the short one.]
There are some situations where URL shortening is arguably useful. But there's absolutely no reason why "microblogging" should be one of them.
What I would normally do is something like this "<loads of text> Check out my map here [1] <more text>" and at the end put "[1] http...", that way a giant ten page url doesn't interfere with the message, yet I don't have to shorten it either. If I think the precipitant won't understand what I mean, I'd put more details in, eg [1 below]
The ONLY place where I'd consider using a url shortener is printed material, since its easier to type in by hand than a giant url, but this has the same dead link problem, especially if printed in magazines.
Even on twitter it's a stupid artificial restriction. It would be pretty trivial to show minified links for SMS alerts (Which is a tiny amount of twitter anyway now), and show full URLs for everyone else. Then clients could show the urls how they like.
The maps URLs are ridiculous. Google should provide their own shortener for these imo. Then you get the best of both worlds, smaller more readable URLs and within a domain you recognize / trust.
I do not use them, but long URLs are a pain in many contexts, and it's not always possible to [link]wrap a tag around it[/link]. Server > client communication has gotten incredibly flexible, but client > server or client > peer communication is still mostly text-driven, and many URLs are not text-friendly or human-friendly.
The widespread use of these shorteners strongly argues that they do solve a problem, just not one that matters to you as a programmer.
http://milkandcookies.net/2008/07/12/?lang=en_US&cntry=US&source=http%3A%2F%2Fwww.google.com%2Fsearch%3Fq%3D123%26lang%3Den-US&geoloc=-45.001,-53.175
is pretty readable and useful!2- The real domain we're looking at: "to" -- no "suffix" attached (TLD: top-level domain)
3- The .to registry added an A-record for the "to" domain, which resolves correctly.
[Edit: Looks like .cm does this too:
;; ANSWER SECTION:
cm. 86400 IN A 195.24.205.60]
So if your ISP is AOL, you might have a search path of aol.com so looking up "to" will first try to.aol.com if that exists it will go there. Putting a "." at the end will let it go straight there.
This isn't normally a problem because it's not like aol is going to set up google.com.aol.com. But really everyone should have periods at the end of domains.
And for the record, chrome and ie no worky for me either. Firefox does though.
'THINK ABOUT IT: If your grandmother sees this link: http://bit.ly/zPWG6 she'll think, "Hmm, does someone want me to fly to Lithuania to get my teeth fixed?"'
#!/usr/bin/perl
#
use WWW::Mechanize;
die "usage: $0 <url>" unless @ARGV;
$name = 'a';
$m = WWW::Mechanize->new;
while (1) {
print "Trying http://to./$name\n";
$m->post('http://to./', {
url => $ARGV[0],
name => $name,
'Witz that URL!' => 'Witz that URL!'
});
unless ($m->content =~ /sorry/) {
print "You got http://to./$name\n";
exit(0);
}
$name++;
}Succeeded, but sadly http://to./ rewrote it to http://index.php instead.
This could partially be based on all file-extensions being in the file-data rather than in the name and all folders having an "index" file that represented them (which could, then, be any type of file). I'd like to have an explanation for down-votes, please.
Not the world's best URL shortener...
This is blindingly obvious. A few characters shorter just doesn't matter.
I also like to know where people are sending me, but that is a secondary concern.
:)
This: http://to./z0ba1
Not this: http://to/z0ba1
With the dot it works, but then the browser fixes up the url, and removes the dot - so all subsequent requests don't work.
(This is for me, using firefox on linux.)
edited for spelling mistake
(edit: turns out it's actually run by the ISP who operates the .to TLD)
like me...
They do it better though http://tk./abcde is http://abcde.tk which is even on character shorter ;)