It's even worse than it appears..
Wednesday September 27, 2023; 8:39 AM EDT
  • I am a developer, and WordPress is the largest blogging platform. Naturally, I want to develop products for WordPress. But there's a problem. #
  • Suppose I have an idea for an editor for WordPress posts. I have a constraint, the editor can’t save any information about the post that isn’t in the HTML code for the post. This severely limits the kinds of editors developers can write. #
  • Instead if WordPress had the idea that an app could store some JSON data along with a post, and when the user wanted to edit the post my editor would get the data back, we could edit all kinds of structures and have the result available in WP, not just to us, but to every app they give permission to.#
  • I’ve wanted this feature for WP for a long time. Maybe it’s already there? It has happened before that I’ve asked for a feature in a product that was already there.#
  • BTW, this idea goes back to the early Macintosh OS. Every object in the system had a 32-bit refcon which could be anything the app wanted it to be. Usually it was a pointer to an object that contained a lot of data and more pointers. You could attach them to a window, a menu, a button in a dialog, IIRC every object had a refcon. Whole complex systems were built around this idea. It meant that the platform vendor (Apple) could evolve their internal structures without breaking developers. You can develop whole app ecosystems around this simple idea. #
  • PS: refcon is short for "reference constant." The fact that it almost immediately was used for pointers shows how innovative developers can be, and how sometimes an idea has much broader implications than you can foresee. #
  • PPS: I couldn't find a page on the web that explains what a refcon is so I asked ChatGPT to write one. I can vouch for the accuracy, even beauty, of what it wrote. #
  • PPPS: Apparently it is possible to set refcon-like values for WordPress posts. I'll write more about it soon. #

© copyright 1994-2023 Dave Winer.

Last update: Wednesday September 27, 2023; 7:14 PM EDT.

You know those obnoxious sites that pop up dialogs when they think you're about to leave, asking you to subscribe to their email newsletter? Well that won't do for Scripting News readers who are a discerning lot, very loyal, but that wouldn't last long if I did rude stuff like that. So here I am at the bottom of the page quietly encouraging you to sign up for the nightly email. It's got everything from the previous day on Scripting, plus the contents of the linkblog and who knows what else we'll get in there. People really love it. I wish I had done it sooner. And every email has an unsub link so if you want to get out, you can, easily -- no questions asked, and no follow-ups. Go ahead and do it, you won't be sorry! :-)