Primary Keys in URLs

A point worth repeating from Bill de hÓra’s recent post is:

“This is not an architecture thing, but please don’t use primary keys in URLs. Doing so fails to encapsulate the implementation details of the software/persistence from the web; pks aren’t a basis for stable URLs.”

Read in conjunction with Noah Slater’s comment at the end, and don’t overlook the irony of the primary key in the URL of my own post. :(

2 Responses to “Primary Keys in URLs”

  1. OpenIDNoah Says:

    Not only that but you have “.php” in your URI. Ouch!

  2. CiaranG Says:

    The shame of it. I’ve fixed both issues, hopefully without breaking any existing links or causing any other unpleasant side effects.

Leave a Reply

OpenID

Anonymous