Skip to main content

How my websites can get along

Earlier I asked "Why can't my websites get along?" and now I'm going to answer myself.

What I want them to do

The love triangle in question, to review, is GMail's contact list, Amazon.com wish lists, and the Google Reader and the books listed in some posts there.

Any books mentioned in posts through Google Reader (or on any page, for that matter) should be flagged as being books, or the browser should be able to just figure out that they are books. It shouldn't link them directly to Amazon.com from the website, because maybe I like to by through B&N, right? My browser should see these elements marked (somehow) as being book titles, and make them into links to the books entries at Amazon (or Barnes & Noble). To take this a step further, the book sites might publish some kind of services feed, that lists services available to some particular resouce. So, when you ask it "What can you do with A Tale of Two Cities?" it will say "I can add it to your wish list. I can add it to your shopping cart. I can sell it to you immediately." and etc. Where should these commands show up? Well, that's up to the browser, really. It could be in a right click context menu, or an expanding dialog when clicking the element associated with the book, or maybe in a smart sidebar populated with all the books (and other intelligently utilized resources) found on the current page.

In this example, I tell my browser "I want to add this to my wish list." and it does what the service feed tells it to do, and requests some resource that is known to handle the action it wants for the target in question. Amazon.com will handle this request by adding the book to my wishlist, and it doesn't even have to show me a page about it. It should tell the browser about the success of the command, but that doesn't have to be anything Human Readable, does it? My browser might display a little checkmark or something next to the books name, even in other pages three months later.

Some point in the future, after I have lots of nifty books on my wish list, I'll want to send it out to friends in family. It is my birthday, after all. At Amazon.com, I click on the "My Wish List" link and I view my books and I click on "Send this list to someone" because I want everyone to buy me things. The page I navigate to will have a form, where it wants a list of email addresses and a message to send along with the list. The emails is what interests us. Somehow, they need to communicate that this particular input on the form is a list of email addresses. This might be some new attribute for input or form elements, but it doesn't really matter. What matters is that the client will see this and know I am going to entire e-mail addresses. It could do a lot of different things with this information, of course. It might give me a drop-down list of known emails, and those might come from a number of places. It might have different address book protocols implemented, or might pull e-mails straight from GMail webpages. In any case, it will acquire them the best way it knows, and I'll have this list anywhere I need it, including to send out my Wish List.

And then, everyone buys me stuff.

What pieces are missing

I've gone over a few things we need to accomplish to be able to combine services and information freely like we should have been doing years ago. Service feeds are an important concept that is only very lightly being touched on yet. In this case, I am talking about some Web Service that you can ask about other web services available. You would give it something it knows about, like a book ISBN or title, and it would tell you what it can do with that resource. It would return a list of commands, by name and the URLs to execute those commands. Maybe your browser would look to http://www.amazon.com/services/servicesfor?title=Prefactoring to get an XML document that has the information it needs. Does anyone reading know if there is a current format or specification to deal with that kind of data specifically? These services should all be considered something the client would perform on our behalf, maybe without us seeing. That means the results of the requests should be status-oriented, and don't need to be webpages at all. If they want to say "There is a webpage here about this request I just completed, too" then that is fine. The final component involves the data we need to put into all of these webservices, and how much about what it wants we and our webclients know, so as to better equip us to provide that information. Again, is there something in the works towards this goal?

Comments

Anonymous said…
The Semantic Web? *ducks*

Popular posts from this blog

CARDIAC: The Cardboard Computer

I am just so excited about this. CARDIAC. The Cardboard Computer. How cool is that? This piece of history is amazing and better than that: it is extremely accessible. This fantastic design was built in 1969 by David Hagelbarger at Bell Labs to explain what computers were to those who would otherwise have no exposure to them. Miraculously, the CARDIAC (CARDboard Interactive Aid to Computation) was able to actually function as a slow and rudimentary computer.  One of the most fascinating aspects of this gem is that at the time of its publication the scope it was able to demonstrate was actually useful in explaining what a computer was. Could you imagine trying to explain computers today with anything close to the CARDIAC? It had 100 memory locations and only ten instructions. The memory held signed 3-digit numbers (-999 through 999) and instructions could be encoded such that the first digit was the instruction and the second two digits were the address of memory to operate on

Statement Functions

At a small suggestion in #python, I wrote up a simple module that allows the use of many python statements in places requiring statements. This post serves as the announcement and documentation. You can find the release here . The pattern is the statement's keyword appended with a single underscore, so the first, of course, is print_. The example writes 'some+text' to an IOString for a URL query string. This mostly follows what it seems the print function will be in py3k. print_("some", "text", outfile=query_iostring, sep="+", end="") An obvious second choice was to wrap if statements. They take a condition value, and expect a truth value or callback an an optional else value or callback. Values and callbacks are named if_true, cb_true, if_false, and cb_false. if_(raw_input("Continue?")=="Y", cb_true=play_game, cb_false=quit) Of course, often your else might be an error case, so raising an exception could be useful

How To Teach Software Development

How To Teach Software Development Introduction Developers Quality Control Motivation Execution Businesses Students Schools Education is broken. Education about software development is even more broken. It is a sad observation of the industry from my eyes. I come to see good developers from what should be great educations as survivors, more than anything. Do they get a headstart from their education or do they overcome it? This is the first part in a series on software education. I want to open a discussion here. Please comment if you have thoughts. Blog about it, yourself. Write about how you disagree with me. Write more if you don't. We have a troubled industry. We care enough to do something about it. We hark on the bad developers the way people used to point at freak shows, but we only hurt ourselves but not improving the situation. We have to deal with their bad code. We are the twenty percent and we can't talk to the eighty percent, by definition, so we need to impro