|
|
|
|
|
by Sidnicious
5462 days ago
|
|
I had a really interesting conversation about this with a coworker a few weeks ago. We were talking about URL design. I argued for URLs like this: /networks/
/networks/girl_talk/
/networks/girl_talk/tracks/
/search?term=bass&sort=artist
He argued for URLs like this (note the pluralization): /networks/
/network/girl_talk/
/network/girl_talk/tracks/
/search/bass/sort/artist/
My case boiled down to, “A URL represents the path to a resource. You should be able to remove any number of parts from the end of a URL and be left with a different, meaningful URL. In the case of search, the terms are options that describe what you want returned by the search, not resources.”His case boiled down to, “A URL is a sentence. You should be able to read a URL as English and get a good idea of what it represents. In the case of search, adding more path components adds words to the sentence to make the search more specific.” He pointed out (paraphrasing) that URLs are a language — and languages evolve. URLs as paths better embodies the RFC, but a new style of URL might be more meaningful on today’s (and tomorrow’s) web. |
|