An example of a not-so-great URL design: Amazon product links have an optional slug before everything else like `{slug}/dp/{id}`. So you end up copying a gigantic URL everytime you wish to share a product unless you use the share product button to get the shortened link.
xyzzy_plugh|1 year ago
I also like that the "id" which is an ASIN (Amazon Standard Identification Number) which is a superset of all ISBNs. This means you can just enter any book ISBN directly into the browser and end up on the right page (at least historically) instead of having to search for it.
pests|1 year ago
fsckboy|1 year ago
>I think this is actually a really great design in that the name of the product can always be in the URL
he said "before". you could accomplish your goal putting the slug "after". he's making the point that having a place after which you can harmlessly delete the rest of the url is better than having embedded NOPs surrounded by identifying information (not that the average user will ever edit any url, but there is still merit in what he said that you missed, and he's not disagreeing with you)
wizerno|1 year ago
robin_reala|1 year ago
yoavm|1 year ago
ryukoposting|1 year ago
chamomeal|1 year ago
wizerno|1 year ago
crazygringo|1 year ago
Stack Overflow, in contrast, puts the ID first, followed by an often very long slug. Which seems to be the more common pattern generally, as far as I can tell.
I do wonder what their rationale was/is.
layer8|1 year ago
JohnFen|1 year ago
Yeah, when I used Amazon I found this incredibly annoying. When I wanted to share a link, I'd have to spend a few minutes figuring out how much of that stuff I could remove and testing the resulting URL before sharing it. A relatively minor irritation, but an irritation nonetheless.
fsckboy|1 year ago