默默无闻的英雄:Flickr 的网址方案
Unsung heroes: Flickr's URLs scheme

原始链接: https://unsung.aresluna.org/unsung-heroes-flickrs-urls-scheme/

作者认为2000年代末期Flickr的URL结构对其用户界面设计教育产生了深远影响。与当时常见的、参数繁多的URL(例如`www.flickr.com/Photos.aspx?photo_id=...`)不同,Flickr的URL简洁、易读且易于编辑——例如`flickr.com/photos/mwichary/favorites`。 这种简洁至关重要,因为URL经常被直接输入、分享和修改。Flickr的设计允许通过自动补全快速导航,通过退格轻松编辑,并无截断地无缝包含在文本中。可预测的结构甚至允许用户*猜测*相关的URL。 虽然今天像人类可读的slug这样的改进是可以想象的,但核心原则——在URL中优先考虑清晰度和可用性——仍然具有影响力。作者认为他们后续的许多工作都归功于Flickr的设计倡导者(可能是Cal Henderson)所树立的鼓舞人心的榜样,这证明了深思熟虑的URL设计具有持久的影响。

这个Hacker News讨论强调了Flickr网址方案中经常被忽视的优雅之处。大约在1999/2000年,网站从基于文件系统的网址过渡到更抽象、以资源为中心的网址——Flickr以其简洁的设计体现了这种转变。 评论员称赞简洁的网址是网站技术水平和管理员细致程度的指标,与某些维基网站上冗长的网址形成对比。然而,关于潜在“改进”存在争论。一位用户认为*移除* `/photos` 前缀实际上会*降低*效率,因为它目前允许快速的用户数据库检查和准确的404错误处理。 这次对话强调,看似简单的设计选择,例如网址结构,会对性能和可维护性产生重大影响。
相关文章

原文

Half of my education in URLs as user interface came from Flickr in the late 2000s. Its URLs looked like this:

flickr.com/photos/mwichary/favorites
flickr.com/photos/mwichary/sets
flickr.com/photos/mwichary/sets/72177720330077904
flickr.com/photos/mwichary/54896695834
flickr.com/photos/mwichary/54896695834/in/set-72177720330077904

This was incredible and a breath of fresh air. No redundant www. in front or awkward .php at the end. No parameters with their unpleasant ?&= syntax. No % signs partying with hex codes. When you shared these URLs with others, you didn’t have to retouch or delete anything. When Chrome’s address bar started autocompleting them, you knew exactly where you were going.

This might seem silly. The user interface of URLs? Who types in or edits URLs by hand? But keyboards are still the most efficient entry device. If a place you’re going is where you’ve already been, typing a few letters might get you there much faster than waiting for pages to load, clicking, and so on. It might get you there even faster than sifting through bookmarks. Or, if where you’re going is up in hierarchy, well-designed URL will allow you to drag to select and then backspace a few things from the end.

Flickr allowed to do all that, and all without a touch of a Shift key, too.

Any URL being easily editable required for it to be easily readable, too. Flickr’s were. The link names were so simple that seeing the menu…

…told you exactly what the URLs for each item were.

In the years since, the rich text dreams didn’t materialize. We’ve continued to see and use naked URLs everywhere. And this is where we get to one other benefit of Flickr URLs: they were short. They could be placed in an email or in Markdown. Scratch that, they could be placed in a sentence. And they would never get truncated today on Slack with that frustrating middle ellipsis (which occasionally leads to someone copying the shortened and now-malformed URL and sharing it further!).

It was a beautiful and predictable scheme. Once you knew how it worked, you could guess other URLs. If I were typing an email or authoring a blog post and I happened to have a link to your photo in Flickr, I could also easily include a link to your Flickr homepage just by editing the URL, without having to jump back to the browser to verify.

Flickr is still around and most of the URLs above will work. In 2026, I can think of a few improvements. I would get rid of /photos, since Flickr is already about photos. I would also try to add a human-readable slug at the end, because…
flickr.com/mwichary/sets/72177720330077904-alishan-forest-railway
…feels easier to recall than…
flickr.com/photos/mwichary/sets/72177720330077904

(Alternatively, I would consider getting rid of numerical ids altogether and relying on name alone. Internet Archive does it at e.g. archive.org/details/leroy-lettering-sets, but that has some serious limitations that are not hard to imagine.)

But this is the benefit of hindsight and the benefit of things I learned since. And I started learning and caring right here, with Flickr, in 2007. Back then, by default, URLs would look like this:

www.flickr.com/Photos.aspx?photo_id=54896695834&user_id=mwichary&type=gallery

Flickr’s didn’t, because someone gave a damn. They fact they did was inspiring; most of the URLs in things I created since owe something to that person. (Please let me know who that was, if you know! My grapevine says it’s Cal Henderson, but I would love a confirmation.)

联系我们 contact @ memedata.com