<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Infrequently Noted &#187; webdev</title>
	<atom:link href="http://infrequently.org/tag/webdev/feed/" rel="self" type="application/rss+xml" />
	<link>http://infrequently.org</link>
	<description></description>
	<lastBuildDate>Fri, 18 Nov 2011 16:25:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>View-Source Is Good? Discuss.</title>
		<link>http://infrequently.org/2010/01/view-source-is-good-discuss/</link>
		<comments>http://infrequently.org/2010/01/view-source-is-good-discuss/#comments</comments>
		<pubDate>Fri, 08 Jan 2010 03:36:22 +0000</pubDate>
		<dc:creator>alex</dc:creator>
				<category><![CDATA[webdev]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[flex]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[openweb]]></category>
		<category><![CDATA[silverlight]]></category>
		<category><![CDATA[viewsource]]></category>

		<guid isPermaLink="false">http://alex.dojotoolkit.org/?p=1241</guid>
		<description><![CDATA[I&#8217;ve been invited by Chris Messina and some kindly folks at MSFT to participate in a panel at this year&#8217;s SxSW regarding the value and/or necessity of view-source, and so with apologies to my fellow panelists, I want to get the conversation started early. First, my position: ceteris paribus, view-source was necessary (but not sufficient) [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been invited by <a href="http://factoryjoe.com/blog/">Chris Messina</a> and some <a href="http://chrisbernard.blogs.com/">kindly folks</a> at MSFT to participate in a panel at this year&#8217;s SxSW regarding the value and/or necessity of view-source, and so with apologies to my fellow panelists, I want to get the conversation started early.</p>
<p>First, my position: <em><a href="http://en.wikipedia.org/wiki/Ceteris_paribus">ceteris paribus</a></em>, view-source was necessary (but not sufficient) to make HTML the dominant application platform of our times. I also hold that it is under attack &mdash; not least of all from within &mdash; and that losing view-source poses a significant danger to the overall health of the web.</p>
<p>That&#8217;s a lot to hang on the shoulders of a relatively innocent design decision, and I don&#8217;t mean to imply that any system that has a view-source like feature will become dominant. But I do argue that it helps, particularly when coupled with complementary features like reliable parsing, semantic-ish markup, and plain-text content. Perhaps it&#8217;s moving the goal line a bit, but when I talk about the importance of view-source, I&#8217;m more often than not discussing these properties together.</p>
<p>To understand the importance of view-source, consider how people learn. <a href="http://vis.berkeley.edu/papers/prefuse/2005-prefuse-CHI.pdf">Some evidence exists</a> that even trained software engineers chose to work with copy-and-pasted example code. Participants in the linked study even expressed guilt over the copy-paste-tweak method of learning, but guilt didn&#8217;t change the dynamic: a blank slate and abstract documentation doesn&#8217;t facilitate learning nearly as well as poking at an example and feeling out the edges by doing. View-source provides a powerful catalyst to creating a culture of shared learning and learning-by-doing, which in turn helps formulate a mental model of the relationship between input and output faster. Web developers get started by taking some code, pasting it into a file, saving, loading it in a browser and hitting <code>ctrl-r</code>. Web developers switch between editor and browser between even the most minor changes. This is a stark contrast with technologies that impose a compilation step where the process of seeing what was done requires an intermediate step. In other words, immediacy of output helps build an understanding of how the system will behave, and <code>ctrl-r</code> becomes a seductive and productive way for developers to accelerate their learning in the copy-paste-tweak loop. The only required equipment is a text editor and a web browser, tools that are free and work together instantly. That is to say, there&#8217;s no waiting between when you save the file to disk and when you can view the results. It&#8217;s just a <code>ctrl-r</code> away.</p>
<p>With that hyper-productive workflow as the background, view-source helps turn the entire web into a giant learning lab, and one that&#8217;s remarkably resilient to error and experimentation. See an interesting technique or layout? No one can tell you &#8220;no&#8221; to figuring out how it was done. Copy some of it, paste it into your document, and you&#8217;ll get <em>something</em> out the other side. Browsers recovering from errors gracefully create a welcome learning environment, free of the inadequacy that a compile failure tends to evoke. You can <em>see</em> what went wrong as often as not. The evolutionary advantages of reliable parsing have helped to ensure that strict XML content comprises roughly none of the web, a decade after it was recognized as &#8220;better&#8221; by world+dog. Even the most sophisticated (or broken) content is inspectable at the layout level and tools like <a href="http://getfirebug.com/">Firebug</a> and the <a href="http://webkit.org/blog/829/web-inspector-updates/">Web Inspector</a> accelerate the copy-paste-tweak cycle by inspecting dynamic content and allowing live changes without reloads, even on pages you don&#8217;t &#8220;own&#8221;. The predicate to these incredibly powerful tools is the textual, interpreted nature of HTML. There&#8217;s much more to say about this, but lets instead turn to the platform&#8217;s relative weaknesses as a way of understanding how view-source is easily omitted from competing technologies.</p>
<p>The first, and most obvious, downside to the open-by-default nature of the web is that it encourages multiple renderers. Combined with the ambiguities of reliable parsing and semantics that leave room for interpretation, it&#8217;s no wonder that web developers struggle through incompatibilities. In a world where individual users each need to be convinced to upgrade to the newest version of even a single renderer, differences only in version can wreak havoc in the development process. Things that work in one place may not look exactly the same in another. This is both a strength and a weakness for the platform, but at the level of sophisticated applications, it&#8217;s squarely a liability. Next, ambiguities in interpretation and semantics mean that the project of creating tooling for the platform is significantly more complex. If only one viewer is prevalent (for whatever reason), then tools only need to consume and generate code that understands the constraints, quirks, and performance of a single runtime. Alternate forms of this simplification include only allowing code (not markup) so as to eliminate parsing ambiguity. The code-not-markup approach yields a potentially more flexible platform and one that can begin to execute content more quickly (as Flash does). These advantages, taken together, can create an incredibly productive environment for experts in the tools that generate content: no output ambiguity, better performance, and tools that can deliver true WYSIWYG authoring. These tools can sidestep the <code>ctrl-r</code> cycle entirely.</p>
<p>But wait, I hear you shout, It&#8217;s possible to do code-only, toolable, full fidelity development in JavaScript! Tools like GWT and Cappuccino generate code that generates UI, ensuring that only those who can write code or have tools that can will participate; removing the potential value of view-source for those apps. But lets be honest: view source is nearly never locally beneficial. I can hardly count the number of times I&#8217;ve seen the &#8220;how do I hide my code?&#8221; question from a web n00b who (rightly or wrongly) imagines there&#8217;s value in it. For GWT the fact that the output is an HTML DOM that&#8217;s styled with CSS is as much annoyance as benefit. The big upside is that browsers are the dominant platform and you don&#8217;t have to convince users to install some new runtime.</p>
<p>Similarly Flex, Laszlo, GWT&#8217;s UI Binder, and Silverlight have discovered the value in markup as a simple declarative way for developers to understand the hierarchical relationships between components, but they correspond to completely unambiguous definitions of components they rely on compiled code &mdash; not reliably parsed markup &mdash; for final delivery of the UI. These tight contracts turn into an evolutionary straightjacket. Great if you&#8217;re shipping compiled code down the wire that can meet the contract, but death if those tags and attributes are designed to live for long periods of time or across multiple implementations. You might be able to bolt view-source into the output, but it&#8217;ll always be optional and ad-hoc, features that work against it being pervasive. Put another way, the markup versions of these systems are leaky abstractions on the precise, code-centric system that under-girds both the authoring and runtime environments. This code-centric bias is incredibly powerful for toolmakers and &#8220;real&#8221; developers, but it cuts out others entirely; namely those who won&#8217;t &#8220;learn to program&#8221; or who want to build tools that inject content into the delivery format.</p>
<p>Whatever the strengths of code-based UI systems, they throw web crawlers for a loop. Today, most search engines deal best with text-based formats, and those search engines help make content more valuable in aggregate than it is on its own. Perhaps it&#8217;s inevitable that crawlers and search engines will need to execute code in order to understand the value of content, but I remain unconvinced. As a thought experiment, consider a web constructed entirely of Flash content. Given that Flash bytecode lacks a standard, semantic way to denote a relationship between bits of Flash content, what parts of the web wouldn&#8217;t have been built? What bits of your work would you do differently? What would the process be? There&#8217;s an alternate path forward that suggests that we can upgrade the coarse semantics of the web to deal with ever-more-sophisticated content requirements. Or put another way, use the features of today&#8217;s toolkits and code generators as a TODO list for markup driven features. But the jury is still out on the viability that approach; the same dynamic that makes multiple renderers possible ensures that getting them to move in a coordinated way is much harder than the unilateral feature roadmap that plugin vendors enjoy. HTML 5 and CSS 3 work is restarting those efforts, but only time will tell if we can put down the code and pick markup back up as a means to express ourselves.</p>
<p>I&#8217;ve glossed over a lot of details here, and I haven&#8217;t discussed implications for the server side of a non-text format as our lingua-franca, nor have I dug into the evolution metaphor. Many of the arguments are likewise conditional on economic assumptions. There&#8217;s lots of discussion yet to have, so if you&#8217;ve got links to concrete research in either direction or have an experience that bears on the debate post in the comments! Hopefully my fellow panelists will respond in blog form and I&#8217;ll update this post when they do.</p>
]]></content:encoded>
			<wfw:commentRss>http://infrequently.org/2010/01/view-source-is-good-discuss/feed/</wfw:commentRss>
		<slash:comments>41</slash:comments>
		</item>
		<item>
		<title>WebKit, Mobile, and Progress</title>
		<link>http://infrequently.org/2009/10/webkit-mobile-and-progress/</link>
		<comments>http://infrequently.org/2009/10/webkit-mobile-and-progress/#comments</comments>
		<pubDate>Fri, 09 Oct 2009 16:32:01 +0000</pubDate>
		<dc:creator>alex</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[ppk]]></category>
		<category><![CDATA[progress]]></category>
		<category><![CDATA[standards]]></category>
		<category><![CDATA[webdev]]></category>
		<category><![CDATA[webkit]]></category>

		<guid isPermaLink="false">http://alex.dojotoolkit.org/?p=1157</guid>
		<description><![CDATA[PPK posted some great new compat tables for various flavors of WebKit-based browsers the other day, editorializing that: &#8230;Acid 3 scores range from a complete fail to 100 out of 100. This is not consistency; it’s thinly veiled chaos. But I&#8217;m not convinced that the situation is nearly that bad. The data doesn&#8217;t reflect how [...]]]></description>
			<content:encoded><![CDATA[<p>PPK posted <a href="http://www.quirksmode.org/webkit.html">some great new compat tables</a> for various flavors of WebKit-based browsers the other day, editorializing that:</p>
<blockquote><p>&#8230;Acid 3 scores range from a complete fail to 100 out of 100.</p>
<p>This is not consistency; it’s thinly veiled chaos.</p></blockquote>
<p>But I&#8217;m not convinced that the situation is nearly that bad.</p>
<p>The data doesn&#8217;t reflect how fast the mobile market changes. The traditional difference between mobile and desktop, after all, has been that mobile is <em>moving at all</em>. If you figure a conservative 24 month average replacement cycle for smartphones, then the <em>entire</em> market for browsers turns over every two years. And that&#8217;s the historical view. An increasing percentage of smartphone owners now receive regular software updates that provide new browsers even faster. What matters then is how old the WebKit version in a particular firmware is and how prevalant that firmware is in the real world. As usual, distribution and market share are what matters in determining real-world compatibility, and if that&#8217;s a constantly changing secnario, the data should at least reflect how things are changing.</p>
<p>So what if we add a column to represent the vintage of the tested WebKit versions? Here&#8217;s a slightly re-formatted version of PPK&#8217;s summary data, separated by desktop/mobile and including rough WebKit vintages (corrections and new data much appreciated if you happen to know!):</p>
<h5>Desktop</h5>
<table class="data" cellspacing="0">
<thead>
<tr>
<th>Browser</th>
<th align="right">Score (max 216)</th>
<th>Vintage</th>
</tr>
</thead>
<tbody>
<tr>
<td>Safari 4.0</td>
<td align="right">204</td>
<td>2009</td>
</tr>
<tr>
<td>Chrome 3</td>
<td>192</td>
<td>2009</td>
</tr>
<tr>
<td>Chrome 2</td>
<td>188</td>
<td>Early 2009</td>
</tr>
<tr>
<td>Safari 3.1</td>
<td>159</td>
<td>2008</td>
</tr>
<tr>
<td>Chrome 1</td>
<td>153</td>
<td>Early 2008</td>
</tr>
<tr>
<td>Safari 3.0</td>
<td>108</td>
<td>2007</td>
</tr>
<tr>
<td>Konqueror 3.5.7</td>
<td>103</td>
<td>2007</td>
</tr>
<tr>
<td>Konqueror (newer, untested)</td>
<td>0</td>
<td>??</td>
</tr>
</tbody>
</table>
<h5>Mobile</h5>
<table class="data">
<thead>
<tr>
<th>Browser</th>
<th>Score (max 216)</th>
<th>Vintage</th>
</tr>
</thead>
<tbody>
<tr>
<td>Ozone (version?)</td>
<td>185</td>
<td>(?) Late 2009</td>
</tr>
<tr>
<td>iPhone 3.1</td>
<td>172</td>
<td>2009</td>
</tr>
<tr>
<td>Iris (version?)</td>
<td>163</td>
<td>(??) 2008</td>
</tr>
<tr>
<td>JIL Emulator (version?)</td>
<td>162</td>
<td>??</td>
</tr>
<tr>
<td>Bolt (version?)</td>
<td>155</td>
<td>??</td>
</tr>
<tr>
<td>iPhone 2.2</td>
<td>152</td>
<td>2008</td>
</tr>
<tr>
<td>Android G2 (version? 1.6?)</td>
<td>144</td>
<td>(??) Late 2008</td>
</tr>
<tr>
<td>Palm Pre (version?)</td>
<td>134</td>
<td>??</td>
</tr>
<tr>
<td>Android G1 (1.5?)</td>
<td>108</td>
<td>(??) 2008</td>
</tr>
<tr>
<td>Series 60 v5</td>
<td>93</td>
<td>(??) 2008</td>
</tr>
<tr>
<td>Series 60 v3 (feature pack?)</td>
<td>45</td>
<td>2005</td>
</tr>
</tbody>
</table>
<p>PPKs data is missing some other columns too, namely a rough estimate of the percent of mobile handsets running a particular version, rates of change in that landscape over the past 18 months, and whether or not these browsers are on the whole better than the deployed fleet of desktop browsers. Considering that web devs today <em>still</em> can&#8217;t target everything in Acid2, knowing how the mobile world compares to desktops will provide some much-needed context for these valuable tables. Perhaps those are things that we as a community can chip in to help provide.</p>
<p>Even without all of that, just adding the rough vintages adds an arc to the story; one that&#8217;s not nearly so glum and dreary. What we can see is that newer versions of WebKit are <em>much</em> more capable and compatible, even at the edges. None of PPK&#8217;s data yet tests where the baseline is, so remember that the numbers presented mostly describe new-ish features on the platform. We also see clearly that the constraints of the mobile environment force some compromises vs. desktop browsers of the same lineage. This is all in line with what I&#8217;d expect from a world where:</p>
<ul>
<li>WebKit is becoming the dominant smartphone rendering engine, finding its way into myriad devices due to its performance, compatibility with web content, clean C++ codebase, and straightforward API</li>
<li>Vendors upgrade the version of WebKit they ship when they release new OS versions. Very few mobile devices enjoy long-term OTA updates (yet).</li>
<li>Deployed smartphone stock turns over every 2 years</li>
</ul>
<p>The important takeaway for web developers in all of this is that WebKit is winning and that <em>that is a good thing</em>. The dynamics of the marketplace have thus far ensured that we don&#8217;t get &#8220;stuck&#8221; the way we did on the desktop. That is real progress.</p>
<p>Where do we go from here? Given that the mobile marketplace is changing at a rate that&#8217;s nearly unheard of on the desktop, I think that when new charts and comparisons are made, we&#8217;ll need to couch them in terms of &#8220;how does this affect the difference in capabilities across the deployed base&#8221;, rather than simply looking at instantaneous features. Mobile users are at once more likely tied to their OSes choice of browser and more likely to get a better browser sooner. That combination defies how we think about desktop browsers, so we&#8217;ll need to add more context to get a reasonable view of the mobile world.</p>
]]></content:encoded>
			<wfw:commentRss>http://infrequently.org/2009/10/webkit-mobile-and-progress/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>ZF 1.8 Is Out</title>
		<link>http://infrequently.org/2009/05/zf-18-is-out/</link>
		<comments>http://infrequently.org/2009/05/zf-18-is-out/#comments</comments>
		<pubDate>Thu, 07 May 2009 21:17:10 +0000</pubDate>
		<dc:creator>alex</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[dojo]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[webdev]]></category>
		<category><![CDATA[zend]]></category>
		<category><![CDATA[zf]]></category>

		<guid isPermaLink="false">http://alex.dojotoolkit.org/2009/05/zf-18-is-out/</guid>
		<description><![CDATA[Congrats to the Zend Framework team on releasing ZF 1.8! This release updates the Dojo/Dijit integration and includes Dojo 1.3. Not only can you use the ZF view helpers to generate existing widgets, now you can use the view helpers to declare instances of your own components too. If you haven&#8217;t tried out ZF, it [...]]]></description>
			<content:encoded><![CDATA[<p>Congrats to the Zend Framework team on <a href="http://devzone.zend.com/article/4524-Zend-Framework-1.8.0-Released">releasing ZF 1.8!</a> This release updates the Dojo/Dijit integration and includes Dojo 1.3. Not only can you use the ZF view helpers to generate existing widgets, now you can use the view helpers to declare instances of your own components too.</p>
<p>If you haven&#8217;t tried out ZF, it really does make building sophisticated Dojo-based UI&#8217;s really simple. A bit part of that is that it helps automate a lot of the stuff that may be confusing when you&#8217;re first starting out with Dojo.</p>
]]></content:encoded>
			<wfw:commentRss>http://infrequently.org/2009/05/zf-18-is-out/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

