Remix.run Logo
Unsung heroes: Flickr's URLs scheme(unsung.aresluna.org)
103 points by onli 3 days ago | 36 comments
steerpike 4 hours ago | parent | next [-]

Flickr deserves a lot of praise for a number of technical advances that I wish had seen wider adoption. Their API was one of the first and honestly still one of the most enjoyable to actually use as a developer. It's still full of incredibly interesting API calls that you wouldn't expect from it unless you read carefully. Did you know, for example, that flickr API will provide you with the bounding box co-ordinates of different types of places? From a neighbourhood all the way up to a continent?

They implemented the Where On Earth ID (WOEID) which was a super useful way of disambiguating different places that shared latitude and longitude (for example, being able to disambiguate the Sydney Opera House, Circular Quay and Sydney Harbour which all can potentially share the same lat/long co-ords).

They implemented machine tags which are tags in the form of -

namespace:predicate=value

Which, when it was implemented by other sites with machine tags allowed you to get and group all kinds of interesting combinations of content.

Yeah, honestly flickr had some incredible tech the was so much fun to explore and use. That their vision of what the web could be wasn't the one that won is one of the great losses of the web IMO.

TrackerFF 15 minutes ago | parent | prev | next [-]

I don't know how much Flickr is used these days, but I remember it was quite popular some 15 years ago. I decided to search around, and discovered that it is a treasure trove of photos from the period 2005 - 2015, and incredibly easy to search / filter.

Internet archeology is something I've always found fascinating, and I don't think people realize how much data has been lost after we moved to the modern "big tech" internet of today. So many data hosting services disappear back in the mid/late 00s, and with that, the data too. After social media exploded, many just stared storing all their photos there.

eloisius 12 minutes ago | parent [-]

It still has plenty of active users (myself included) but it feels much smaller than the 2010s. The groups are great if you can find ones that match your taste, and it’s way more fun to do that and share you photos with human-curated communities than with the algorithmic feed.

NKosmatos 2 hours ago | parent | prev | next [-]

I agree 100% with the author, clean, easily readable and well structured URLs make the web a better place. URL is a hierarchical structure as introduced in the RFC1738 by a guy you might have heard, Tim Berners-Lee, the inventor of the World Wide Web :-) https://www.rfc-editor.org/rfc/rfc1738

Easily readable URLs is something I learned in the 90s and I still try to enforce in everything I create.

noduerme an hour ago | parent [-]

I'm a big fan of writing little bits of code into my URL routers that check for pages and try to correct typos. So if someone types https://some-awesome-site.org/jhon-davisdon it will check and correct it to /john-davidson. What's nice is always delivering the "canonical" link rel when you serve the correct page that way, too. I make the assumption that people still try to type links, sometimes ;)

xnx 11 minutes ago | parent [-]

Sounds like mod_speling for Apache: https://httpd.apache.org/docs/current/mod/mod_speling.html

antonyh an hour ago | parent | prev | next [-]

Flickr was a hero, then yahoo/smugmug killed it. It's still there, but along the way all changes reduced it to an also-ran. It's still a nice tool, but I just don't see myself using it again. The URL scheme, as neat as it was, I never noticed or cared to hack at. I just wanted to upload photos.

dewey 33 minutes ago | parent | next [-]

> then yahoo/smugmug killed it

I understand the Yahoo part, but what do you mean with smugmug? My impression was that they bought it and "revived" it but I might misremember the history there.

embedding-shape 42 minutes ago | parent | prev [-]

> I just wanted to upload photos.

Flickr is an unsung hero in this. I uploaded photos back in 2011 when I purchased my first DLSR camera, and had forgotten about them until this day, and seems they're still up! Did some other checks for content I uploaded back then, and seemingly only my YouTube and Vimeo videos are still up, everything else I spot checked from the same period seems to be gone by now.

Kind of neat for a free photo hosting platform.

socalgal2 5 hours ago | parent | prev | next [-]

> I would also try to add a human-readable slug at the end, because…

No? Because what would it be based on and if you edited the thing that it's based on then the URL would either change, or get out of sync which woudl suck. You could ignore the suffix meaning flickr.com/mwichary/sets/72177720330077904-<everything-past-the-previous-dash-is-ignored> I'm not sure if that would be a positive, although I guess S.O. does something like that. The issue is other sites really want to know if it's a link to the same resource or a different resource. And while you could redirect to the new one that just makes more work for everyone.

> I would get rid of /photos

I wouldn't because then you'd had have https://flickr.com/settings but that would not be a user named "settings" and the same for every other alternate purpose URL

shakna 2 hours ago | parent | next [-]

> The issue is other sites really want to know if it's a link to the same resource or a different resource.

Thats what the canonical link is for, isn't it? [0]

RFC 6596 introduced it in 2012. Other websites, like search engines or social media, have been using it for a while.

[0] https://developers.google.com/search/docs/crawling-indexing/...

KomoD 4 hours ago | parent | prev [-]

> You could ignore the suffix meaning flickr.com/mwichary/sets/72177720330077904-<everything-past-the-previous-dash-is-ignored> I'm not sure if that would be a positive, although I guess S.O. does something like that.

That's usually how people do it.

onli 4 hours ago | parent [-]

Yes, I saw that multiple times in blog engines, with the entry title being the optional part.

Tepix a day ago | parent | prev | next [-]

Concise URLs deserve more praise.

Also, when you look at a site and see URLs like /wiki/index.php/MyPage it tells you about the skill level and care of the site administrators.

theshrike79 5 hours ago | parent [-]

And a bit about the skill of whoever made the wiki software, they need better documentation and automation to help even less-skilled admins to have clean URLs

flexagoon 11 minutes ago | parent [-]

They do have a guide for it

https://www.mediawiki.org/wiki/Manual:Short_URL

outofmyshed 5 hours ago | parent | prev | next [-]

The shift from URLs accessing resources on file systems to more abstract resources (implicitly HTML unless the headers said otherwise) occurred around 1999/2000. Suddenly we were all doing it once we’d figured out the necessary Apache directives. It wasn’t just Flickr, although it and its APIs were a good example of clean URL design

benterix 2 hours ago | parent | prev | next [-]

Unfortunately things are going in the opposite direction with media platforms creating an encoded blob impossible to edit by hand so that you (or a tool) cannot strip tracking etc.

amadeuspagel 4 hours ago | parent | prev | next [-]

> (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.)

I could try to imagine these limitations and how the Internet Archive overcomes them, but I'd prefer reading about it.

akares a day ago | parent | prev | next [-]

However, getting rid of the /photos prefix would be a terrible improvement.

Having the /{username} at the root of the routing logic means that every URL should either query the user database for a match or use /{username} as a catch-all fallback if no other patterns match. But this makes resolving real 404 pages much more expensive.

dcminter 4 hours ago | parent [-]

If you delete the photos path element they do actually have a fallback resolver that redirects you to the appropriate path under photos.

E.g. flickr.com/mwichary/sets/72177720330077904 does take you to flickr.com/photos/mwichary/sets/72177720330077904

nkrisc 2 hours ago | parent | prev | next [-]

Isn’t the /photos kind of necessary since usernames are UGC? What if a username is “about” or “contact”?

I would be very confused if flickr.com/contact went to a user page.

dgl 2 hours ago | parent [-]

GitHub manage to do it. Most URLs you'd think of are either redirects to other bits of the site, or accounts owned by GitHub themselves. It just takes a bit of planning.

nkrisc 38 minutes ago | parent | next [-]

You can plan every "top level" path you'll ever want on the site from now until forever? Or do you mean planning as in plan to force account name changes on users when someone's username conflicts with a new feature name?

deaux an hour ago | parent | prev [-]

> It just takes a bit of planning.

Haha, no it just takes forcing user account name changes.

github.com/copilot, github.com/claude, github.com/models, basically everything you can think of for the last few years has been through this approach.

stavros 19 minutes ago | parent [-]

"Hey, remember the username you've had for twenty years? Yeah we want it now"

KomoD 4 hours ago | parent | prev | next [-]

> 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

They don't rely on title alone, it's a separate identifier. You can set it to anything and you can't change it afterwards but you can change the title.

DonHopkins an hour ago | parent | prev | next [-]

Aww, they finally depreciated the .gne file extension? It was supposed to never end!

https://gamicus.fandom.com/wiki/Game_Neverending

sixeyes 4 hours ago | parent | prev | next [-]

oh yeah i remember as a kid into webdev and php how some sites would have these CLEAN urls. seemed like magic to me.

croisillon 5 hours ago | parent | prev | next [-]

i don't understand the heat under ?&

?set=2546&pic=8597 is much easier to decipher than /2546/8597

wiradikusuma 4 hours ago | parent [-]

From my experience, query param is usually optional, also `?foo=1&bar=2` and `?bar=2&foo=1` should open the same page.

secretsatan 4 hours ago | parent | prev | next [-]

I've gone back to flickr for my photo sharing, I've had a pro account for, checks account, oh jeez, 20 years. I stopped using facebook and meta, and it's a solid photo sharing service. I can send links and people just get the photos, imagine that!, no ads, clean interface, lovely.

karel-3d 3 hours ago | parent [-]

In one of their transitions, they seemed to somehow deleted most of my photos. I don't know which one exactly, maybe it's my fault somehow.

I just know I didn't log in for 10+ years and now when I do, most of my photos are gone. Oh well

alias_neo 3 hours ago | parent [-]

They're also holding the photos that are left hostage; unless you pay them, you can't download the photos you have left there.

karel-3d 31 minutes ago | parent [-]

I thought it's that and they have them behind a paywall but no - they just somehow don't have them

maybe I will check again

edit: yep they have only my latest 50 photos (from 2014).

edit2: ah they did that in 2024 apparently. oh well whatever.

Markoff 4 hours ago | parent | prev [-]

TIL Flickr still exists

Stopped caring about them when they cancelled their 1TB free storage after 5 years, company which can't be trusted long term with your data. Plus the UI was horrible anyway.