Live data from Hacker News

Examples of Great URL Design (2023)

blog.jim-nielsen.com

131–140 of 163 posts

Re: Examples of Great URL Design (2023)

#131

Everything should be accessible via the identity of its composition (a hash or equivalent). Then all the data needed to render it be computed or downloaded from some peered cache (DHT).

So when you bookmark the Hacker News frontpage, that would be a hash of its current content and then you will visit that stale stale version forever and never see any new stories?

Re: Examples of Great URL Design (2023)

#132
post #29

I found Notion's URL schema interesting as well. They have to contend with renames of pages, reorganisation of the hierarchy and all that. So they have something like: notion.so/:account/Current-Name-of-Page-:pageid where the name changes if the page is renamed, but the redirect works, as the page ID is unchanged. In fact, one can just use notion.so/:account/:pageid and gets redirected to the right page, or even noti…

I've noticed that Confluence, Reddit, and a good number of news sites do the same thing. Usually the title segment is entirely ignored, meaning you can prank someone by changing the title part to something shocking, and it just redirects to the usual page, because the server only cared about the ID bit The fact that so many sites do this (including "normie" news sites) shows that site designers clearly believe users…

It’s an SEO thing.

The better way to implement this is to serve a 301 redirect if the words in the URL don't match the expected ones, that avoids trickery and also removes the risk of the same page being accidentally indexed as duplicate content.

Re: Examples of Great URL Design (2023)

#133

Back when I was working on GOV.UK Verify we had URLs that looked something like /verify-passport for English and /cy/verify-passport for Welsh. I made the decision that if readable URLs was a design goal they should be readable in both languages, and ended up localising them all to (for example) /verify-passport and /gwirio-pasbort. No idea if anyone ever noticed, but sometimes it’s nice to sweat the small stuff.

That’s classy.

Re: Examples of Great URL Design (2023)

#134

We take the typical blog url design (/2024/08/14/slug) for granted but back in the very early 2000s pretty much every blog tool had its own URL design. Matthew Thomas back then took an inventory: https://web.archive.org/web/20030810201315/http://mpt.phrase... He was on the search for his ultimate blogging system, where this "cruft-free" URL structure should be used: https://web.archive.org/web/20051107103030/http://m…

Search engines usually have a date filter. Here's DDG searching "wordpress" between 2000 and 2005. https://duckduckgo.com/?q=wordpress&t=h_&df=2000-01-01..2005... I'm guessing you were looking for: https://wordpress.org/news/2004/01/cruft-free-uris-in-wp-10/ I assume Google supports something similar, but I've stopped using it.

How do search engines figure out the date of webpages that don't contain it in the metadata?

Re: Examples of Great URL Design (2023)

#135
post #62

Earlier quoted context omitted.

He calls file extensions cruft, but i've come to value them. They are a simple way to indicate file type - desired or offered - which is easily understood by machines and people. I currently work with an API which does a bit of content negotiation using the Accept header, so clients can request data in various formats - application/json for a snapshot, text/event-stream for an updating feed, or text/html for an inter…

> He calls file extensions cruft I think that refers mostly to the .php and .asp of the time. Those don't tell a thing to the user.

I want users to know I use PHP! :D

Re: Examples of Great URL Design (2023)

#136

Earlier quoted context omitted.

> He calls file extensions cruft I think that refers mostly to the .php and .asp of the time. Those don't tell a thing to the user.

I want users to know I use PHP! :D

And I judge people who use ASP, lmao.

Re: Examples of Great URL Design (2023)

#137
post #116

How about great email address design? Of course firstname@lastname.com is top tier. But there are some interesting hacks you can do, such as firstn@melastname.com if your last name domain isn't available.

Not sure it counts but mine is wicky(AT)nillia(DOT)ms. Which aligns with my username practically everywhere, and is a spoonerism of my actual name.

The downside is that it's a massive pain to explain to people verbally!

Re: Examples of Great URL Design (2023)

#138
I’m glad this article mentions GitHub, who have had some of the best URL design I’ve ever seen, and have done since they first launched.

I use that ALL the time. I can navigate straight to any issue by typing a URL. I can switch to the “actions” view for a repo by adding /actions. I can see the file I’m looking at in a branch by editing the URL and swapping “main” for the branch name.

All available via the UI as well, but I interact with GitHub so often that the tiny efficiency boost I get from navigating by URLs really starts to add up.

I also trust them not to break links, based on their track record. My notes and blog posts and even my source code are full of links to issues or code snippets on GitHub.

Re: Examples of Great URL Design (2023)

#139

Earlier quoted context omitted.

Search engines usually have a date filter. Here's DDG searching "wordpress" between 2000 and 2005. https://duckduckgo.com/?q=wordpress&t=h_&df=2000-01-01..2005... I'm guessing you were looking for: https://wordpress.org/news/2004/01/cruft-free-uris-in-wp-10/ I assume Google supports something similar, but I've stopped using it.

How do search engines figure out the date of webpages that don't contain it in the metadata?

The simplest version is recording the date they noticed a change in the page.

Re: Examples of Great URL Design (2023)

#140
post #138

I’m glad this article mentions GitHub, who have had some of the best URL design I’ve ever seen, and have done since they first launched. I use that ALL the time. I can navigate straight to any issue by typing a URL. I can switch to the “actions” view for a repo by adding /actions. I can see the file I’m looking at in a branch by editing the URL and swapping “main” for the branch name. All available via the UI as well…

do these routes on github irk anyone else:

    /issues/
    /issues/:id
    /pulls/
    /pull/:id
Post reply on HN