I've been using a bad GUID scheme for my RSS feed entries. I wanted to switch to a better one, and I had two options. They both sucked, but I had to choose one. The one I chose caused a bunch of duplicate RSS posts for anyone who's already subscribed.

I discovered the original problem while implementing an Atom feed: Using web URLs as entry identifiers means they break if you ever reorganize your site or switch domains. A better choice is tag URIs tag URIs, which can be freely minted by anyone who controls a given domain on a given date and convey no information beyond that fact. I used tag URIs when I created the Atom feed, but the RSS feed has been chugging along forever using permalinks as post GUIDs. Permalinks aren't guaranteed to actually be permanent, so they make bad GUIDs.

So what did I do? There were two options. The simplest one was to retroactively change the GUID of existing RSS feed entries from the old, bad scheme to the new, good one. There's only one sucky thing about this, but it's pretty sucky: Any RSS readers pointed at my feed would see a pile of "new" posts, because the readers don't understand that the "new" GUIDs correspond to pre-existing posts.

I could avoid this problem by instead introducing tag URI GUIDs for only new posts, leaving the old GUIDs in place on existing posts. This trades the duplicate-post problem for three others: My feed generation code gets a little more complicated, it's a bit conceptually confusing to have two GUID schemes in place for one feed, and the old GUIDs will be somewhat misleading if I ever do change domains or reorganize my site.

The first two problems are dismissible. The feed generation code wouldn't get that complicated, and nobody inspects post GUIDs directly. But the third problem did give me a bit of pause. The old posts in question are mostly me telling dumb stories about high school, but something about even the possibility of GUIDs eventually becoming inaccurate - looking like URLs but not actually pointing to resources I control - bugs me.

I made my final decision based on the fact that I don't think I have any subscribers. If I do, they're at most one or two people who know me personally, which means they'll yell at me if this irritates them, thus giving me the validation of knowing I have readership. Win-win! (For me! Not them!) I'm ripping the band-aid off now while I have no strangers to lose credibility with.

Now the RSS feed is hopefully a little less sucky. I hope someday that it matters!