One of the many things that were missing from my scaper service that I installed last week is pretty URLs. Right now, the user parameter is being passed to the script with? U =, which is a sign of lazy hacking (which, admittedly, is a script). However, I was thinking about reusing it, and I would like to get some feedback on the options available. Now there are two pages, an update and a diagram, which provide information to the user. Here are two possibilities I came up with. "1234" is the user identification number. For technical reasons, the username, unfortunately, cannot be used:
- HTTP: // <tld> / update / 1234
- HTTP: // <tld> / chart / 1234
or
- HTTP: // <tld> / 1234 / update
- HTTP: // <tld> / 1234 / chart
Option number 1, conceptually, causes an update with a user ID. Option number 2 provides a verb for working with the user ID.
In terms of consistency, which makes more sense?
Another variant:
- HTTP: // <tld> / user / 1234 / update
- HTTP: // <tld> / user / 1234 / chart
This provides space for non-user pages. i.e.
url semantics friendly-url
Kyle cronin
source share