27 Aug

Tantek – How many ways can you slice a URL and name the pieces?

I was developing a small single purpose microsite and decided to build it using CASSIS not just for application logic, but for the server-side runtime execution and flow as well. I figured the needs of a simple real world site would work well to drive the design of a simple runtime.

No need to invent anything new, just re-use Apache/CGI environment variables (e.g. as used in PHP, like SERVER_NAME). But they look like old C constants, and CASSIS coders will be more familiar with Javascript.

Window.location’s properties seem reasonable, until you get to "search" for the "?" query part of a URL. What about the source, the specs for URL and HTTP? And that’s when I started to see the problem.

With a little more research I found a half-dozen different ways to slice and dice URLs. Kevin Marks asked me, what about Python? And that made seven. I published my research publicly on the microformats wiki, which is a good place to document existing formats for something (a key step in the microformats process).

Among all the differences (and overloading of the same terms to mean different things) it did seem that there were some patterns. So I made a diagram of a sample URL, chopped into pieces and named according to seven different conventions over the years, in the hopes that doing so might reveal such patterns.

via Tantek – How many ways can you slice a URL and name the pieces?. Or standards are so awesome everyone keeps making a new one.

19 Feb

Quora – What will happen to http://bit.ly links when Gaddafi shuts down the Internet in Libya due to protests?

Should Libya block Internet traffic, as Egypt did, it will not affect http://bit.ly or any .ly domain.

For .ly domains to be unresolvable the five .ly root servers that are authoritative *all* have to be offline, or responding with empty responses. Of the five root nameservers for the .ly TLD: two are based in Oregon, one is in the Netherlands and two are in Libya.

via Quora – What will happen to http://bit.ly links when Gaddafi shuts down the Internet in Libya due to protests?. I use their bit.ly pro service to for my short links through http://jty.me/.

06 Feb

Warpspire – URL Design

You should take time to design your URL structure. If there’s one thing I hope you remember after reading this article it’s to take time to design your URL structure. Don’t leave it up to your framework. Don’t leave it up to chance. Think about it and craft an experience.

URL Design is a complex subject. I can’t say there are any “right” solutions — it’s much like the rest of design. There’s good URL design, there’s bad URL design, and there’s everything in between — it’s subjective.

via Warpspire – URL Design. Might I suggest that The San Fransisco Chronicle read this article for improving their urls. The article also gives a good look into the new Javascript API’s for pushing url states into the browser’s history and address bar.