<?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>~robcee/ &#187; Programming</title>
	<atom:link href="http://antennasoft.net/robcee/category/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://antennasoft.net/robcee</link>
	<description>more than just sandwiches</description>
	<lastBuildDate>Mon, 19 Jul 2010 17:44:36 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>View-Source IS Good. Full-stop.</title>
		<link>http://antennasoft.net/robcee/2010/01/08/view-source-is-good-full-stop/</link>
		<comments>http://antennasoft.net/robcee/2010/01/08/view-source-is-good-full-stop/#comments</comments>
		<pubDate>Fri, 08 Jan 2010 13:43:53 +0000</pubDate>
		<dc:creator>robcee</dc:creator>
				<category><![CDATA[Mozilla]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Firebug]]></category>
		<category><![CDATA[Firefox]]></category>

		<guid isPermaLink="false">http://antennasoft.net/robcee/?p=384</guid>
		<description><![CDATA[I saw a tweet this morning from Joe Walker linking to this article asking Is View-Source Good? from Alex Russell of Dojo fame and I had to write about it. It&#8217;s something I&#8217;ve been thinking about a fair bit lately, so his timing was excellent.
Open systems are better and lead to more productive coders. This [...]]]></description>
			<content:encoded><![CDATA[<p>I saw a <a href="http://twitter.com/joewalker/status/7509093356" target="_blank">tweet</a> this morning from Joe Walker linking to this article asking <a href="http://alex.dojotoolkit.org/2010/01/view-source-is-good-discuss/" target="_blank">Is View-Source Good?</a> from Alex Russell of Dojo fame and I had to write about it. It&#8217;s something I&#8217;ve been thinking about a fair bit lately, so his timing was excellent.</p>
<p>Open systems are better and lead to more productive coders. This is a wild assertion I&#8217;ll make with some cheek, mostly because I don&#8217;t think any exemplars from closed-system programming can really refute it, or will. Programmers who get into pure languages like Lisp and Smalltalk ramp up quickly and become more productive because they have full view of the system&#8217;s source code.</p>
<p>So too, the web.</p>
<p>Web-programming is often a cut and paste experience. I hear the term &#8220;cut-and-paste inheritance&#8221; used derogatorily too-often. While it&#8217;s true that in some cases, from a code-design perspective, just pasting blocks of code from one document to another can lead to a poorly-designed system, it is great for getting little pieces of code to work. It is the scientific method applied to programming. You see something that works in one place, you try copying it over and see what fails on your page. Continue.</p>
<p>One area where view-source breaks down is in the analysis of &#8220;what happens&#8221; with that source code. The Error Console in Firefox is a poor-excuse for a debugging mechanism and linked to the view-source window only by a hopefully connected error and a line number you can click on. Errors can come from any tab and are not necessarily associated with your code. There is no sense of iterative feedback. You have to hunt for it and usually fall into a pattern of clearing your console and reloading the page to see when the errors occur. This leads many developers to write their own logging function. Or when they&#8217;ve graduated to more advanced development, install Firebug which presents dynamic views of your source code in exciting (and sometimes surprising) ways.</p>
<p>Another mysterious failing of view-source is in a dynamically generated page. Something that uses document.write() or a bunch of appendChild() calls often doesn&#8217;t show correctly in view-source. A trick I learned recently to see these types of changes is to select some text and right click on it and &#8220;view-selection source&#8221;. Not exactly intuitive, but this will show you what your code generated.</p>
<p>I don&#8217;t think anyone can claim that view-source is a bad thing, though I have seen people try to get around it. Usually under the guise of &#8220;I have some important information or data that I need to protect&#8221;. I have seen people file bugs to add a mechanism to Firebug to prevent inspection of the underlying HTML on certain pages. I find these types of requests pretty funny, generally, and a little sad because people who think this way fundamentally don&#8217;t understand what the web is about and how it works and why it got to be the wonderful thing it is today.</p>
<p>It&#8217;s a fairly common practice to hide content behind a flash barrier to prevent people from getting their grubby paws on it. This creates a large swath of the web that you really have no ability to play with or learn from. Also, I think it&#8217;s fairly safe to say that learning to program in Flash is a more expensive proposition than learning to program for the web. You have to pay for tools, books and example code. If you want to make something that looks like this widget over here that has some wandering penguins on it, you have to figure it all out for yourself.</p>
<p>Alex mentions generative tools and libraries like GWT that create HTML and CSS styling as by-products of their execution and that these create a not-very useful rendition for view-source. This is true. Even PHP-generated HTML can be pretty disheartening to look at if you&#8217;re trying to figure out what&#8217;s going on in a web-page — its poor formatting and machine-generated constructs are not pretty to look at, but you can still sometimes glean some of the workings behind them. Having hacked around in Wordpress for a few years, understanding the way the PHP code generates a blog&#8217;s output is an interesting experiment to puzzle through. I wouldn&#8217;t have been able to do that without view-source.</p>
<p>Anyway, I think I&#8217;ve burbled about this enough. I love view-source. There, I&#8217;ve said it. It is one of the most valuable tools we have for understanding and learning about the web.</p>
]]></content:encoded>
			<wfw:commentRss>http://antennasoft.net/robcee/2010/01/08/view-source-is-good-full-stop/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>I&#8217;m sure they were here a minute ago&#8230;</title>
		<link>http://antennasoft.net/robcee/2007/02/19/im-sure-they-were-here-a-minute-ago/</link>
		<comments>http://antennasoft.net/robcee/2007/02/19/im-sure-they-were-here-a-minute-ago/#comments</comments>
		<pubDate>Mon, 19 Feb 2007 21:29:49 +0000</pubDate>
		<dc:creator>robcee</dc:creator>
				<category><![CDATA[Build]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Quality]]></category>
		<category><![CDATA[Testing]]></category>

		<guid isPermaLink="false">http://antennasoft.net/robcee/2007/02/19/im-sure-they-were-here-a-minute-ago/</guid>
		<description><![CDATA[The testfarm buildbots have been moved to the main Firefox tree on Tinderbox and given spiffy new names. They are now known as &#8220;Linux qm-rhel02 dep unit test&#8221;, &#8220;MacOSX Darwin 8.8.4 qm-xserve01 dep unit test&#8221; and &#8220;WINNT 5.1 qm-winxp01 dep unit test&#8221;. Sure rolls off the tongue, doesn&#8217;t it?
We haven&#8217;t really nailed-down what it means [...]]]></description>
			<content:encoded><![CDATA[<p>The testfarm buildbots have been moved to the main <a href="http://tinderbox.mozilla.org/showbuilds.cgi?tree=Firefox">Firefox</a> tree on Tinderbox and given spiffy new names. They are now known as &#8220;Linux qm-rhel02 dep unit test&#8221;, &#8220;MacOSX Darwin 8.8.4 qm-xserve01 dep unit test&#8221; and &#8220;WINNT 5.1 qm-winxp01 dep unit test&#8221;. Sure rolls off the tongue, doesn&#8217;t it?</p>
<p>We haven&#8217;t really nailed-down what it means to have these here yet, and as of this writing, the logging summaries aren&#8217;t being printed out so the information&#8217;s only semi-useful at-a-glance. We&#8217;ll get that fixed quickly though. Ultimately, I think failures on these boxes should be taken seriously and if you check in and see them turn orange, you should take a close look at the logs to see what happened.</p>
<p>Also, if you see any problems with these machines, please file a bug on it in core/testing. I&#8217;ll be watching that bucket with great vigilance.</p>
]]></content:encoded>
			<wfw:commentRss>http://antennasoft.net/robcee/2007/02/19/im-sure-they-were-here-a-minute-ago/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
