<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Ugly Web Development</title>
	<atom:link href="http://uglyweb.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://uglyweb.wordpress.com</link>
	<description>Some is more ugly than others</description>
	<lastBuildDate>Sun, 06 Nov 2011 19:59:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='uglyweb.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Ugly Web Development</title>
		<link>http://uglyweb.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://uglyweb.wordpress.com/osd.xml" title="Ugly Web Development" />
	<atom:link rel='hub' href='http://uglyweb.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Why I won&#8217;t use PHP 5.3.3</title>
		<link>http://uglyweb.wordpress.com/2010/12/02/why-i-wont-use-php-5-3-3/</link>
		<comments>http://uglyweb.wordpress.com/2010/12/02/why-i-wont-use-php-5-3-3/#comments</comments>
		<pubDate>Thu, 02 Dec 2010 20:00:43 +0000</pubDate>
		<dc:creator>gutzofter</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[localhost]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://uglyweb.wordpress.com/?p=106</guid>
		<description><![CDATA[Uh&#8230; because it won&#8217;t handle &#8220;localhost&#8221; properly. There seems to be two possible reasons. Streams and Sockets. I have no problems with PHP 5.3.0. It works. PHP 5.3.3 BROKEN IMHO. &#160;<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=uglyweb.wordpress.com&amp;blog=9548301&amp;post=106&amp;subd=uglyweb&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Uh&#8230; because it won&#8217;t handle &#8220;localhost&#8221; properly.</p>
<p>There seems to be two possible reasons. Streams and Sockets.</p>
<p>I have no problems with <a href="http://olex.openlogic.com/packages/php/5.3.0">PHP 5.3.0</a>. It works.</p>
<p>PHP 5.3.3 BROKEN IMHO.</p>
<p>&nbsp;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/uglyweb.wordpress.com/106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/uglyweb.wordpress.com/106/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/uglyweb.wordpress.com/106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/uglyweb.wordpress.com/106/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/uglyweb.wordpress.com/106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/uglyweb.wordpress.com/106/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/uglyweb.wordpress.com/106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/uglyweb.wordpress.com/106/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/uglyweb.wordpress.com/106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/uglyweb.wordpress.com/106/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/uglyweb.wordpress.com/106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/uglyweb.wordpress.com/106/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/uglyweb.wordpress.com/106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/uglyweb.wordpress.com/106/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=uglyweb.wordpress.com&amp;blog=9548301&amp;post=106&amp;subd=uglyweb&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://uglyweb.wordpress.com/2010/12/02/why-i-wont-use-php-5-3-3/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0b46bfc49b7ec609136bf30d273f80f7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">gutzofter</media:title>
		</media:content>
	</item>
		<item>
		<title>Announcing: Debugging and TDDing Ajax with jQuery just got easier with ajaxMonitor</title>
		<link>http://uglyweb.wordpress.com/2010/08/06/announcing-debugging-and-tdding-ajax-with-jquery-just-got-easier-with-ajaxmonitor/</link>
		<comments>http://uglyweb.wordpress.com/2010/08/06/announcing-debugging-and-tdding-ajax-with-jquery-just-got-easier-with-ajaxmonitor/#comments</comments>
		<pubDate>Fri, 06 Aug 2010 23:27:12 +0000</pubDate>
		<dc:creator>gutzofter</dc:creator>
				<category><![CDATA[Ajax]]></category>
		<category><![CDATA[Debug]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[TDD]]></category>
		<category><![CDATA[Web Client]]></category>
		<category><![CDATA[Ajax Monitor]]></category>
		<category><![CDATA[Monitor]]></category>

		<guid isPermaLink="false">http://uglyweb.wordpress.com/?p=91</guid>
		<description><![CDATA[I am freakin&#8217; excited! I got tired of switching between tabs and firebug when trying to figure out what the hell was going on with my ajax requests. The worst is when I tried finding anything about my requests in Internet Explorer. Forget it! So I wrote a jQuery Plug-in. You attach it to your [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=uglyweb.wordpress.com&amp;blog=9548301&amp;post=91&amp;subd=uglyweb&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I am freakin&#8217; excited!</p>
<p>I got tired of switching between tabs and firebug when trying to figure out what the hell was going on with my ajax requests.</p>
<p>The worst is when I tried finding anything about my requests in Internet Explorer. Forget it!</p>
<p>So I wrote a jQuery Plug-in. You attach it to your page and it will monitor all your Ajax requests [1].</p>
<div style="border:2px solid #000000;text-align:center;"><strong>One Click &#8212;-&gt; <a href="//github.com/gutzofter/ajaxMonitor">Get the plug-in ajaxMonitor</a> &lt;&#8212;- One Click</strong></div>
<p>The <a href="http://gutzofter.herobo.com/ajaxMonitor/ajaxMonitor-1.0.0/tests/unit/tests.ajax.monitor.php">running unit tests</a> for the source.</p>
<p>The running unit tests <a href="http://gutzofter.herobo.com/ajaxMonitor/ajaxMonitor-1.0.0/tests/unit/validation/">validating</a> with jQuery 1.4.2 Ajax tests with the plug in. [2]</p>
<p>Two feature that are becoming a must have for this plug in</p>
<p>1&gt; Mocking Ajax request by specifying your Ajax settings like this: { /*other settings*/ mock: true }</p>
<p>2&gt; What I&#8217;m going to call single-shot.</p>
<ul>
<li>Fire an AJAX request once</li>
<li>For all repeat requests will be  mocked with the response data.</li>
</ul>
<p>Presently the way I TDD a client, is I retrieve content using the normal Ajax call to get the presentation HTML.</p>
<p>Then I make another Ajax call in my normal code and store it into a string. At the start of each test I load this string into my: $(&#8216;#contentContainer&#8217;).html(myPreloadedPresentationHTML);</p>
<p>Then remove it. So for all the unit tests I make a total of TWO Ajax calls. That&#8217;s one too many calls (latency can be up to 1~2 seconds OUCH!).</p>
<p>Since the monitor already controls the success callback of the original Ajax request why not replace it with my own.</p>
<p>First Ajax request success supplies the response data.<br />
Hang onto it.<br />
Any other calls to this request will get the stored response data.</p>
<p>I would welcome any comments.</p>
<p>Good or Bad!</p>
<p>&#8230;even requests.</p>
<p>Please help push against this software. I think it is a great tool and could be better with your help.</p>
<p>[1] Because jQuery 1.4.2 executes the complete callback twice during the request. If you want you can include my modified jQuery 1.4.2 library that fixes this use it. See here for <a href="http://dev.jquery.com/ticket/5383">bug tick #5383 </a>.</p>
<p>[2] Two failing tests dealing with preserving the context. It is caused by XPC Cross Origin Wrapper. If anybody has a fix, <a href="http://stackoverflow.com/questions/3419782/cannot-pass-all-jquery-1-4-2-ajax-unit-tests-with-my-plug-in">post on stackoverflow.com</a>.</p>
<p>Thanks from the ajaxMonitor Team.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/uglyweb.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/uglyweb.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/uglyweb.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/uglyweb.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/uglyweb.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/uglyweb.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/uglyweb.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/uglyweb.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/uglyweb.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/uglyweb.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/uglyweb.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/uglyweb.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/uglyweb.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/uglyweb.wordpress.com/91/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=uglyweb.wordpress.com&amp;blog=9548301&amp;post=91&amp;subd=uglyweb&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://uglyweb.wordpress.com/2010/08/06/announcing-debugging-and-tdding-ajax-with-jquery-just-got-easier-with-ajaxmonitor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0b46bfc49b7ec609136bf30d273f80f7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">gutzofter</media:title>
		</media:content>
	</item>
		<item>
		<title>Event messaging between JavaScript objects.</title>
		<link>http://uglyweb.wordpress.com/2010/06/12/event-messaging-between-javascript-objects/</link>
		<comments>http://uglyweb.wordpress.com/2010/06/12/event-messaging-between-javascript-objects/#comments</comments>
		<pubDate>Sat, 12 Jun 2010 16:40:50 +0000</pubDate>
		<dc:creator>gutzofter</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[decoupling]]></category>
		<category><![CDATA[event messaging]]></category>
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://uglyweb.wordpress.com/?p=86</guid>
		<description><![CDATA[Simplest implementation: function NewMessageBus() { return { when: function(name, fn) { this.fire[name] = fn; }, fire: {} }; } var msgBus = NewMessageBus(); Usage of this requires two things: Creating the event var presenter = (function() { msgBus.when('getContent', function() { model.load(view.content); }); }()); Note that the presenter is state-less. Firing the event var view = [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=uglyweb.wordpress.com&amp;blog=9548301&amp;post=86&amp;subd=uglyweb&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h2>Simplest implementation:</h2>
<pre><code>function NewMessageBus() {
    return {
        when: function(name, fn) {
            this.fire[name] = fn;
        },
        fire: {}
    };
}

var msgBus = NewMessageBus();
</code></pre>
<h2>Usage of this requires two things:</h2>
<h3>Creating the event</h3>
<pre><code>var presenter = (function() {
    msgBus.when('getContent', function() {
        model.load(view.content);
    });
}());
</code></pre>
<p><strong>Note that the presenter is state-less.</strong></p>
<h3>Firing the event</h3>
<pre><code>var view = {
    getContent: function() {
        msgBus.fire.getContent();
    },
    content(htmlData) {
        $('#contentContainer').html(htmlData);
    }
}

var model = {
    load: function(cb) {
        $.ajax({
            type:       'GET',
            url:        'myContent.php',
            dataType:   'json',
            data:       {/* some parameters */},
            success:    function(data) {
                // some preprocessing of data
                cb(data.html);
                // some post processing of data
        });
    }
}
</code></pre>
<h3>Usage</h3>
<pre><code>view.getContent();
</code></pre>
<p>That&#8217;s it pretty simple.</p>
<p>The view/model does not have any references to each other.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/uglyweb.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/uglyweb.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/uglyweb.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/uglyweb.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/uglyweb.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/uglyweb.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/uglyweb.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/uglyweb.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/uglyweb.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/uglyweb.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/uglyweb.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/uglyweb.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/uglyweb.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/uglyweb.wordpress.com/86/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=uglyweb.wordpress.com&amp;blog=9548301&amp;post=86&amp;subd=uglyweb&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://uglyweb.wordpress.com/2010/06/12/event-messaging-between-javascript-objects/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0b46bfc49b7ec609136bf30d273f80f7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">gutzofter</media:title>
		</media:content>
	</item>
		<item>
		<title>Why drupal 6.x SimpleTest is not a developer’s tool</title>
		<link>http://uglyweb.wordpress.com/2010/05/06/why-drupal-6-x-simpletest-is-not-a-developers-tool/</link>
		<comments>http://uglyweb.wordpress.com/2010/05/06/why-drupal-6-x-simpletest-is-not-a-developers-tool/#comments</comments>
		<pubDate>Thu, 06 May 2010 21:39:05 +0000</pubDate>
		<dc:creator>gutzofter</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Drupal]]></category>
		<category><![CDATA[drupal 6.x]]></category>
		<category><![CDATA[simpletest]]></category>
		<category><![CDATA[unit testing]]></category>

		<guid isPermaLink="false">http://uglyweb.wordpress.com/?p=81</guid>
		<description><![CDATA[This presentation is not a condemnation of Drupal 6.X SimpleTest. It is an idea that there are areas that can  be improved. This is what I&#8217;m going to be about it.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=uglyweb.wordpress.com&amp;blog=9548301&amp;post=81&amp;subd=uglyweb&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This <a href="http://www.scribd.com/doc/30996185/Why-drupal-6-x-SimpleTest-is-not-a-developer-s-tool">presentation </a>is not a condemnation of Drupal 6.X SimpleTest.</p>
<p>It is an idea that there are areas that can  be improved.</p>
<p><a href="http://drupal.org/patch">This is what I&#8217;m going to be about it</a>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/uglyweb.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/uglyweb.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/uglyweb.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/uglyweb.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/uglyweb.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/uglyweb.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/uglyweb.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/uglyweb.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/uglyweb.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/uglyweb.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/uglyweb.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/uglyweb.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/uglyweb.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/uglyweb.wordpress.com/81/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=uglyweb.wordpress.com&amp;blog=9548301&amp;post=81&amp;subd=uglyweb&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://uglyweb.wordpress.com/2010/05/06/why-drupal-6-x-simpletest-is-not-a-developers-tool/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0b46bfc49b7ec609136bf30d273f80f7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">gutzofter</media:title>
		</media:content>
	</item>
		<item>
		<title>As a programmer do you want to work on operational programs or do you want comabat training?</title>
		<link>http://uglyweb.wordpress.com/2010/04/22/as-a-programmer-do-you-want-to-work-on-operational-programs-or-do-you-want-comabat-training/</link>
		<comments>http://uglyweb.wordpress.com/2010/04/22/as-a-programmer-do-you-want-to-work-on-operational-programs-or-do-you-want-comabat-training/#comments</comments>
		<pubDate>Thu, 22 Apr 2010 17:05:49 +0000</pubDate>
		<dc:creator>gutzofter</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[TDD]]></category>
		<category><![CDATA[Unit Test]]></category>

		<guid isPermaLink="false">http://uglyweb.wordpress.com/?p=78</guid>
		<description><![CDATA[Tank: We&#8217;re supposed to start with these operation programs first. That&#8217;s major boring shit. Let&#8217;s do something a little more fun. How about&#8230; combat training. Neo : Ju jitsu? I&#8217;m gonna learn Ju jitsu. [Tank winks and loads the program] Neo : Holy shit! Tank : Hey Mikey, I think he likes it. How about [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=uglyweb.wordpress.com&amp;blog=9548301&amp;post=78&amp;subd=uglyweb&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="text-decoration:underline;"><strong><a href="http://www.imdb.com/name/nm0159059/">Tank</a></strong></span>: We&#8217;re supposed to start with these operation programs first. That&#8217;s  major boring shit. Let&#8217;s do something a little more fun. How about&#8230;  combat training.<br />
<strong><a href="http://www.imdb.com/name/nm0000206/">Neo</a></strong> : Ju jitsu? I&#8217;m gonna learn Ju jitsu.<br />
[<em>Tank winks and loads the program</em>]<br />
<strong><a href="http://www.imdb.com/name/nm0000206/">Neo</a></strong> : Holy shit!<br />
<strong><a href="http://www.imdb.com/name/nm0159059/">Tank</a></strong> : Hey Mikey, I think he likes it. How about some more?<br />
<strong><a href="http://www.imdb.com/name/nm0000206/">Neo</a></strong> : Hell, yes. Hell yeah.</p>
<p>Well I can tell you that I prefer comabt training&#8230;</p>
<p><span id="more-78"></span>Operational programs consist of programming things like data objects, value objects, concrete data types. Major boring shit! Nothing interesting happening here.</p>
<p>Combat training this includes the dynamic portions of the code you write.</p>
<p>Let&#8217;s take an example:</p>
<p>You have a web page.  On this web page you have a navigation menu and you have a content container. When a user clicks on a menu item some content will be displayed in the content container via an AJAX request to the server. The content is stored some how on the back-end (database, flat-files, or another server), we don&#8217;t really care for this example.</p>
<p>Now where is the combat training and where is the operational programs areas.</p>
<p>It might be better to isolate to two specific areas. Client-side and Server-side.</p>
<h2>Server-side</h2>
<h3>Operational Program</h3>
<p>The concrete implementation of the content, the HTML output of the server. The actual data coming out of your back-end</p>
<h3>Combat Training</h3>
<p>The selection of the types of content to be sent to the client-side. You know images, text, google geolocations, whatever you can imagine.</p>
<h2>Client-side</h2>
<h3>Operational Program</h3>
<p>jQuery manipulations, $(&#8216;my_div&#8217;).hide(), something along those lines.</p>
<h3>Combat Training</h3>
<p>When the user selected a menu item did the correct AJAX request go to the server.</p>
<p>So whenever you are TDDing your code, remember you want combat training not operational programs.</p>
<p><a href="http://www.imdb.com/title/tt0133093/quotes?qt0324316">Tank  quote (Matrix)</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/uglyweb.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/uglyweb.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/uglyweb.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/uglyweb.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/uglyweb.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/uglyweb.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/uglyweb.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/uglyweb.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/uglyweb.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/uglyweb.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/uglyweb.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/uglyweb.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/uglyweb.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/uglyweb.wordpress.com/78/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=uglyweb.wordpress.com&amp;blog=9548301&amp;post=78&amp;subd=uglyweb&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://uglyweb.wordpress.com/2010/04/22/as-a-programmer-do-you-want-to-work-on-operational-programs-or-do-you-want-comabat-training/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0b46bfc49b7ec609136bf30d273f80f7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">gutzofter</media:title>
		</media:content>
	</item>
		<item>
		<title>Mocking: LOL</title>
		<link>http://uglyweb.wordpress.com/2010/04/19/mocking-lol/</link>
		<comments>http://uglyweb.wordpress.com/2010/04/19/mocking-lol/#comments</comments>
		<pubDate>Tue, 20 Apr 2010 05:14:45 +0000</pubDate>
		<dc:creator>gutzofter</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://uglyweb.wordpress.com/?p=76</guid>
		<description><![CDATA[I was cruising StackOverflow and came across this: What is Mocking? The funny part is the remark to the question. when you deride people for not being able to unit test due to dependencies &#8217;nuff said<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=uglyweb.wordpress.com&amp;blog=9548301&amp;post=76&amp;subd=uglyweb&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I was cruising StackOverflow and came across this:</p>
<h2><a href="http://stackoverflow.com/questions/2665812/what-is-mocking">What is Mocking?</a></h2>
<p>The funny part is the remark to the question.</p>
<p>when you deride people for not being able to unit test due to  dependencies <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>&#8217;nuff said</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/uglyweb.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/uglyweb.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/uglyweb.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/uglyweb.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/uglyweb.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/uglyweb.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/uglyweb.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/uglyweb.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/uglyweb.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/uglyweb.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/uglyweb.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/uglyweb.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/uglyweb.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/uglyweb.wordpress.com/76/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=uglyweb.wordpress.com&amp;blog=9548301&amp;post=76&amp;subd=uglyweb&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://uglyweb.wordpress.com/2010/04/19/mocking-lol/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0b46bfc49b7ec609136bf30d273f80f7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">gutzofter</media:title>
		</media:content>
	</item>
		<item>
		<title>Drupal 6.x adding new tests for simpletest</title>
		<link>http://uglyweb.wordpress.com/2010/04/04/drupal-6-x-adding-new-tests-for-simpletest/</link>
		<comments>http://uglyweb.wordpress.com/2010/04/04/drupal-6-x-adding-new-tests-for-simpletest/#comments</comments>
		<pubDate>Mon, 05 Apr 2010 06:38:06 +0000</pubDate>
		<dc:creator>gutzofter</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[clear cache]]></category>
		<category><![CDATA[Drupal]]></category>
		<category><![CDATA[simpletest]]></category>

		<guid isPermaLink="false">http://uglyweb.wordpress.com/?p=73</guid>
		<description><![CDATA[If you add a new test, be sure to clear caches. This is done in (Administer -&#62; Site Configuration -&#62; Performance). See this post.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=uglyweb.wordpress.com&amp;blog=9548301&amp;post=73&amp;subd=uglyweb&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If you add a new test, be sure to <strong>clear caches</strong>.</p>
<p>This is done in (Administer -&gt; Site Configuration -&gt; Performance).</p>
<p><a href="http://webgoodness.co.uk/blog/2009/09/30/using-simpletest-drupal-6">See this post</a>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/uglyweb.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/uglyweb.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/uglyweb.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/uglyweb.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/uglyweb.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/uglyweb.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/uglyweb.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/uglyweb.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/uglyweb.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/uglyweb.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/uglyweb.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/uglyweb.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/uglyweb.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/uglyweb.wordpress.com/73/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=uglyweb.wordpress.com&amp;blog=9548301&amp;post=73&amp;subd=uglyweb&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://uglyweb.wordpress.com/2010/04/04/drupal-6-x-adding-new-tests-for-simpletest/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0b46bfc49b7ec609136bf30d273f80f7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">gutzofter</media:title>
		</media:content>
	</item>
		<item>
		<title>Drupal Noob</title>
		<link>http://uglyweb.wordpress.com/2010/04/04/drupal-noob/</link>
		<comments>http://uglyweb.wordpress.com/2010/04/04/drupal-noob/#comments</comments>
		<pubDate>Mon, 05 Apr 2010 00:04:10 +0000</pubDate>
		<dc:creator>gutzofter</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Apache 2.2]]></category>
		<category><![CDATA[Drupal 6.16]]></category>
		<category><![CDATA[Microsoft Vista]]></category>
		<category><![CDATA[Netbeans 6.8]]></category>
		<category><![CDATA[PHP 5.3.2]]></category>
		<category><![CDATA[web development]]></category>

		<guid isPermaLink="false">http://uglyweb.wordpress.com/?p=71</guid>
		<description><![CDATA[I&#8217;m using: Microsoft Vista Netbeans 6.8 PHP 5.3.2 Drupal 6.16 Apache 2.2 Things to get running: Netbeans Plug-in Drupal Webgrind (profiling) Things to remember: Remove in hosts file, the entry ::1 Restart Apache server when getting the white screen of death Have to patch core when installing simpletest ereg() php function deprecated Future: find a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=uglyweb.wordpress.com&amp;blog=9548301&amp;post=71&amp;subd=uglyweb&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m using:</p>
<ul>
<li> Microsoft Vista</li>
<li>Netbeans 6.8</li>
<li>PHP 5.3.2</li>
<li>Drupal 6.16</li>
<li>Apache 2.2</li>
</ul>
<p>Things to get running:</p>
<ul>
<li><a href="https://nbdrupalsupport.dev.java.net/">Netbeans Plug-in</a></li>
<li><a href="http://drupal.org">Drupal</a></li>
<li><a href="http://code.google.com/p/webgrind/">Webgrind (profiling)</a></li>
</ul>
<p>Things to remember:</p>
<ul>
<li>Remove in hosts file, the entry ::1</li>
<li>Restart Apache server when getting the white screen of death</li>
<li>Have to patch core when installing simpletest</li>
<li><a href="http://drupal.org/node/514334#comment-1963440">ereg() php function deprecated</a></li>
</ul>
<p>Future:</p>
<ul>
<li>find a code coverage tool similar to webgrind</li>
</ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/uglyweb.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/uglyweb.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/uglyweb.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/uglyweb.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/uglyweb.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/uglyweb.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/uglyweb.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/uglyweb.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/uglyweb.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/uglyweb.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/uglyweb.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/uglyweb.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/uglyweb.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/uglyweb.wordpress.com/71/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=uglyweb.wordpress.com&amp;blog=9548301&amp;post=71&amp;subd=uglyweb&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://uglyweb.wordpress.com/2010/04/04/drupal-noob/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0b46bfc49b7ec609136bf30d273f80f7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">gutzofter</media:title>
		</media:content>
	</item>
		<item>
		<title>Topeka and Google</title>
		<link>http://uglyweb.wordpress.com/2010/04/01/topeka-and-google/</link>
		<comments>http://uglyweb.wordpress.com/2010/04/01/topeka-and-google/#comments</comments>
		<pubDate>Thu, 01 Apr 2010 14:43:29 +0000</pubDate>
		<dc:creator>gutzofter</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://uglyweb.wordpress.com/?p=67</guid>
		<description><![CDATA[Google displays Topeka Are they going to blaze with speed? Or is it April Fools?<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=uglyweb.wordpress.com&amp;blog=9548301&amp;post=67&amp;subd=uglyweb&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://google.com">Google</a> displays Topeka</p>
<p><a href="http://uglyweb.files.wordpress.com/2010/04/google-topeka.jpg"><img class="alignnone size-medium wp-image-68" title="Google Topeka" src="http://uglyweb.files.wordpress.com/2010/04/google-topeka.jpg?w=300&#038;h=110" alt="" width="300" height="110" /></a></p>
<p>Are they going to blaze with speed?</p>
<p>Or is it April Fools?</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/uglyweb.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/uglyweb.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/uglyweb.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/uglyweb.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/uglyweb.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/uglyweb.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/uglyweb.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/uglyweb.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/uglyweb.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/uglyweb.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/uglyweb.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/uglyweb.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/uglyweb.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/uglyweb.wordpress.com/67/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=uglyweb.wordpress.com&amp;blog=9548301&amp;post=67&amp;subd=uglyweb&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://uglyweb.wordpress.com/2010/04/01/topeka-and-google/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0b46bfc49b7ec609136bf30d273f80f7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">gutzofter</media:title>
		</media:content>

		<media:content url="http://uglyweb.files.wordpress.com/2010/04/google-topeka.jpg?w=300" medium="image">
			<media:title type="html">Google Topeka</media:title>
		</media:content>
	</item>
		<item>
		<title>I don&#8217;t need no sticking tests!</title>
		<link>http://uglyweb.wordpress.com/2010/03/29/i-dont-need-no-sticking-tests/</link>
		<comments>http://uglyweb.wordpress.com/2010/03/29/i-dont-need-no-sticking-tests/#comments</comments>
		<pubDate>Mon, 29 Mar 2010 16:37:48 +0000</pubDate>
		<dc:creator>gutzofter</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://uglyweb.wordpress.com/?p=62</guid>
		<description><![CDATA[This is a very good question: Chocolate Covered Unit-Tests http://greenicicleblog.com/2010/03/14/chocolate-covered-unit-tests/Choca<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=uglyweb.wordpress.com&amp;blog=9548301&amp;post=62&amp;subd=uglyweb&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This is a very good question:</p>
<p><a href="http://greenicicleblog.com/2010/03/14/chocolate-covered-unit-tests/">Chocolate Covered Unit-Tests</a></p>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;overflow:hidden;">http://greenicicleblog.com/2010/03/14/chocolate-covered-unit-tests/Choca</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/uglyweb.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/uglyweb.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/uglyweb.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/uglyweb.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/uglyweb.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/uglyweb.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/uglyweb.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/uglyweb.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/uglyweb.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/uglyweb.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/uglyweb.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/uglyweb.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/uglyweb.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/uglyweb.wordpress.com/62/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=uglyweb.wordpress.com&amp;blog=9548301&amp;post=62&amp;subd=uglyweb&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://uglyweb.wordpress.com/2010/03/29/i-dont-need-no-sticking-tests/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0b46bfc49b7ec609136bf30d273f80f7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">gutzofter</media:title>
		</media:content>
	</item>
	</channel>
</rss>
