<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss'><id>tag:blogger.com,1999:blog-6942369</id><updated>2009-12-18T01:29:57.390-05:00</updated><title type='text'>Mark Finkle's Weblog</title><subtitle type='html'>Software for Fun and Profit</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://weborama.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6942369/posts/default?orderby=updated'/><link rel='alternate' type='text/html' href='http://weborama.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/6942369/posts/default?start-index=26&amp;max-results=25&amp;orderby=updated'/><author><name>Mark Finkle</name><uri>http://www.blogger.com/profile/17141520517633569688</uri><email>noreply@blogger.com</email></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>49</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6942369.post-114231323504557767</id><published>2006-03-14T00:07:00.000-05:00</published><updated>2006-03-14T00:13:55.060-05:00</updated><title type='text'>Permanent Redirect</title><content type='html'>&lt;p&gt;
I finally decided to get a host of my own. I setup a blog at &lt;a href="www.starkravingfinkle.org"&gt;www.starkravingfinkle.org&lt;/a&gt;. Blogger has been a great experience for me and I would recommend it to anyone. I just wanted more control and space for doing my own thing.
&lt;/p&gt;
&lt;p&gt;
I am updating the FeedBurner &lt;a href="http://feeds.feedburner.com/weborama"&gt;feed&lt;/a&gt;, so anyone actually subscribed should get updated without any problems.
&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6942369-114231323504557767?l=weborama.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://weborama.blogspot.com/feeds/114231323504557767/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=6942369&amp;postID=114231323504557767' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6942369/posts/default/114231323504557767'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6942369/posts/default/114231323504557767'/><link rel='alternate' type='text/html' href='http://weborama.blogspot.com/2006/03/permanent-redirect.html' title='Permanent Redirect'/><author><name>Mark Finkle</name><uri>http://www.blogger.com/profile/17141520517633569688</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='09967691008718044371'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6942369.post-114188492811435435</id><published>2006-03-09T00:53:00.000-05:00</published><updated>2006-03-09T01:15:28.170-05:00</updated><title type='text'>Live Clipboard &amp; Open Laszlo</title><content type='html'>&lt;p&gt;
Two really cool announcements this week: Ray Ozzie's &lt;a href="http://spaces.msn.com/rayozzie/blog/cns!FB3017FBB9B2E142!285.entry?_c11_blogpart_blogpart=blogview&amp;_c=blogpart#permalink"&gt;Live Clipboard&lt;/a&gt; concept and &lt;a href="http://www.openlaszlo.org/"&gt;Open Laszlo&lt;/a&gt; &lt;a href="http://weblog.openlaszlo.org/archives/2006/03/openlaszlo-goes-dhtml/"&gt;running&lt;/a&gt; on DHTML. I see both announcements having long term effects.
&lt;/p&gt;
&lt;p&gt;
Live Clipboard is just so simple and useful, it has to get adopted, standardized and built into any serious web and non-web applications. That's right, desktop applications and OS shells should also support Live Clipboard. Users will love it. Moving data between web and desktop applications &lt;em&gt;should&lt;/em&gt; be as simple as copy/paste.
&lt;/p&gt;
&lt;p&gt;
Applications built using Open Laszlo can now be run using Flash or DHTML runtimes. So those Laszlo guys were serious after all. They have a demo running on both runtimes. Very nice. This goes a long way toward platform and runtime independence. A trend I'd like to see continue. Maybe a XUL based runtime could happen too.
&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6942369-114188492811435435?l=weborama.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://weborama.blogspot.com/feeds/114188492811435435/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=6942369&amp;postID=114188492811435435' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6942369/posts/default/114188492811435435'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6942369/posts/default/114188492811435435'/><link rel='alternate' type='text/html' href='http://weborama.blogspot.com/2006/03/live-clipboard-open-laszlo.html' title='Live Clipboard &amp; Open Laszlo'/><author><name>Mark Finkle</name><uri>http://www.blogger.com/profile/17141520517633569688</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='09967691008718044371'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6942369.post-113917614371515151</id><published>2006-02-05T16:37:00.000-05:00</published><updated>2006-02-06T01:36:32.046-05:00</updated><title type='text'>IE7 Changes for MSHTML Embedding</title><content type='html'>&lt;p&gt;
This is post is really for me more than anything else. I have been trying to find some information on what new features IE7 offers for those embedding the WebBrowser control. In the process, I also found some stuff that came out with IE6 during the WinXP SP2 timeframe.
&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://msdn.microsoft.com/workshop/browser/hosting/reference/enum/dochostuiflag.asp"&gt;DOCHOSTUIFLAG&lt;/a&gt;: New flags for navigation and redirect control. Also flags for enabling new "windowless" SELECT elements instead of the old "windowed" versions.&lt;/li&gt;
&lt;li&gt;&lt;a href="http://msdn.microsoft.com/workshop/security/szone/reference/enums/INTERNETFEATURELIST.asp"&gt;INTERNETFEATURELIST&lt;/a&gt;: This enumeration of features can out in IE6, mainly for controlling security. IE7 adds a couple new features for controlling more security stuff, tabbed browsing and builtin XMLHttpRequest. Also, it provides a way to turn off the damn navigation sounds without hacking the registry. Used with &lt;a href="http://msdn.microsoft.com/workshop/security/szone/reference/functions/cointernetsetfeatureenabled.asp"&gt;CoInternetSetFeatureEnabled&lt;/a&gt; and &lt;a href="http://msdn.microsoft.com/workshop/security/szone/overview/sec_featurecontrols.asp"&gt;related API's&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;a href="http://msdn.microsoft.com/workshop/author/dhtml/overview/tab_impact.asp"&gt;Tabbed Browsing Developer Summary&lt;/a&gt;: Describes the effects on the DOM, shows how applications hosts can enable tabbed browsing shortcuts, and describes new notifications.&lt;/li&gt;
&lt;li&gt;&lt;a href="http://msdn.microsoft.com/workshop/essentials/whatsnew/whatsnew_70_sdk.asp"&gt;What's New in Internet Explorer 7&lt;/a&gt;: Summary of the major changes in Internet Explorer 7 of particular interest to the developers.&lt;/li&gt;
&lt;li&gt;&lt;a href="http://msdn.microsoft.com/workshop/browser/webbrowser/reference/events/newwindow3.asp"&gt;NewWindow3 Event&lt;/a&gt;: Showed up in IE6 XPSP2. Gives developers better control over handling new browser windows.&lt;/li&gt;
&lt;li&gt;&lt;a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/feedsapi/rss/rss_entry.asp"&gt;Microsoft Feeds API&lt;/a&gt;: An API for creating, managing, and accessing Really Simple Syndication (RSS) feeds.&lt;/li&gt;
&lt;li&gt;&lt;a href="http://msdn.microsoft.com/workshop/security/protmode/pmie_ref_entry.asp"&gt;Protected Mode API&lt;/a&gt;: Develop extensions and add-ons for Internet Explorer that can interact with the file system and registry. Includes methods to control a "Save As" dialog and save content to file.&lt;/li&gt;
&lt;li&gt;Many URI related API's: &lt;a href="http://msdn.microsoft.com/workshop/networking/moniker/reference/functions/CreateUri.asp"&gt;CreateUri&lt;/a&gt; and &lt;a href="http://msdn.microsoft.com/workshop/networking/moniker/reference/ifaces/IUri/IUri.asp"&gt;IUri interface&lt;/a&gt; just for starters.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
I came across most of this stuff by searching the MSDN site looking for &lt;a href="http://www.google.com/search?q=site%3Amsdn.microsoft.com+%22Internet+Explorer+7+or+later%22"&gt;"Internet Explorer 7 or later"&lt;/a&gt;. I'll try to update this page as I find out more information.
&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6942369-113917614371515151?l=weborama.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://weborama.blogspot.com/feeds/113917614371515151/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=6942369&amp;postID=113917614371515151' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6942369/posts/default/113917614371515151'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6942369/posts/default/113917614371515151'/><link rel='alternate' type='text/html' href='http://weborama.blogspot.com/2006/02/ie7-changes-for-mshtml-embedding.html' title='IE7 Changes for MSHTML Embedding'/><author><name>Mark Finkle</name><uri>http://www.blogger.com/profile/17141520517633569688</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='09967691008718044371'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6942369.post-109469015635199437</id><published>2004-09-08T20:28:00.000-04:00</published><updated>2006-02-05T00:20:07.246-05:00</updated><title type='text'>MSHTML Hosting - Odds &amp; Ends</title><content type='html'>&lt;p&gt;
In this post I wanted to cover some miscellaneous things you may want to do with your embedded WebBrowser. On its own, the IWebBrowser2 interface does not support doing much more than we already covered in previous posts. However, if you start 
using the MSHTML DOM interfaces, much more functionality is available. Here is a list of simple things you can implement without too much difficulty:
&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Retrieving HTML from the WebBrowser.&lt;/li&gt;
&lt;li&gt;Retrieving the HTML of the current selection.&lt;/li&gt;
&lt;li&gt;Finding text in the HTML and selecting it.&lt;/li&gt;
&lt;li&gt;Creating an image of the current HTML.&lt;/li&gt;
&lt;/ul&gt;
&lt;strong&gt;Retrieving HTML from the WebBrowser&lt;/strong&gt;
&lt;p&gt;
There are times when you might want to get the currently loaded HTML from the control. You may want to save it to a file or parse it for information. For this functionality, you have to use the IPersistXxx interfaces. These are the same we used to load HTML into the WebBrowser from memory. The same works in reverse:
&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;
IHTMLDocument2* pDoc = ...;
IStream* pMyStream = ...;

IPersistStreamInit* pPersist = 0;
HRESULT hr = pDoc-&gt;QueryInterface(IID_IPersistStreamInit, (void**)&amp;pPersist);
if (SUCCEEDED(hr) &amp;&amp; pPersist) {
    hr = pPersist-&gt;Save(pMyStream, true);
    pPersist-&gt;Release();
}

&lt;/code&gt;&lt;/pre&gt;
&lt;strong&gt;Retrieving the HTML of the current selection&lt;/strong&gt;
&lt;p&gt;
If you want to limit the HTML to just what a user has selected, instead of the entire document, we can use the IHTMLXxx COM interfaces. The first thing you need to do is get access to the IHTMLDocument interface for the current document. IWebBrowser2 gives you access using it's Document property. The Document property returns an IDispatch interface, so we need to QueryInterface the IDispatch interface for an IHTMLDocument interface, like so (raw C++):
&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;
IDispatch* pDocDisp = 0;
HRESULT hr = pWebBrowser-&gt;get_Document(&amp;pDocDisp);

IHTMLDocument2* pDoc = 0;
hr = pDocDisp-&gt;QueryInterface(IID_IHTMLDocument2, (void**)&amp;pDoc);
if (SUCCEEDED(hr)) {

    //...

    pDoc-&gt;Release();
}

pDocDisp-&gt;Release();

&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;
The IHTMLXxx interfaces follow the W3C DOM specification used for JavaScript very closely. If your familiar with those objects, the IHTMLXxx interface will be easy to grasp. In fact, if you know how to do something using JavaScript, you can duplicate it your compiled code using the IHTMLXxx interfaces.
&lt;/p&gt;
&lt;p&gt;
That said, you can get the current selection as a IHTMLTxtRange from the document element. Once you have a text range, you can retrieve the plain text or HTML text as shown below:
&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;
IHTMLDocument2* pDoc = ...;

IHTMLSelectionObject* pSelection = 0;
HRESULT hr = pDoc-&gt;get_selection(&amp;pSelection);
if (SUCCEEDED(hr)) {
   IDispatch* pDispRange = 0;
   hr = pSelection-&gt;createRange(&amp;pDispRange);
   if (SUCCEEDED(hr)) {
      IHTMLTxtRange* pTextRange = 0;
      hr = pDispRange-&gt;QueryInterface(IID_IHTMLTxtRange, (void**)&amp;pTextRange);
      if (SUCCEEDED(hr)) {
         CComBSTR sText;
         pTextRange-&gt;get_text(&amp;sText);
         // or
         pTextRange-&gt;get_htmlText(&amp;sText);
         //...
         pTextRange-&gt;Release();
      }
      pDispRange-&gt;Release();
   }
   pSelection-&gt;Release();
}

pDoc-&gt;Release();

&lt;/code&gt;&lt;/pre&gt;
&lt;strong&gt;Finding text in the HTML and selecting it&lt;/strong&gt;
&lt;p&gt;
The Google toolbar in IE does this to make it easy to spot keywords found in the page. We are using body and text range objects. This time we are making a IHTMLTxtRange object, not getting the current selection. IHTMLTxtRange has find and select methods that make this task easy. Be sure to check out the parameters for IHTMLTxtRange::findText as they can be used to modify how the text is searched:
&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;
IHTMLDocument2* pDoc = ...;
IHTMLElement* pBodyElem = 0;
HRESULT hr = pDoc-&gt;get_body(&amp;pBodyElem);
if (SUCCEEDED(hr)) {
   IHTMLBodyElement* pBody = 0;
   hr = pBodyElem-&gt;QueryInterface(IID_IHTMLBodyElement, (void**)&amp;pBody);
   if (SUCCEEDED(hr)) {
      IHTMLTxtRange* pTextRange = 0;
      hr = pBody-&gt;createTextRange(&amp;pTextRange);
      if (SUCCEEDED(hr)) {
         CComBSTR sText = "findme";
         VARIANT_BOOL bSuccess;
         hr = pTextRange-&gt;findText(sText, 0, 0, &amp;bSuccess);
         if (SUCCEEDED(hr) &amp;&amp; bSuccess == VARIANT_TRUE)
            pTextRange-&gt;select();
         pTextRange-&gt;Release();
      }
      pBody-&gt;Release();
   }
   pBodyElem-&gt;Release();
}

pDoc-&gt;Release();

&lt;/code&gt;&lt;/pre&gt;
&lt;strong&gt;Creating an image of the current HTML&lt;/strong&gt;
&lt;p&gt;
Turning the contents of the WebBrowser into an image is not as straight forward as you may expect. Looking at the IHTMLXxx interfaces does turn up an IHTMLElementRenderer interface. IHTMLElementRenderer contains:
&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;IHTMLElementRender::DrawToDC(HDC hDC);&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;
You can try to use this method, but I have found that it is not very reliable and reacts inconsistently depending on the type of HDC you give it. A more reliable method uses an older OLE method. IViewObject supports the ability to render to an HDC. The IWebBrowser2::Document property can be QueryInterfaced for IViewObject. Two things to note while using this method, (1) you will probably want to turn off the scrollbars and 3D border since they will show up in the image and (2) you will want to resize the WebBrowser to the size of the contained HTML if you want to capture the entire content in the image. You may want to only make these changes temporarily and change them back after the image is captured:
&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;
IHTMLDocument2* pDoc = ...;
IHTMLElement* pBodyElem = 0;
HRESULT hr = pDoc-&gt;get_body(&amp;pBodyElem);
if (SUCCEEDED(hr)) {
   IHTMLBodyElement* pBody = 0;
   hr = pBodyElem-&gt;QueryInterface(IID_IHTMLBodyElement, (void**)&amp;pBody);
   if (SUCCEEDED(hr)) {
      // hide 3D border
      IHTMLStyle* pStyle;
      hr = pBodyElem-&gt;get_style(&amp;pStyle);
      if (SUCCEEDED(hr)) {
         pStyle-&gt;put_borderStyle(CComBSTR("none"));
         pStyle-&gt;Release();
      }

      // hide scrollbars
      pBodyElement-&gt;put_scroll(CComBSTR("no"));

      // resize the browser component to the size of the HTML content
      IHTMLElement2* pBodyElement2;
      hr = Body-&gt;QueryInterface(IID_IHTMLElement2, (void**)&amp;BodyElement2)
      if (SUCCEEDED(hr)) {
         long iScrollWidth = 0;
         pBodyElement2-&gt;get_scrollWidth(&amp;iScrollWidth);

         long iScrollHeight = 0;
         pBodyElement2-&gt;get_scrollHeight(&amp;iScrollHeight);

         // these lines depend on your WebBrowser wrapper
         pWebBrowser-&gt;SetWidth(iScrollWidth);
         pWebBrowser-&gt;SetHeight(iScrollHeight);

         pBodyElement2-&gt;Release();

         IViewObject* pViewObject;
         pDoc-&gt;QueryInterface(IID_IViewObject, (void**)&amp;pViewObject);
         if (pViewObject) {
            /* however you want to make your image HDC.
               You can size it using iScrollHeight &amp; iScrollWidth */
            HDC hImageDC = ... // could be bitmap or enhanced metafile
            HDC hScreenDC = ::GetDC(0);
            RECT rcSource = {0, 0, iScrollWidth, iScrollHeight};
            hr = pViewObject-&gt;Draw(DVASPECT_CONTENT, 1, NULL, NULL,
                                   hScreenDC, hImageDC, rcSource,
                                   NULL, NULL, 0);
            ::ReleaseDC(0, hScreenDC);
            pViewObject-&gt;Release();
         }
      }
      pBody-&gt;Release();
   }
   pBodyElem-&gt;Release();
}

pDoc-&gt;Release();
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;
As you can see, there is a lot of things you can do using the MSHTML object model. Some of it can be tricky. Other things just aren't supported as well as they should be for an application developer. I guess you could say that application developers have their own list of issues for IE.
&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6942369-109469015635199437?l=weborama.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://weborama.blogspot.com/feeds/109469015635199437/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=6942369&amp;postID=109469015635199437' title='24 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6942369/posts/default/109469015635199437'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6942369/posts/default/109469015635199437'/><link rel='alternate' type='text/html' href='http://weborama.blogspot.com/2004/09/mshtml-hosting-odds-ends.html' title='MSHTML Hosting - Odds &amp; Ends'/><author><name>Mark Finkle</name><uri>http://www.blogger.com/profile/17141520517633569688</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='09967691008718044371'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>24</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6942369.post-113614525156965221</id><published>2006-01-01T14:43:00.000-05:00</published><updated>2006-01-01T21:53:49.966-05:00</updated><title type='text'>VML, SVG and Canvas</title><content type='html'>&lt;p&gt;
Take a couple weeks off from blogging and it's real hard to get back into it. I have been working toward a BETA at my day job, playing around with a web project at home and enjoying the end of year holidays as well.
&lt;/p&gt;
&lt;p&gt;
Anyway, the web project is a web application that makes heavy use of graphics. Started building on IE with &lt;a href="http://msdn.microsoft.com/library/default.asp?url=/workshop/author/vml/SHAPE/introduction.asp"&gt;VML (Vector Markup Language)&lt;/a&gt;. I gained experience using VML from my day job. Had no problems putting together a pretty good vector graphic editor, complete with HTML text inside shapes. The editor would be a core component in the web application. Then I started adding in support for Firefox. The plan was to abstract the VML/SVG differences and use as much common code as possible. JavaScript libraries like &lt;a href="http://prototype.conio.net/"&gt;Prototype&lt;/a&gt; made lots of the work easy.
&lt;/p&gt;
&lt;p&gt;
The big pain was the feature differences between VML and &lt;a href="http://www.w3.org/TR/SVG/"&gt;SVG&lt;/a&gt;. Here are some of the problems:
&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;VML was built as an extension to HTML. SVG is a separate specification. It took a little time to figure out how to get SVG inside an HTML document (called Inline SVG) to work correctly. Also, I can mix HTML and VML together easily in any combination. SVG requires the use of &amp;lt;foreignObject&amp;gt; to mix in HTML and Firefox does not enable &amp;lt;foreignObject&amp;gt; by default.&lt;/li&gt;
&lt;li&gt;Shapes in VML (&amp;lt;rect&amp;gt;, &amp;lt;ellipse&amp;gt;, etc.) support text child elements. When I reposition the shape, the text moves with it. It appears that shapes can't hold text child elements until SVG 1.2, which supports &amp;lt;flowPara&amp;gt; child elements. For now, changes to the shape must be manually mirrored to the sibling text elements.&lt;/li&gt;
&lt;li&gt;Text in VML supports wordwrap. SVG does not and I can't believe it. Again, SVG 1.2 supports &amp;lt;flowPara&amp;gt;, but I am not sure wordwrap is part of &amp;lt;flowPara&amp;gt;. How long will it take SVG 1.2 to get implemented in Firefox, Safari and Opera?&lt;/li&gt;
&lt;li&gt;VML supports the same level of CSS attributes as HTML. SVG does not support the same level. One attribute I could not use was 'cursor'.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
My biggest problems with SVG are text related. Maybe I just don't know the right way to do it in SVG. I'm still learning.
&lt;/p&gt;
&lt;p&gt;
And then there's &lt;a href="http://www.whatwg.org/specs/web-apps/current-work/#canvas"&gt;&amp;lt;canvas&amp;gt;&lt;/a&gt;. It has good support in Firefox, Safari and Opera (soon). Along comes Emil Eklund with an implementation of &lt;a href="http://me.eae.net/archive/2005/12/29/canvas-in-ie/"&gt;&amp;lt;canvas&amp;gt; in IE&lt;/a&gt; and now I have to consider switching to &amp;lt;canvas&amp;gt; as the lowest common denominator. My biggest problem with &amp;lt;canvas&amp;gt; is text (I see a theme here). I am not sure how to handle text with &amp;lt;canvas&amp;gt;.
&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6942369-113614525156965221?l=weborama.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://weborama.blogspot.com/feeds/113614525156965221/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=6942369&amp;postID=113614525156965221' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6942369/posts/default/113614525156965221'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6942369/posts/default/113614525156965221'/><link rel='alternate' type='text/html' href='http://weborama.blogspot.com/2006/01/vml-svg-and-canvas.html' title='VML, SVG and Canvas'/><author><name>Mark Finkle</name><uri>http://www.blogger.com/profile/17141520517633569688</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='09967691008718044371'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6942369.post-112940813253722754</id><published>2005-10-15T16:06:00.000-04:00</published><updated>2005-10-15T16:28:52.543-04:00</updated><title type='text'>P2P Toolkits</title><content type='html'>&lt;p&gt;
A while ago, I was looking for a P2P framework library that I could use in a software project. The only real P2P toolkits I found were the Java-based &lt;a href="http://jxta.org"&gt;JXTA&lt;/a&gt; and the Windows XP (SP1) &lt;a href="http://msdn.microsoft.com/library/default.asp?url=/downloads/list/winxppeer.asp"&gt;Peer-to-Peer API&lt;/a&gt; from Microsoft. Neither really worked for me. I program in C++ and wanted to support older OSes.
&lt;/p&gt;
&lt;p&gt;
I was too focused on &lt;em&gt;'P2P'&lt;/em&gt; in my searches. It finally dawned on me that &lt;strong&gt;multiplayer games&lt;/strong&gt; have to solve the same problems as a P2P client. Googling turned up several interesting toolkits:
&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnplay/html/dpov.asp?frame=true"&gt;Microsoft DirectPlay&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.rakkarsoft.com/"&gt;RakNet&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.hawksoft.com/hawknl/"&gt;HawkNL&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.opentnl.org/"&gt;OpenTNL&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
After looking at all of them, I decided to start working with DirectPlay. It has the easiest API and hides all of the low level socket stuff from me. The biggest potential problem with DirectPlay is that it appears Microsoft is sunsetting it. I don't think it's a issue though. It's still in DirectX and will be for a while. It just won't be developed any further. At some point, when Windows XP is the oldest OS I need to support, I'll switch over to the XP Peer-to Peer API.
&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6942369-112940813253722754?l=weborama.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://weborama.blogspot.com/feeds/112940813253722754/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=6942369&amp;postID=112940813253722754' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6942369/posts/default/112940813253722754'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6942369/posts/default/112940813253722754'/><link rel='alternate' type='text/html' href='http://weborama.blogspot.com/2005/10/p2p-toolkits.html' title='P2P Toolkits'/><author><name>Mark Finkle</name><uri>http://www.blogger.com/profile/17141520517633569688</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='09967691008718044371'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6942369.post-112758999020961745</id><published>2005-09-24T14:32:00.000-04:00</published><updated>2005-09-25T16:30:25.756-04:00</updated><title type='text'>Improvements in User Experience</title><content type='html'>&lt;h2&gt;Inductive UI in Office 12&lt;/h2&gt;
&lt;p&gt;
By now anyone interested in software user experience has &lt;a href="http://channel9.msdn.com/showpost.aspx?postid=114720"&gt;seen the video&lt;/a&gt; or &lt;a href="http://www.microsoft.com/office/preview"&gt;read the articles&lt;/a&gt; about Microsoft Office 12 getting a complete UI makeover. For an ongoing explanation of the design rationale, you should also checkout &lt;a href="http://blogs.msdn.com/jensenh"&gt;Jensen Harris' blog&lt;/a&gt;. Jensen works on the Office user experience team.
&lt;/p&gt;
&lt;p&gt;
Many people write-off the UI changes as merely a ploy to get customers to upgrade. In a way, I agree. Customers will upgrade because the new interfaces will make using Office easier and allow users to be more productive. Inductive UI's have been around for a while, but this is the first large-scale use in a major Microsoft product.
&lt;/p&gt;
&lt;p&gt;
For those of you in the back, it's not just about the menus and toolbars (or 'Ribbon' as they are calling it). It's about &lt;em&gt;why&lt;/em&gt; the menus are gone and &lt;em&gt;why&lt;/em&gt; the toolbar is separated into contextual sections and chunks. I am glad Microsoft spent the time and money to research &lt;em&gt;how&lt;/em&gt; users were interacting with Office. Since Office seems to set a UX precedent, I am hoping we see some of these new conventions trickle down into other applications as well.
&lt;/p&gt;
&lt;p&gt;
&lt;strong&gt;Update: &lt;/strong&gt;Jeff Atwood of Coding Horror has a &lt;a href="http://www.codinghorror.com/blog/archives/000397.html"&gt;post&lt;/a&gt; about this too.
&lt;/p&gt;
&lt;h2&gt;Windows Vista User Experience Guidelines&lt;/h2&gt;
&lt;p&gt;
Microsoft has also released preliminary &lt;a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=fd380553-911e-4659-a085-4dd58ae4b9ae&amp;DisplayLang=en"&gt;Windows Vista UX Guidelines&lt;/a&gt;. Although many people are pointing to the download, few are  commenting on the information contained within. &lt;a href="http://chris.pirillo.com/blog/_archives/2005/9/12/1222464.html"&gt;Chris Pirillo&lt;/a&gt; does provide a nice list of nuggets he discovered while scanning the documentation. I'll point out some of my favorites:
&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Wizard pages: Remove front and back pages. Remove page header. Basically remove all redundant textual information.&lt;/li&gt;
&lt;li&gt;Help on Dialogs: 1. Make labels and controls easy to comprehend, 2. Add explanatory text sections as needed, 3. Use hyperlinks to jump into Help for specific topics which may be confusing, 4. Do not use vague or general Help buttons (users don't like vague or general help).&lt;/li&gt;
&lt;li&gt;Task dialogs: MessageBox API on steriods.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
I like this release better than previous ones (Win2K and WinXP) because it seems more focused on UX and contains some rationale as well. It's not just specs for controls, layout and themes. Some sections, such as Window and Layout sections, are not included yet (it's preliminary). You also need to wade through some Aero graphics babble (I am not impressed with 'glass' for UX).
&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6942369-112758999020961745?l=weborama.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://weborama.blogspot.com/feeds/112758999020961745/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=6942369&amp;postID=112758999020961745' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6942369/posts/default/112758999020961745'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6942369/posts/default/112758999020961745'/><link rel='alternate' type='text/html' href='http://weborama.blogspot.com/2005/09/improvements-in-user-experience.html' title='Improvements in User Experience'/><author><name>Mark Finkle</name><uri>http://www.blogger.com/profile/17141520517633569688</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='09967691008718044371'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6942369.post-112321713296742127</id><published>2005-08-05T00:27:00.000-04:00</published><updated>2005-08-05T00:45:32.973-04:00</updated><title type='text'>Jumping In</title><content type='html'>&lt;p&gt;In a rather accidental manner, I am starting up several new projects. I am really getting into &lt;a href="http://en.wikipedia.org/wiki/Wiki"&gt;Wiki's&lt;/a&gt;. I installed &lt;a href="http://www.mediawiki.org/wiki/MediaWiki"&gt;MediaWiki&lt;/a&gt; at work for internal collaboration and knowledge management. I decided to run it on Linux instead of Windows, so I installed &lt;a href="http://www.ubuntulinux.org/"&gt;Ubuntu&lt;/a&gt;. Wow! First time I have ever done anything with a *nix. It's fantastic. I am considering switching my home machine to Ubuntu as well.
&lt;/p&gt;
&lt;p&gt;
I have made many ASP-based web sites before, but now that I had a Linux server, I thought I'd try something different. I installed &lt;a href="http://www.djangoproject.com/"&gt;Django&lt;/a&gt;, mainly because I have always wanted an excuse to learn &lt;a href="http://www.python.org/"&gt;Python&lt;/a&gt;. It was much easier to get going than ASP. I had heard the same thing about Ruby On Rails for a while, but had my doubts. Those doubts are gone.
&lt;/p&gt;
&lt;p&gt;
My biggest problem now is finding the time to explore them all.
&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6942369-112321713296742127?l=weborama.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://weborama.blogspot.com/feeds/112321713296742127/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=6942369&amp;postID=112321713296742127' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6942369/posts/default/112321713296742127'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6942369/posts/default/112321713296742127'/><link rel='alternate' type='text/html' href='http://weborama.blogspot.com/2005/08/jumping-in.html' title='Jumping In'/><author><name>Mark Finkle</name><uri>http://www.blogger.com/profile/17141520517633569688</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='09967691008718044371'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6942369.post-112270585959382761</id><published>2005-07-30T02:35:00.000-04:00</published><updated>2005-08-05T00:26:54.833-04:00</updated><title type='text'>Hello XUL Runner</title><content type='html'>&lt;p&gt;
I have been playing with &lt;a href="http://wiki.mozilla.org/XUL:Xul_Runner"&gt;XUL Runner&lt;/a&gt;. It feels like writing a web app, but runs on the desktop. Windows, Linux and Mac desktops. Sweet!
&lt;/p&gt;
&lt;p&gt;
Other things I like:
&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Nice selection of widgets and layouts&lt;/li&gt;
&lt;li&gt;XBL allows new widgets and behavior to be added.&lt;/li&gt;
&lt;li&gt;XPCOM allows calls to JavaScript and C++ non-GUI code.&lt;/li&gt;
&lt;li&gt;SVG support is builtin. (soon)&lt;/li&gt;
&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6942369-112270585959382761?l=weborama.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://weborama.blogspot.com/feeds/112270585959382761/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=6942369&amp;postID=112270585959382761' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6942369/posts/default/112270585959382761'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6942369/posts/default/112270585959382761'/><link rel='alternate' type='text/html' href='http://weborama.blogspot.com/2005/07/hello-xul-runner.html' title='Hello XUL Runner'/><author><name>Mark Finkle</name><uri>http://www.blogger.com/profile/17141520517633569688</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='09967691008718044371'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6942369.post-112123295925016966</id><published>2005-07-13T00:14:00.000-04:00</published><updated>2005-07-13T01:41:10.193-04:00</updated><title type='text'>UI Frameworks Are Pigs</title><content type='html'>&lt;p&gt;
Why are UI frameworks pigs? Because they don't love you back.
&lt;/p&gt;
&lt;p&gt;
You know the story: You meet this new UI framework. It seems so fresh and exciting. You start spending more time together, just doing small stuff. Things are so easy, not forced or boring like with your previous frameworks. So what if it acts a little immature. Before you know it, your writing specialized controls from scratch, embedding large amounts of business logic and enjoying every minute of it. Your head over heels. Next thing you know, your crying yourself to sleep and listening to Barry Manilow.
&lt;/p&gt;
&lt;p&gt;
Come on buddy! Snap out of it. UI frameworks don't love you back. They don't care about you. You need to watch out for yourself. Protect yourself. Isolate your code.
&lt;/p&gt;
&lt;p&gt;
If your not ready to drop your current UI framework and switch to something else right now because it could take person-years to port, you have problems. If you have team members that love your current UI framework too much to want to change, you have problems.
&lt;/p&gt;
&lt;p&gt;
They don't love you back.
&lt;/p&gt;
&lt;p&gt;
&lt;em&gt;The experiences above are not about me, but I have this friend...&lt;/em&gt;
&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6942369-112123295925016966?l=weborama.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://weborama.blogspot.com/feeds/112123295925016966/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=6942369&amp;postID=112123295925016966' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6942369/posts/default/112123295925016966'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6942369/posts/default/112123295925016966'/><link rel='alternate' type='text/html' href='http://weborama.blogspot.com/2005/07/ui-frameworks-are-pigs.html' title='UI Frameworks Are Pigs'/><author><name>Mark Finkle</name><uri>http://www.blogger.com/profile/17141520517633569688</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='09967691008718044371'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6942369.post-112122800900135391</id><published>2005-07-13T00:01:00.000-04:00</published><updated>2005-07-13T00:13:29.006-04:00</updated><title type='text'>AJAX and Rocket Science</title><content type='html'>&lt;p&gt;
Seems I am not the &lt;a href="http://weborama.blogspot.com/2005/07/scalable-user-experience.html"&gt;only&lt;/a&gt; &lt;a href="http://weborama.blogspot.com/2005/06/this-just-in-ajax-is-important.html"&gt;one&lt;/a&gt; &lt;a href="http://weborama.blogspot.com/2005/03/ajax-markets-abhor-vacuum.html"&gt;disturbed&lt;/a&gt; by the FUD some groups are pushing about AJAX being very difficult to implement. This &lt;a href="http://www.ajaxian.com/archives/2005/07/ajax_is_rocket.html"&gt;post&lt;/a&gt; has some good examples of how easy it can be.
&lt;/p&gt;
&lt;p&gt;
Writing good, quality software is non-trivial in any language. Wizards and RAD designers do not automagically generate great software.
&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6942369-112122800900135391?l=weborama.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://weborama.blogspot.com/feeds/112122800900135391/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=6942369&amp;postID=112122800900135391' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6942369/posts/default/112122800900135391'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6942369/posts/default/112122800900135391'/><link rel='alternate' type='text/html' href='http://weborama.blogspot.com/2005/07/ajax-and-rocket-science.html' title='AJAX and Rocket Science'/><author><name>Mark Finkle</name><uri>http://www.blogger.com/profile/17141520517633569688</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='09967691008718044371'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6942369.post-112050725990376047</id><published>2005-07-04T15:48:00.000-04:00</published><updated>2005-07-04T16:14:11.743-04:00</updated><title type='text'>Scalable User Experience</title><content type='html'>&lt;p&gt;
John Montgomery on &lt;a href="http://blogs.msdn.com/johnmont/archive/2005/07/03/435210.aspx"&gt;Scalable User Experience&lt;/a&gt;. Although I disagree with the &lt;em&gt;rocket scientist required&lt;/em&gt; myth, I agree with John's conclusions. I especially like this quote:
&lt;/p&gt;
&lt;blockquote&gt;
Rather than trying to replace every application model in use today with one perfect model, a better solution is to let them flourish and to connect them together so that each can do what it does best. This vision, which I'd call the "Scalable User Experience," is where Atlas begins to take application models. This team is building off three tenets (even if they don't know it):
&lt;ul&gt;
&lt;li&gt;Respect the richness of the client (whatever that is) to provide the best possible user experience&lt;/li&gt;
&lt;li&gt;Contain complexity on the server to build on existing administration skills and infrastructure&lt;/li&gt;
&lt;li&gt;Leave no developer behind by using existing developer skills, code, and tools&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;
&lt;p&gt;
I believe that AJAX is a methodology which can help achieve scalable user experiences. I am hoping toolkits like ATLAS can help with some of the weaker aspects of web applications, mainly integration with the desktop client.
&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6942369-112050725990376047?l=weborama.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://weborama.blogspot.com/feeds/112050725990376047/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=6942369&amp;postID=112050725990376047' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6942369/posts/default/112050725990376047'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6942369/posts/default/112050725990376047'/><link rel='alternate' type='text/html' href='http://weborama.blogspot.com/2005/07/scalable-user-experience.html' title='Scalable User Experience'/><author><name>Mark Finkle</name><uri>http://www.blogger.com/profile/17141520517633569688</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='09967691008718044371'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6942369.post-111993661181675339</id><published>2005-06-27T23:56:00.000-04:00</published><updated>2005-06-29T01:33:37.206-04:00</updated><title type='text'>In Search Of: A Usable UI</title><content type='html'>&lt;p&gt;
Jeremy Zawodny's &lt;a href="http://jeremy.zawodny.com/blog/archives/004853.html"&gt;Surprising User Expectations&lt;/a&gt; post and Jeff Atwood's &lt;a href="http://www.codinghorror.com/blog/archives/000325.html"&gt;UI is Hard&lt;/a&gt; post draw attention to a big problem in software development: Developers rarely design good UI's. I have come to the conclusion that UI design should be handled by people who understand how users think, interact and model problems. This is more of a human factors problem than a coding problem.
&lt;/p&gt;
&lt;p&gt;
I am a big proponent of making usable software. It's one of my crusades. &lt;em&gt;Usability&lt;/em&gt; is not defined by developers, it is defined by users. We recently completed our second phase of usability testing on a new product. It's always a learning experience watching regular people trying to use software. It can be frustrating when it's software I helped to develop. To make better UI's, developers need to appreciate the obstacles that confront users and try remove the obstacles. Usability testing and reading people like Cooper, Nielsen and Norman can give you a better perspective.
&lt;/p&gt;
&lt;p&gt;
Here are a couple guidelines I compiled from my own experiences and from people smarter than me:
&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Be flexible:&lt;/strong&gt; Allow for multiple ways to get something done. Use main menus, toolbars, right-click menus, task panes and hyperlinks. This allows the user to choose the way most comfortable to them instead of forcing them to learn &lt;em&gt;your&lt;/em&gt; way. Keep in mind that for any given user, the preferred method could change over time.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Be explicit:&lt;/strong&gt; Don't force the user to guess or explore the UI. Use verbose captions, messages and explanations.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Be proactive:&lt;/strong&gt; Don't wait until the user gets into trouble, keep the user from getting into trouble in the first place. Why wait until the end of a process to inform the user they made a mistake at the beginning?&lt;/li&gt; 
&lt;li&gt;&lt;strong&gt;Be forgiving:&lt;/strong&gt; Make it possible for a user to recover from an unwanted action. People make wrong choices. Recovering from a bad choice with most of your data intact is far better than being forced to recreate something from scratch.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Be simple:&lt;/strong&gt; Simple, focused screens and dialogs are easier to learn and allow users to get things done faster.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Be consistent:&lt;/strong&gt; Make use of the fact the users can learn how to do things. Don't force them to re-learn how to do the same or similar things.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
None of these points is revolutionary or even original. But it's amazing how few applications implement them.
&lt;/p&gt;
&lt;p&gt;
Jeff's post has some good links to other articles that are worth checking out. He also brings up the concept of &lt;a href="http://www.sapdesignguild.org/resources/ui_first.asp"&gt;UI First&lt;/a&gt; development. I definitely agree that the UI should be given some focus early in the project. Unless your building an engine or library, the end-user is going to equate the UI with the software. If the UI is bad it won't matter how good the code is behind the scenes.
&lt;/p&gt;
&lt;p&gt;
&lt;strong&gt;Update:&lt;/strong&gt; For those interested, a co-woker pointed me to another UI First design methodology at &lt;a href="http://www.humanfactors.com/about/swmethod.asp"&gt;Human Factors International (HFI)&lt;/a&gt;.
&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6942369-111993661181675339?l=weborama.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://weborama.blogspot.com/feeds/111993661181675339/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=6942369&amp;postID=111993661181675339' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6942369/posts/default/111993661181675339'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6942369/posts/default/111993661181675339'/><link rel='alternate' type='text/html' href='http://weborama.blogspot.com/2005/06/in-search-of-usable-ui.html' title='In Search Of: A Usable UI'/><author><name>Mark Finkle</name><uri>http://www.blogger.com/profile/17141520517633569688</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='09967691008718044371'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6942369.post-111998043160874566</id><published>2005-06-28T12:55:00.000-04:00</published><updated>2005-06-28T23:21:05.876-04:00</updated><title type='text'>This Just In: AJAX Is Important</title><content type='html'>&lt;p&gt;
Looks like Microsoft is getting on the AJAX bandwagon, whether they like it or not. &lt;a href="http://radio.weblogs.com/0001011/2005/06/28.html#a10497"&gt;Scoble&lt;/a&gt; mentions a Microsoft Javascript library named ATLAS. &lt;a href="http://news.com.com/Microsoft+gets+hip+to+AJAX/2100-1007_3-5765197.html"&gt;CNET&lt;/a&gt;, &lt;a href="http://www.microsoft-watch.com/article2/0,1995,1832167,00.asp"&gt;Microsoft Watch&lt;/a&gt; and &lt;a href="http://www.informationweek.com/story/showArticle.jhtml?articleID=164903218&amp;tid=5979"&gt;Information Week&lt;/a&gt; posted articles about ATLAS. Charles Fitzgerald is, &lt;a href="http://weborama.blogspot.com/2005/03/ajax-markets-abhor-vacuum.html"&gt;again&lt;/a&gt;, the MS guy involved. Reading the articles, I can't tell if Fitzgerald is excited about ATLAS/AJAX or just feels like its something MS needed to do to stay relevant in web development. Some quotes:
&lt;/p&gt;
&lt;blockquote&gt;
"People who do (AJAX development) are rocket scientists," Fitzgerald said. "In some ways, this papers over the mess that is JavaScript development. It's easy-to-build 'spaghetti' code." [CNET]
&lt;/blockquote&gt;
&lt;blockquote&gt;
"Microsoft is really the only company that spans the continuum, from the simplest Web client through he smartest client," said Fitzgerald. [Microsoft Watch]
&lt;/blockquote&gt;
&lt;blockquote&gt;
"We just needed the clever name" – like Ajax, Fitzgerald said, to explain the various things that developers have been able to do for almost a decade with Microsoft technologies. [Microsoft Watch]
&lt;/blockquote&gt;
&lt;blockquote&gt;
Using Atlas, developers will be able to write Ajax apps that contain pre-written code to smooth over technical distinctions between Web browsers, and debug those apps with Microsoft-branded tools, says Charles Fitzgerald, a general manager at Microsoft. Using Ajax today, he says, "is a little bit of a hack." [Information Week]
&lt;/blockquote&gt;
&lt;p&gt;
Here is what I think:
&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Microsoft invented the technologies now called AJAX, but moved away from browser based clients in favor of Windows based clients (Smart, Rich, Thick, Fat or otherwise).
&lt;/li&gt;
&lt;li&gt;The world of web development is quickly moving toward AJAX-style development. Microsoft is late and needs to make some mindshare.&lt;/li&gt;
&lt;li&gt;Microsoft is a development tool vendor. They sell tools to make development easier, therefore, current AJAX development must be hard (rocket scientists need only apply) and messy.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;
Seems to me that many &lt;a href="http://www.google.com/search?q=ajax+toolkits"&gt;AJAX toolkits&lt;/a&gt; already exist. Many web applications are incorporating AJAX very quickly. Examples of AJAX range from simple enhancements to full blown applications, implemented by mere mortals.
&lt;/p&gt;
&lt;p&gt;
This move does not seem in sync with Microsoft's .NET/WebForms/Smart Client agenda. Therefore, I question whether their heart is in the initiative. On the other hand, Microsoft's new &lt;a href="http://msdn.microsoft.com/longhorn/understanding/rss/simplefeedextensions/"&gt;RSS initiative&lt;/a&gt; (also connected to &lt;a href="http://www.microsoft-watch.com/article2/0,1995,1831318,00.asp"&gt;Fitzgerald&lt;/a&gt;) seems inline with current company agendas and has good backing inside and outside the company.
&lt;/p&gt;
&lt;p&gt;
&lt;strong&gt;Update:&lt;/strong&gt; &lt;a href="http://spaces.msn.com/members/siteexperts/Blog/cns!1pNcL8JwTfkkjv4gg6LkVCpw!1084.entry"&gt;Scott Isaacs&lt;/a&gt; of MSN Spaces and &lt;a href="http://weblogs.asp.net/scottgu/archive/2005/06/28/416185.aspx"&gt;Scott Guthrie&lt;/a&gt; of ASP.NET have some good technical posts on AJAX.
&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6942369-111998043160874566?l=weborama.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://weborama.blogspot.com/feeds/111998043160874566/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=6942369&amp;postID=111998043160874566' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6942369/posts/default/111998043160874566'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6942369/posts/default/111998043160874566'/><link rel='alternate' type='text/html' href='http://weborama.blogspot.com/2005/06/this-just-in-ajax-is-important.html' title='This Just In: AJAX Is Important'/><author><name>Mark Finkle</name><uri>http://www.blogger.com/profile/17141520517633569688</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='09967691008718044371'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6942369.post-111880940346785306</id><published>2005-06-15T00:16:00.000-04:00</published><updated>2005-06-15T00:23:23.470-04:00</updated><title type='text'>MSHTML Hosting Article Published</title><content type='html'>&lt;p&gt;
I wrote an MSHTML hosting article for the &lt;a href="http://bcbjournal.org/"&gt;C++Builder Developer's Journal&lt;/a&gt;. They decided to make the issue freely available. &lt;a href="http://bcbjournal.com/free_issue/vol9_num6.htm"&gt;HTML&lt;/a&gt; and &lt;a href="http://bcbjournal.com/free_issue/bcbj_vol9_num6.pdf"&gt;PDF&lt;/a&gt; versions are available.
&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6942369-111880940346785306?l=weborama.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://weborama.blogspot.com/feeds/111880940346785306/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=6942369&amp;postID=111880940346785306' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6942369/posts/default/111880940346785306'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6942369/posts/default/111880940346785306'/><link rel='alternate' type='text/html' href='http://weborama.blogspot.com/2005/06/mshtml-hosting-article-published.html' title='MSHTML Hosting Article Published'/><author><name>Mark Finkle</name><uri>http://www.blogger.com/profile/17141520517633569688</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='09967691008718044371'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6942369.post-111880659762374845</id><published>2005-06-14T22:41:00.000-04:00</published><updated>2005-06-14T23:36:37.666-04:00</updated><title type='text'>Rich UI vs User Experience</title><content type='html'>&lt;p&gt;
&lt;a href="http://blogs.msdn.com/johnmont/default.aspx"&gt;John Montgomery&lt;/a&gt; and &lt;a href="http://weblog.infoworld.com/udell"&gt;Jon Udell&lt;/a&gt; are having a discussion about AJAX and rich internet applications. Montgomery is trying to determine what all the fuss over AJAX is about. He played with some toolkits and is unimpressed. Why? He doesn't see how AJAX can compete with Winforms/Webforms on user experience. John &lt;a href="http://blogs.msdn.com/johnmont/archive/2005/06/12/428375.aspx"&gt;says&lt;/a&gt;:
&lt;blockquote&gt;Mostly, Jon's posts got me to thinking about why we (that's you and me - Web users) are OK with degraded user experiences. I mean, for years we had great desktop applications to do things like calendaring and email and even mapping software. Then came the initial Web, where HTML 3.2 and some JavaScript meant that Web apps just couldn't be as nice as local apps. And now we're all very excited about things like Evite, Gmail, and Google maps. But compare Google Maps to Streets and Trips, which I did recently, and the experience with S&amp;T is much better. Same with Outlook vs. Gmail (usually, anyway). Heck, most people read blogs through a Web browser, not an aggregator, even though aggregators are much more efficient.

So why do we let ourselves settle?&lt;/blockquote&gt;
&lt;/p&gt;
&lt;p&gt;
I think he is confusing &lt;em&gt;user experience&lt;/em&gt; for &lt;em&gt;rich widgets&lt;/em&gt;. Web-based applications can achieve a high level of user experience and usability without the need for complex widgets. Good web applications are simple, small and well focused to the task at hand. In fact, I always use the web versions of the applications he lists over the desktop versions.
&lt;/p&gt;
&lt;p&gt;
As John points out, the web-style hyperlink approach, with few options and everything laid out in front of the user, is easy to learn and use. To me, this increases user experience, not degrade it. John also points out that content is more plentiful in web-based applications and users like getting content. So much so that he feels users are willing to give up a great UI if they can get great content. Why does a user want a great UI at all? Seems to me that users only really care about content (or data). I think usability experts like &lt;a href="http://www.useit.com/alertbox/"&gt;Nielsen&lt;/a&gt; and &lt;a href="http://www.cooper.com/"&gt;Cooper&lt;/a&gt; would say a great UI is a UI that allows users to complete tasks without getting in the way. The UI should not be centerstage.
&lt;/p&gt;
&lt;p&gt;
Udell's &lt;a href="http://weblog.infoworld.com/udell/2005/06/14.html#a1250"&gt;posts&lt;/a&gt; point out that AJAX systems have a tendency to allow users access to content they want in ways the web-UI did not anticipate. Also seeming to confirm my suspicion that users don't care much for flashy UI's, but graviate to applications that make it easy to extract and manipulate content. WebDAV and SOAP are not low-hurdle technologies, XmlHttpRequest seems to be. AJAX is a methodology for enhancing web application functionality, not for replicating desktop applications. People don't want desktop applications running in the browser, didn't Java teach us that?
&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6942369-111880659762374845?l=weborama.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://weborama.blogspot.com/feeds/111880659762374845/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=6942369&amp;postID=111880659762374845' title='8 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6942369/posts/default/111880659762374845'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6942369/posts/default/111880659762374845'/><link rel='alternate' type='text/html' href='http://weborama.blogspot.com/2005/06/rich-ui-vs-user-experience.html' title='Rich UI vs User Experience'/><author><name>Mark Finkle</name><uri>http://www.blogger.com/profile/17141520517633569688</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='09967691008718044371'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>8</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6942369.post-111769239862853219</id><published>2005-06-02T01:15:00.000-04:00</published><updated>2005-06-02T02:10:24.856-04:00</updated><title type='text'>XML File Formats in Office 12</title><content type='html'>&lt;p&gt;
Brian Jones, program manager on the Word team &lt;a href="http://blogs.msdn.com/brian_jones/archive/2005/06/01/424085.aspx"&gt;posted&lt;/a&gt; news about the new XML file formats in Office 12. I have posted a few times on &lt;a href="http://weborama.blogspot.com/2004/05/using-xml-as-file-format.html"&gt;XML&lt;/a&gt; &lt;a href="http://weborama.blogspot.com/2004/06/high-on-xml.html"&gt;file&lt;/a&gt; &lt;a href="http://weborama.blogspot.com/2005/03/xml-vs-serialization.html"&gt;formats&lt;/a&gt;, so I am interested in what Office is doing. Some interesting points:
&lt;ul&gt;
&lt;li&gt;&lt;span style="font-weight:bold;"&gt;Full fidelity.&lt;/span&gt; As good as the binary format.&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:bold;"&gt;Compressed.&lt;/span&gt; Lots of file parts stored in a structured ZIP archive, similar to &lt;a href="http://www.oasis-open.org/committees/office/faq.php"&gt;OpenDocument&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:bold;"&gt;Fully documented.&lt;/span&gt; Whitepapers, documentation and XSD schemas.&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:bold;"&gt;Robust.&lt;/span&gt; A lot less likely to get a corrupt file that can't have pieces recovered.&lt;/li&gt;
&lt;/ul&gt;
IMO, the above points could be true for any product using an &lt;a href="http://xml.openoffice.org"&gt;XML package format&lt;/a&gt;, but the fact that Office is doing it means millions of users can escape the data roach motel.
&lt;/p&gt;
&lt;p&gt;
Scoble has more on &lt;a href="http://channel9.msdn.com/ShowPost.aspx?PostID=73329"&gt;Channel 9&lt;/a&gt; as well as his own &lt;a href="http://radio.weblogs.com/0001011/2005/06/01.html#a10287"&gt;blog&lt;/a&gt;. Jones plans to link to whitepapers as soon as they become available on MSDN.
&lt;/p&gt;
&lt;p&gt;
Granted, Office is following OpenDocument here, but this is a really good thing.
&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6942369-111769239862853219?l=weborama.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://weborama.blogspot.com/feeds/111769239862853219/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=6942369&amp;postID=111769239862853219' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6942369/posts/default/111769239862853219'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6942369/posts/default/111769239862853219'/><link rel='alternate' type='text/html' href='http://weborama.blogspot.com/2005/06/xml-file-formats-in-office-12.html' title='XML File Formats in Office 12'/><author><name>Mark Finkle</name><uri>http://www.blogger.com/profile/17141520517633569688</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='09967691008718044371'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6942369.post-111431922955009319</id><published>2005-04-24T00:42:00.000-04:00</published><updated>2005-04-24T01:20:06.123-04:00</updated><title type='text'>MSHTML Hosting - Drawing On WebBrowser</title><content type='html'>&lt;p&gt;
Hosting the WebBrowser in your application makes it easy to create slick-looking textual UI's. HTML is a fairly expressive markup language and the results can be very professional with little difficulty. The graphical side is a little less impressive. Thankfully, SVG and VML (native support in the WebBrowser control) go a long way to fill the gap. Both have capabilities that blow away good old Win32 GDI drawing. Even so, there may be times that you wish you could grab an HDC for the WebBrowser control and start drawing on it. The WebBrowser control actually has a system built into it that allows you to do just that.
&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://msdn.microsoft.com/workshop/browser/mshtml/reference/ifaces/painter/ihtmlpainter.asp"&gt;IHTMLPainter&lt;/a&gt; is part of a system in MSHTML called &lt;a href="http://msdn.microsoft.com/library/default.asp?url=/workshop/browser/behaviors/binbehaviors_node_entry.asp"&gt;Binary Behaviors&lt;/a&gt;. Behaviors can do lots of cool stuff. Painters are a special kind of behavior called a rendering behavior. IHTMLPainter::Draw is called by MSHTML before or after the HTML content is rendered allowing you to draw below or above the content. MSHTML passes an HDC into method that you can use with any GDI or GDI+ drawing function. Basically, behaviors are COM objects that you implement and are &lt;a href="http://msdn.microsoft.com/workshop/browser/editing/imprendbehav.asp#Attaching_Your_Rendering_Behavior_to_an_Element"&gt;associated &lt;/a&gt; with HTML elements, either in the HTML itself using CSS or progammatically using &lt;a href="http://msdn.microsoft.com/workshop/browser/mshtml/reference/ifaces/element2/addbehavior.asp"&gt;addBehavior&lt;/a&gt;. The MSDN has a nice &lt;a href="http://msdn.microsoft.com/workshop/browser/editing/imprendbehav.asp"&gt;tutorial&lt;/a&gt; on creating a rendering behavior that includes sample code.
&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6942369-111431922955009319?l=weborama.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://weborama.blogspot.com/feeds/111431922955009319/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=6942369&amp;postID=111431922955009319' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6942369/posts/default/111431922955009319'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6942369/posts/default/111431922955009319'/><link rel='alternate' type='text/html' href='http://weborama.blogspot.com/2005/04/mshtml-hosting-drawing-on-webbrowser.html' title='MSHTML Hosting - Drawing On WebBrowser'/><author><name>Mark Finkle</name><uri>http://www.blogger.com/profile/17141520517633569688</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='09967691008718044371'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6942369.post-111371516378939831</id><published>2005-04-24T00:27:00.000-04:00</published><updated>2005-04-24T00:42:13.490-04:00</updated><title type='text'>XML Services In Desktop Applications</title><content type='html'>&lt;p&gt;
It's pretty fair to say that I'd like to change the way I write desktop applications. I am tired of the UI framework lockin that comes with traditional desktop development. I've posted a &lt;a href="http://weborama.blogspot.com/2004/12/dhtml-based-desktop-applications.html"&gt;couple&lt;/a&gt;            &lt;a href="http://weborama.blogspot.com/2005/02/svg-dhtml-applications.html"&gt;times&lt;/a&gt; about using DHTML+SVG to create a desktop application UI. I have been working on prototypes in DHTML+SVG, as well as &lt;a href="http://www.openlaszlo.org/"&gt;Laszlo&lt;/a&gt; (server-less deployment is now available) and &lt;a href="http://www.xamlon.com/"&gt;Xamlon&lt;/a&gt; (they have a cool new flash-based system in addition to the .NET system).
&lt;/p&gt;
&lt;p&gt;
I am now focusing my attention on non-UI parts of desktop applications and how Web-like techniques could be applied. Desktop applications, large ones specifically, are usually composed of subsystems that are exposed to the user via a host client. IMO, it's important to componentize these subsystems and get them to interact in a way that does not tightly couple them together. Sounds a lot like the definition of a Web service. One way of doing this in C++ is using abstract base classes as interfaces. I am beginning to find this method too object-oriented &lt;a href="http://weborama.blogspot.com/2004/11/ood-less-is-more.html"&gt;for&lt;/a&gt; &lt;a href="http://weborama.blogspot.com/2005/03/holding-state-as-objects-is-painful.html"&gt;my&lt;/a&gt; &lt;a href="http://weborama.blogspot.com/2005/03/objectrelational-mapping-no-thanks.html"&gt;tastes&lt;/a&gt;. The sheer number of interfaces required to support the subsystem can be quite large. Interfaces usually cause a language lockin as well. C++ abstract base classes cannot be used very easily by other languages, unless your willing to completely wrap your interfaces with proxy code.
&lt;/p&gt;
&lt;p&gt;
I am leaning more towards an XML services approach. Each subsystem would have a single entry point which would dispatch XML messages (in a RESTful sorta way) throughout the rest of the subsystem. This approach feels just like Web-based services and has the same kind of benefits. Just about any language can immediately start using the subsystem with minimal effort. The subsystem's dispatch entry point could be made HTTP-aware and suddenly gain the benefits of a true Web service:
&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Subsystems can be put on different machines.&lt;/li&gt;
&lt;li&gt;HTTP techniques can be used to increase scalability and robustness.&lt;/li&gt;
&lt;li&gt;Many different and special-use clients can be created which leverage the subsystem.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
The kind of subsystems I am referring to include parsers, graph renders, expression evaluators, report generators, data converters and data analysis systems. These are examples of systems that should be made well-defined islands and have great potential for reuse. Instead, they are locked up into the UI client and can not be integrated into other solutions.
&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6942369-111371516378939831?l=weborama.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://weborama.blogspot.com/feeds/111371516378939831/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=6942369&amp;postID=111371516378939831' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6942369/posts/default/111371516378939831'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6942369/posts/default/111371516378939831'/><link rel='alternate' type='text/html' href='http://weborama.blogspot.com/2005/04/xml-services-in-desktop-applications.html' title='XML Services In Desktop Applications'/><author><name>Mark Finkle</name><uri>http://www.blogger.com/profile/17141520517633569688</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='09967691008718044371'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6942369.post-110893512831520857</id><published>2005-04-02T16:31:00.000-05:00</published><updated>2005-04-02T15:07:05.876-05:00</updated><title type='text'>MSHTML Hosting - More Tricks</title><content type='html'>&lt;p&gt;
Here are a couple miscellaneous tips for using the WebBrowser while in &lt;a href="http://weborama.blogspot.com/2004/10/mshtml-hosting-editing.html"&gt;design (edit) mode&lt;/a&gt;.
&lt;/p&gt;
&lt;strong&gt;Setting Focus In Design Mode&lt;/strong&gt;
&lt;p&gt;
With the WebBrowser control in design mode, there are times that focus (and the blinking cursor) are not set correctly. For example, with focus in the editor, ALT+TAB away from your application, and then back again. Focus may not be set back into the editor. Here is a simple way to fix it. Put this code in an event or message handler that gets called when your application is re-activated:
&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;
IHTMLDocument2* pHTMLDoc2 = ...;
IHTMLWindow2* pWindow = 0;
pHtmlDoc2-&gt;get_parentWindow(&amp;spWindow);
if (pWindow) {
  pWindow-&gt;focus();
  pWindow-&gt;Release();
}
&lt;/code&gt;&lt;/pre&gt;
&lt;strong&gt;Unselecting Current Selection&lt;/strong&gt;
&lt;p&gt;
IHTMLTxtRange has a method to easily select a range of text, but there is no simple method to unselect an existing text selection. Here is a simple way to do it:
&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;
IHTMLDocument2* pHTMLDoc2 = ...;
IHTMLSelectionObject* pSelection = 0;
pHTMLDoc2-&gt;get_selection(&amp;pSelection);
if (pSelection) {
  IDispatch* pDispRange = 0;
  pSelection-&gt;createRange(&amp;pDispRange);

  IHTMLTxtRange* pTxtRange = 0;
  pDispRange-&gt;QueryInterface(IID_IHTMLTxtRange, (void**)&amp;pTxtRange);
  if (pTxtRange) {
    VARIANT_BOOL bSuccess;
    pTxtRange-&gt;execCommand(CComBSTR(L"Unselect"), VARIANT_FALSE, CComVariant(), &amp;bSuccess);
    pTxtRange-&gt;Release();
  }
  pDispRange-&gt;Release();
  pSelection-&gt;Release();
}
&lt;/code&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6942369-110893512831520857?l=weborama.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://weborama.blogspot.com/feeds/110893512831520857/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=6942369&amp;postID=110893512831520857' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6942369/posts/default/110893512831520857'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6942369/posts/default/110893512831520857'/><link rel='alternate' type='text/html' href='http://weborama.blogspot.com/2005/04/mshtml-hosting-more-tricks.html' title='MSHTML Hosting - More Tricks'/><author><name>Mark Finkle</name><uri>http://www.blogger.com/profile/17141520517633569688</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='09967691008718044371'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6942369.post-109124973252804280</id><published>2004-07-31T00:34:00.000-04:00</published><updated>2005-03-24T02:36:20.000-05:00</updated><title type='text'>More on Task-based UI's</title><content type='html'>&lt;p&gt;
Microsoft published the first &lt;a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnforms/html/winforms07202004.asp"&gt;article&lt;/a&gt; of a two-part series on Inductive UI (IUI) design, their buzzword for Task-based UI. This one covers a couple things:
&lt;ul&gt;
&lt;li&gt;How IUI can help users get frequent tasks completed faster.&lt;/li&gt;
&lt;li&gt;What is a frequent task.&lt;/li&gt;
&lt;li&gt;How you can implement a IUI design using a .NET library.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;
If you have ever seen an IUI design (think Task Panes in MS Office 2003), you will almost immediately see Web-style similarities. The article discusses this, referring to Dialog-style versus Web-style UI's. The author does note that in many cases experienced users will prefer Dialog-style UI's over Web-style. While I can agree with the sentiment, it usually happens in cases where the Web-style UI is designed to perform a long, drawn out wizard process. In most cases, such Task Panes, Web-style UI's are just as unobtrusive and straight forward as the Dialog-style counterparts.
&lt;/p&gt;
&lt;p&gt;
Since I am working on a Task Pane infrastructure for an application at work, I was also interested in the details of the Web-style navigation library used to build Task Panes in .NET applications. The library allows programmers to create &lt;em&gt;pages&lt;/em&gt;, which appear to be frame-like surfaces you can drop controls onto.  The library manages a stack of those pages. This is different than our approach, which uses the MSHTML web browser component to host a stack of HTML pages.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Update:&lt;/strong&gt; &lt;a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnforms/html/winforms09212004.asp"&gt;Part 2&lt;/a&gt; is available.
&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6942369-109124973252804280?l=weborama.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://weborama.blogspot.com/feeds/109124973252804280/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=6942369&amp;postID=109124973252804280' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6942369/posts/default/109124973252804280'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6942369/posts/default/109124973252804280'/><link rel='alternate' type='text/html' href='http://weborama.blogspot.com/2004/07/more-on-task-based-uis.html' title='More on Task-based UI&apos;s'/><author><name>Mark Finkle</name><uri>http://www.blogger.com/profile/17141520517633569688</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='09967691008718044371'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6942369.post-111126566822476254</id><published>2005-03-19T14:45:00.000-05:00</published><updated>2005-03-19T17:08:42.546-05:00</updated><title type='text'>AJAX - Markets Abhor a Vacuum</title><content type='html'>&lt;p&gt;
If you have only recently heard of greatness of AJAX, then you have not been paying attention for the last 5 years. Not that there's anything wrong with that. Lot's of people are quite excited by the new hype over HTML + JavaScript (+ XML + SVG), myself included. The reason for this post? Just to put down in words some of my reactions to things I've seen written in regard to the new hype.
&lt;/p&gt;
&lt;p&gt;
CNET has an &lt;a href="http://news.com.com/Web+tools+blaze+trail+to+the+past/2100-1032_3-5621010-3.html?tag=st.next"&gt;article&lt;/a&gt; discussing the renaissance and how AJAX may be used in the future, leading to a possible destruction of desktop applications. I love the media. Anyway, Charles Fitzgerald of Microsoft is quoted:
&lt;/p&gt;
&lt;blockquote&gt;"It's a little depressing that developers are just now wrapping their heads around these things we shipped in the late 20th century,"&lt;/blockquote&gt;
&lt;p&gt;
I can agree with that. None of this stuff is brand new. In the same article, David Mendels of Macromedia is quoted:
&lt;/p&gt;
&lt;blockquote&gt; "It is really, really, really hard to build something like Gmail and Google Maps,"&lt;/blockquote&gt;
&lt;blockquote&gt;"Google hired rocket scientists--they hired Adam Bosworth, who invented DHTML when he was at Microsoft. Most companies can't go and repeat what Google has done."&lt;/blockquote&gt;
&lt;p&gt;
I think this is total crap. The article ends with a quote from David Temkin of Laszlo:
&lt;/p&gt;
&lt;blockquote&gt;"The successors to Word and Excel and Powerpoint are not going to be written this way. It's just not going to happen."&lt;/blockquote&gt;
&lt;p&gt;
This seems like a strange thing for a rich Internet application framework vendor like Laszlo to say. Even assuming that David was not quoted out of context, the statement is wrong.
&lt;/p&gt;
&lt;p&gt;
Software products are mainly driven by markets. Users in those markets have needs and software is created to meet those needs. If your company makes a desktop OS, you'll probably make software that runs on the OS. At least until the users' needs change and the market forces you to re-evaluate how you build your software. How quickly you change the way you build your software depends on many factors, including the strength of the market forces and the cost of rewriting your existing codebase.
&lt;/p&gt;
&lt;p&gt;
By the way, writing any kind of software application can be really, really, really hard. There is a difference between building a web-site and writing a web-application. And yes, I do have an aerospace engineering degree. Desktop or web, it's still hard.
&lt;/p&gt;
&lt;p&gt;
My point is that if there was enough of a user need for presentation software that could be run from anywhere, the next version of PowerPoint would be built using an AJAX-like framework. It probably would not be Microsoft that builds it. They have an existing codebase that makes it costly to do such a thing. If PowerPoint was a product of the MSN division, things might be different. IMO, that group is doing some of the best new work at Microsoft.
&lt;/p&gt;
&lt;p&gt;John Gossman has a &lt;a href="http://blogs.msdn.com/johngossman/archive/2005/03/19/399092.aspx"&gt;couple&lt;/a&gt; &lt;a href="http://blogs.msdn.com/johngossman/archive/2005/03/19/399101.aspx"&gt;posts&lt;/a&gt; that also stirred me up. In general, John is definitely worth reading. He agrees with Temkin that Office will not be rewritten using AJAX, but attributes some of that to  browser limitations. Many of those limitations are gone, including the advanced graphics issue he brings up. SVG and VML (in IE) do some pretty cool things. More than enough to drive a decent PowerPoint/Excel replacement.
&lt;/p&gt;
&lt;p&gt;
Robert Scoble brings up offline usage in a recent &lt;a href="http://radio.weblogs.com/0001011/2005/03/19.html#a9672"&gt;post&lt;/a&gt;. Again, this limitation can be overcome. Since IE 5, web applications could use the &lt;a href="http://msdn.microsoft.com/workshop/author/behaviors/reference/behaviors/userdata.asp"&gt;userData behavior&lt;/a&gt; to store data locally. Together with client-side XML/XSLT, its pretty effective. I am sure Mozilla/Firefox has something similar.
&lt;/p&gt;
&lt;p&gt;
The replacement does not need to have all the features of the desktop version. Successful web-based applications (like email, bug-tracking, ERP systems, RSS aggregators and blogging tools) have shown that users are willing to give up some of the "niceties" of a desktop version for the benefits of web-based deployment.
&lt;/p&gt;
&lt;p&gt;
Markets (and users) abhor vacuums. If a web-based PowerPoint vacuum exists, some software vendor will fill it.
&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6942369-111126566822476254?l=weborama.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://weborama.blogspot.com/feeds/111126566822476254/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=6942369&amp;postID=111126566822476254' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6942369/posts/default/111126566822476254'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6942369/posts/default/111126566822476254'/><link rel='alternate' type='text/html' href='http://weborama.blogspot.com/2005/03/ajax-markets-abhor-vacuum.html' title='AJAX - Markets Abhor a Vacuum'/><author><name>Mark Finkle</name><uri>http://www.blogger.com/profile/17141520517633569688</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='09967691008718044371'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6942369.post-111000929834686695</id><published>2005-03-05T02:40:00.000-05:00</published><updated>2005-03-05T02:56:11.453-05:00</updated><title type='text'>XML vs Serialization</title><content type='html'>&lt;p&gt;
In this &lt;a href="http://www.xmleverywhere.com/tiki/tiki-index.php?page=XML+vs+Serialization"&gt;XML vs Serialization&lt;/a&gt; post, the author lists reasons why XML is not a good serialization format. I would turn the list around and say those are the exact reasons why XML is a good way to develop a serialization format. Even if its just an XML dump of your object model (I think we could do better than that), it's still better than a &lt;span style="font-weight:bold;"&gt;binary&lt;/span&gt; dump.  If my object model changes, and it surely will, I can always transform the older XML dump to the newer structure. Even if its by a hand-written script. You can't easily do that with binary.
&lt;/p&gt;
&lt;p&gt;
Also, I don't believe serialization implies the object model is &lt;span style="font-style:italic;"&gt;more important&lt;/span&gt; than the data. I prefer to think it means the object model &lt;span style="font-style:italic;"&gt;holds&lt;/span&gt; the data.
&lt;/p&gt;
&lt;p&gt;
Via &lt;a href="http://www.mnot.net/blog/2005/03/02/decision_tree"&gt;mnot&lt;/a&gt;
&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6942369-111000929834686695?l=weborama.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://weborama.blogspot.com/feeds/111000929834686695/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=6942369&amp;postID=111000929834686695' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6942369/posts/default/111000929834686695'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6942369/posts/default/111000929834686695'/><link rel='alternate' type='text/html' href='http://weborama.blogspot.com/2005/03/xml-vs-serialization.html' title='XML vs Serialization'/><author><name>Mark Finkle</name><uri>http://www.blogger.com/profile/17141520517633569688</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='09967691008718044371'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6942369.post-110991297217170763</id><published>2005-03-04T01:59:00.000-05:00</published><updated>2005-03-04T01:09:54.146-05:00</updated><title type='text'>Object/Relational Mapping - No Thanks</title><content type='html'>&lt;p&gt;
I have already &lt;a href="http://weborama.blogspot.com/2005/03/holding-state-as-objects-is-painful.html"&gt;posted&lt;/a&gt; some of my current feelings on using object hierarchies to hold state. It should come as no surprise then, that I am also questioning value of object-to-relational mapping systems. Why in the world would I want some system to create a multitude of objects just so I could manage state (not behavior) using those objects.
&lt;/p&gt;
&lt;p&gt;
I still end up with a brittle object model that is difficult to navigate and breaks when my state changes and exposes the rest of my code to that breakage. SQL and XML both provide simple ways to query and navigate using loosely coupled techniques.
&lt;/p&gt;
&lt;p&gt;
Fewer objects, not more. It does not matter if they are auto-generated or not. I still have to use them in my code.
&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6942369-110991297217170763?l=weborama.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://weborama.blogspot.com/feeds/110991297217170763/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=6942369&amp;postID=110991297217170763' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6942369/posts/default/110991297217170763'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6942369/posts/default/110991297217170763'/><link rel='alternate' type='text/html' href='http://weborama.blogspot.com/2005/03/objectrelational-mapping-no-thanks.html' title='Object/Relational Mapping - No Thanks'/><author><name>Mark Finkle</name><uri>http://www.blogger.com/profile/17141520517633569688</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='09967691008718044371'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6942369.post-110965960427535246</id><published>2005-03-03T01:43:00.000-05:00</published><updated>2005-03-04T01:09:34.406-05:00</updated><title type='text'>Holding State as Objects is Painful</title><content type='html'>&lt;p&gt;
As a developer, I write code. Code is good. I like code. But the people who use the applications I write could care less about the &lt;span style="font-style: italic;"&gt;precious&lt;/span&gt; code. They care about.. wait for it... the data. Shocking, isn't it. I could have written the most elegant, wonderful code possible, but if I can't move their SuperApp version 1 files to SuperApp version 2, it's worthless.
&lt;/p&gt;
&lt;p&gt;
Coding usually involves either holding state or executing behavior on the state. Holding state as an object hierarchy is really painful. First, someone has to write all those damn classes that map to the state. Then, changes to the state structure break the object model and any code using the object model. Besides brittleness, object models are a pain to walk (or navigate) and difficult to query or filter. Developers usually have to write other framework objects to support parent/child object relationships. Persisting from an object model can also be a pain and increases the likelihood of problems when the state structure (and therefore object model, and therefore persistence format) changes.
&lt;/p&gt;
&lt;p&gt;
I say it's time to let it go. Focus on the data. Protect it. Ensure it's stored in a way that's robust enough to handle future changes. Think about this: MS Word 97 can &lt;a href="http://weblogs.asp.net/chris_pratley/archive/2004/04/28/122004.aspx"&gt;open&lt;/a&gt; an MS Word 2003 file. Somebody was thinking about the data.
&lt;/p&gt;
&lt;p&gt;
Use code to execute behavior on the data. Separate code from data, just like we're told to separate UI from business logic. If you've been reading my &lt;a href="http://weborama.blogspot.com/2004/11/ood-less-is-more.html"&gt;stuff&lt;/a&gt;, it should come as no surprise that I favor separating code from data by using XML to hold state. It's a means to an end. XML supports the kind of structure my state needs. It also supports standard ways to quickly walk or query for a piece of data from my state.
&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6942369-110965960427535246?l=weborama.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://weborama.blogspot.com/feeds/110965960427535246/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=6942369&amp;postID=110965960427535246' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6942369/posts/default/110965960427535246'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6942369/posts/default/110965960427535246'/><link rel='alternate' type='text/html' href='http://weborama.blogspot.com/2005/03/holding-state-as-objects-is-painful.html' title='Holding State as Objects is Painful'/><author><name>Mark Finkle</name><uri>http://www.blogger.com/profile/17141520517633569688</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='09967691008718044371'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>1</thr:total></entry></feed>