<?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>DEfusion.org.uk &#187; Outer Monologue</title>
	<atom:link href="http://www.defusion.org.uk/archives/category/outer-monologue/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.defusion.org.uk</link>
	<description>I too will force my opinions on you</description>
	<lastBuildDate>Mon, 04 Jul 2011 19:28:08 +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>Where to Start With, open to all &amp; new feature</title>
		<link>http://www.defusion.org.uk/archives/2009/07/13/where-to-start-with-open-to-all-new-feature/</link>
		<comments>http://www.defusion.org.uk/archives/2009/07/13/where-to-start-with-open-to-all-new-feature/#comments</comments>
		<pubDate>Mon, 13 Jul 2009 21:16:07 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[Music]]></category>
		<category><![CDATA[My Sites]]></category>
		<category><![CDATA[Outer Monologue]]></category>
		<category><![CDATA[Quick Link]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Where to Start With]]></category>

		<guid isPermaLink="false">http://www.defusion.org.uk/archives/2009/07/13/where-to-start-with-open-to-all-new-feature/</guid>
		<description><![CDATA[Just a very quick post to let you all know that my community-driven music recommendation site Where to Start With has just left private beta. Not only that but we have launched what we think is a killer new feature, there is a lot more detail (and a screencast) in the blog post over at [...]]]></description>
			<content:encoded><![CDATA[<p>Just a very quick post to let you all know that my community-driven music recommendation site <a href="http://wheretostartwith.com/">Where to Start With</a> has just left private beta. Not only that but we have launched what we think is a killer new feature, <a href="http://blog.wheretostartwith.com/2009/07/13/goodbye-private-beta-hello-new-features/">there is a lot more detail (and a screencast) in the blog post</a> over at our Where to Start With blog.</p>]]></content:encoded>
			<wfw:commentRss>http://www.defusion.org.uk/archives/2009/07/13/where-to-start-with-open-to-all-new-feature/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Introducing: My New F1-Focused Site F1Heat.com</title>
		<link>http://www.defusion.org.uk/archives/2009/03/23/just-launched-my-new-f1-focused-site-f1heatcom/</link>
		<comments>http://www.defusion.org.uk/archives/2009/03/23/just-launched-my-new-f1-focused-site-f1heatcom/#comments</comments>
		<pubDate>Mon, 23 Mar 2009 01:07:08 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[F1]]></category>
		<category><![CDATA[My Sites]]></category>
		<category><![CDATA[Outer Monologue]]></category>

		<guid isPermaLink="false">http://www.defusion.org.uk/archives/2009/03/23/just-launched-my-new-f1-focused-site-f1heatcom/</guid>
		<description><![CDATA[

I have been thinking about writing articles on F1 on my here for quite a while, as I have found myself getting more and more interested by the sport (as of writing it is currently less 4 days, 1 hour and around 10 minutes before the start of the 2009 season and I canâ€™t wait!) [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://f1heat.com/"><br />
<img class="featureImg" src="http://www.defusion.org.uk/wp-content/uploads/2009/03/f1heat-screenshot.jpg" alt="Screenshot of my new F1-focused site F1heat.com" /><br />
</a>I have been thinking about writing articles on F1 on my here for quite a while, as I have found myself getting more and more interested by the sport (as of writing it is currently less 4 days, 1 hour and around 10 minutes before the start of the 2009 season and I canâ€™t wait!) and getting more involved on F1 sites, with comments etc. I have also started to notice that in quite a lot of places that I would<span> like to write more than short comments (I donâ€™t like to read essays in comments, so I try not to leave them too) but also I feel that I have more to add with original articles of my own. </span></p>
<p>So Iâ€™m going to give it a whirl, it might be rubbish &#8211; but lets hope not.</p>
<p>However instead of posting on this site under an F1 category I decided to start a new site entirely dedicated to my F1 musings, to keep it separate from all the techy stuff I write here, so behold <a href="http://f1heat.com/">F1heat.com</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.defusion.org.uk/archives/2009/03/23/just-launched-my-new-f1-focused-site-f1heatcom/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A Nice Rebuttal To The Hulu Situation</title>
		<link>http://www.defusion.org.uk/archives/2009/02/20/a-nice-rebuttal-to-the-hulu-situation/</link>
		<comments>http://www.defusion.org.uk/archives/2009/02/20/a-nice-rebuttal-to-the-hulu-situation/#comments</comments>
		<pubDate>Fri, 20 Feb 2009 00:46:02 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[Outer Monologue]]></category>
		<category><![CDATA[TV]]></category>

		<guid isPermaLink="false">http://www.defusion.org.uk/archives/2009/02/20/a-nice-rebuttal-to-the-hulu-situation/</guid>
		<description><![CDATA[Just to get you up to speed if you don&#8217;t know what Hulu is and what situation is before I get to the rebuttal I found today:
Hulu is a (US only) website which allows you to stream TV shows (in pretty good quality) to your computer via Flash, it has deals with some of the [...]]]></description>
			<content:encoded><![CDATA[<p>Just to get you up to speed if you don&#8217;t know what Hulu is and what situation is before I get to the rebuttal I found today:</p>
<p><a href="http://www.hulu.com/">Hulu</a> is a (US only) website which allows you to stream TV shows (in pretty good quality) to your computer via Flash, it has deals with some of the major US TV companies and has shows added very shortly after they are originally aired and seem to stay available online for a long time (e.g. much more than the 7 days you get with the iPlayer). You get very few advert interruptions, roughly 4 or 5 for a program that would run an hour on TV, and the adverts generally only last around 15 seconds or so, aiming to take the amount of time that you would normally spend fast forwarding through 3+ minutes worth of adverts if you recorded a program on your PVR.</p>
<p>It really is a top-notch user experience and it is the kind of thing that could really take off big, and from what I&#8217;ve seen of other services is the closest thing in to my <a href="/archives/2008/01/18/iplayer-my-first-thoughts-must-try-harder/">In an ideal world thoughts</a> when I wrote about the BBC iPlayer over a year ago.<br />
<span id="more-191"></span><br />
<a href="http://www.boxee.tv/">boxee</a> is a wonderful-looking piece of media centre software (which by the way is going to be running on my next media centre when I get round to doing that) that not only allows you to play media on your machine or from <acronym title="Digital Video Disc">DVD</acronym>&#8217;s etc. but also connects to some popular TV streaming websites &#8212; such as the BBC iPlayer, Hulu and more.</p>
<p>The &quot;situation&quot; is that <a href="http://origin-blog.hulu.com/2009/2/18/doing-hard-things">Hulu has been forced by the content providers to not support boxee any more</a>, their <a href="http://origin-blog.hulu.com/2009/2/18/doing-hard-things">blog post</a> on the situation and <a href="http://blog.boxee.tv/2009/02/18/the-hulu-situation/>boxee&#8217;s thoughts on the situation</a> are both well worth reading (basic I think they both boil down to neither party, Hulu &amp; boxee, wanted this to happen but the TV companies forced the issue).</p>
<p>So that&#8217;s the situation, and it has not being received very well (see the 400+ comments <a href="http://blog.boxee.tv/2009/02/18/the-hulu-situation/>on the boxee blog</a> for a start).</p>
<p>I personally don&#8217;t understand it, I assume that the TV companies don&#8217;t pay Hulu to support their distribution costs &#8211; so it probably costs them next to nothing &#8212; but will probably be <em>currently</em> providing them less revenue than traditional broadcasting. However why they see a difference between using a piece of software to make getting <strong>TV programs</strong> onto your <strong>TV</strong> a little bit easier than using a browser on the same machine really makes no sense.</p>
<p>This is the kind of thing that leads people to fall back to other almost-as-frictionless means of getting the same content we currently have available, which of course currently means torrents. And that is what the <a href="http://lifehacker.com/5156515/get-hulu-content-on-your-tv-without-hulus-help">rebuttal on lifehacker basically says and shows you what to do if you were so inclined.</a></p>
<p>My guess is this whole situtation thing is because the media companies are currently doing deals with set-top box companies to make hardware to do the same thing as the boxee/hulu combination, but obviously with more control, more revenue for them and probably more adverts, more restrictions and a less polished user experience.</p>]]></content:encoded>
			<wfw:commentRss>http://www.defusion.org.uk/archives/2009/02/20/a-nice-rebuttal-to-the-hulu-situation/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Quick Link: Dead simple task scheduling in Rails</title>
		<link>http://www.defusion.org.uk/archives/2009/02/14/quick-link-dead-simple-task-scheduling-in-rails/</link>
		<comments>http://www.defusion.org.uk/archives/2009/02/14/quick-link-dead-simple-task-scheduling-in-rails/#comments</comments>
		<pubDate>Sat, 14 Feb 2009 11:23:04 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[Outer Monologue]]></category>
		<category><![CDATA[Quick Link]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.defusion.org.uk/archives/2009/02/14/quick-link-dead-simple-task-scheduling-in-rails/</guid>
		<description><![CDATA[I&#8217;ve just come across this post on dead simple task scheduling in Rails by the guys at intridea. It looks like a really nifty way to setup scheduled tasks in your Rails app, previously I had my tasks in rake files which I would then hit with cron. 
While that is working perfectly adequately for [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve just come across this post on <a href="http://www.intridea.com/posts/dead-simple-task-scheduling-in-rails">dead simple task scheduling in Rails</a> by the guys at <a href="http://www.intridea.com/">intridea</a>. It looks like a really nifty way to setup scheduled tasks in your Rails app, previously I had my tasks in rake files which I would then hit with cron. </p>
<p>While that is working perfectly adequately for my current setup it does have one downside, when I setup a new server I will have to setup the crontab file too. With <a href="http://www.intridea.com/posts/dead-simple-task-scheduling-in-rails">this method</a> when I deploy my app my scheduled tasks would get deployed and be running out of the box. Nice.</p>]]></content:encoded>
			<wfw:commentRss>http://www.defusion.org.uk/archives/2009/02/14/quick-link-dead-simple-task-scheduling-in-rails/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Customer Satisfaction Tip From The Dentist &#8211; Empathise with your customers situation</title>
		<link>http://www.defusion.org.uk/archives/2009/02/13/customer-satisfaction-tip-from-the-dentist-empathise-with-your-customers-situation/</link>
		<comments>http://www.defusion.org.uk/archives/2009/02/13/customer-satisfaction-tip-from-the-dentist-empathise-with-your-customers-situation/#comments</comments>
		<pubDate>Fri, 13 Feb 2009 18:38:29 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[Outer Monologue]]></category>

		<guid isPermaLink="false">http://www.defusion.org.uk/archives/2009/02/13/customer-satisfaction-tip-from-the-dentist-empathise-with-your-customers-situation/</guid>
		<description><![CDATA[Yesterday I went for a root canal. I wasn&#8217;t entirely sure what the process involved and somewhere in the past I had gotten it into my head that a root canal could possibly be quite unpleasant. However I have never really had much of a problem with going to the dentist or having work done [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday I went for a root canal. I wasn&#8217;t entirely sure what the process involved and somewhere in the past I had gotten it into my head that a root canal could possibly be quite unpleasant. However I have never really had much of a problem with going to the dentist or having work done on my teeth so I wasn&#8217;t worried (much), but I can imagine that others might not be so lucky.</p>
<p>I had been referred to a dentist that specialises in doing root canals, so this was my first visit to this dentist and he did a few things that showed he really empathised with his customer.<br />
<span id="more-189"></span><br />
When I arrived one of the first things that the receptionist asked me to do was to pick a music <acronym title="Compact Disk">CD</acronym> from a list of 100, which seemed a little strange but I didn&#8217;t ask any questions.</p>
<p>What the dentist did when I entered his room really showed me that he empathised with people who had to undergo this (hour long) treatment. It included the following:</p>
<ol>
<li>He spent about 5 minutes explaining the procedure in detail with me, explaining what each step would entail and what the goals of each step were and answered any questions clearly.</li>
<li>When he was giving me the injection to numb my mouth he gave me extra just to make sure &#8211; as my tooth had been causing me some pain before hand.</li>
<li><em>And here&#8217;s the big one.</em> As I couldn&#8217;t do anything for the hour I was there, except sit still, the music &quot;<acronym title="Compact Disk">CD</acronym>&quot; I&#8217;d chosen from the list turned out to actually be a music <acronym title="Digital Video Disc">DVD</acronym> which he played on a plasma screen on the ceiling directly above me.</li>
</ol>
<p>How considerate is that? Now I couldn&#8217;t hear it all the time, but most of the time I could, and in any case it gave me something to help pass the time and to think about/concentrate on during the hour I couldn&#8217;t do or say anything. If I&#8217;d know that&#8217;s what the choice of music was for I&#8217;d have spent a little longer looking at the list.</p>
<p>I don&#8217;t know if other dentists do this, as I have been with my dentist my entire life, or if this one came up with it all by himself, but either way it shows that he empathised with the customer and their situation by doing a few small things that made the process easier for me (and in turn probably easier on him too).
<p><strong><em>Advertisement</em></strong>:  <a href="http://www.defusion.org.uk/code/javascript-image-cropper-ui-using-prototype-scriptaculous/">JavaScript Image Cropper UI</a><em> </em>Download my feature-rich JavaScript Image Cropper.</p>]]></content:encoded>
			<wfw:commentRss>http://www.defusion.org.uk/archives/2009/02/13/customer-satisfaction-tip-from-the-dentist-empathise-with-your-customers-situation/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Has Someone Broken/Hacked Google?</title>
		<link>http://www.defusion.org.uk/archives/2009/01/31/has-someone-brokenhacked-google/</link>
		<comments>http://www.defusion.org.uk/archives/2009/01/31/has-someone-brokenhacked-google/#comments</comments>
		<pubDate>Sat, 31 Jan 2009 14:57:59 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[Outer Monologue]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.defusion.org.uk/archives/2009/01/31/has-someone-brokenhacked-google/</guid>
		<description><![CDATA[For the past 10 minutes or so every search I have performed on Google (.co.uk) has brought up the &#8220;This site may harm your computer&#8221; warning page on almost every result (except for Google owned sites, like YouTube). Just take a look at this search for the term &#8220;Something&#8221;:

I also tried on different browsers and [...]]]></description>
			<content:encoded><![CDATA[<p>For the past 10 minutes or so every search I have performed on Google (.co.uk) has brought up the &#8220;This site may harm your computer&#8221; warning page on <del>almost</del> every result <del>(except for Google owned sites, like YouTube)</del>. Just take a look at this search for the term &#8220;Something&#8221;:</p>
<p><a href="http://www.defusion.org.uk/wp-content/uploads/2009/01/google_broken_thumb.png" rel="lightbox"><img id="image187" src="http://www.defusion.org.uk/wp-content/uploads/2009/01/google_broken_thumb.png" alt="A screenshot of Google search results" /></a></p>
<p>I also tried on different browsers and get the same issues &#8211; is anyone else getting this? Either way it&#8217;s a little disconcerting that a bug like this can find its way into Google, but also in its own way a little reassuring that everyone has bugs.</p>
<p><strong>Update:</strong> Yep it appears to be everywhere, this <a href="http://www.techcrunch.com/2009/01/31/google-flags-whole-internet-as-malware/">TechCrunch story covers it.</a></p>
<p><strong>Update:</strong> The <a href="http://news.bbc.co.uk/1/hi/technology/7862840.stm">BBC have a bit more detail</a>, seems an import of data from Stopbadware.org flagged everything as dangerous &#8211; do you think someone updated the query recently and missed out the <span class="code">WHERE id = [id]</span> part, I know I&#8217;ve done that on in dev more than once. :)</p>]]></content:encoded>
			<wfw:commentRss>http://www.defusion.org.uk/archives/2009/01/31/has-someone-brokenhacked-google/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>CSS Management on Large Sites</title>
		<link>http://www.defusion.org.uk/archives/2008/10/21/css-management-on-large-sites/</link>
		<comments>http://www.defusion.org.uk/archives/2008/10/21/css-management-on-large-sites/#comments</comments>
		<pubDate>Tue, 21 Oct 2008 19:06:18 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Outer Monologue]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.defusion.org.uk/archives/2008/10/21/css-management-on-large-sites/</guid>
		<description><![CDATA[At one of my previous jobs we had a massive amount of CSS to handle; we had the global styles, then section/page specific styles and on top of both of those we had different styles for various versions of the application (as the same application and content ran many sites).
The solution we came up with [...]]]></description>
			<content:encoded><![CDATA[<p>At one of my previous jobs we had a massive amount of <acronym title="Cascading Style Sheets">CSS</acronym> to handle; we had the global styles, then section/page specific styles and on top of both of those we had different styles for various versions of the application (as the same application and content ran many sites).</p>
<p>The solution we came up with was not too dissimilar to the one discussed in this months <a href="http://www.alistapart.com/">A List Apart</a> article <a href="http://www.alistapart.com/articles/progressiveenhancementwithcss">Progressive Enhancement with <acronym title="Cascading Style Sheets">CSS</acronym></a> and that article is well worth a read. But I also thought I&#8217;d write a little about the setup that we came up with and how it worked out for us.<br />
<span id="more-184"></span><br />
The basic setup was as follows:</p>
<ul>
<li>Split the styles into their three components of the <acronym title="Cascading Style Sheets">CSS</acronym> make-up: layout, typography, skin (with the skin file containing the colour and graphics). As this kept things nicely compartmentalised and meant that we could re-use some styles from one site (e.g. the layout generally was the same for most content across all the sites) while applying extra changes specific to that site.</li>
<li>The stylesheets were organised into directories based on the section (or sometimes specific page) of the application. So for example <span class="code">home/layout.css</span>, <span class="code">home/skin.css</span>, <span class="code">news/layout.css</span> and <span class="code">news/skin.css</span> etc.</li>
<li>We could then also import specific stylesheets for each of our sites on top of these (both at a global and section level) which usually just overrode a few style declarations to keep these site-specific style rules to a minimum.</li>
<li>All of this was managed server side using a configuration schema which knew where to look for the stylesheets for a given section of the application (as well as the global ones) and include them as appropriate for the given site.</li>
</ul>
<p>We also had common comment styling for breaking the larger stylesheets into sections (which makes it easier to find things) and tried to alphabetise our properties within each style rule (although it&#8217;s not something that I personally could always stick to).</p>
<p>This was quite a good system, it may have looked complex based on the number of stylesheets that were imported for any given page but it worked out really well and we never really had any problems with our <acronym title="Cascading Style Sheets">CSS</acronym> system.</p>
<p>I&#8217;ve even used it on a few of my own larger side projects with minor tweaking to the system (e.g. dropping the configuration schema and following a Rails-like &quot;Convention over Configuration&quot; setup), and as I say it is very similar to the one described in the <a href="http://www.alistapart.com/">A List Apart</a> article <a href="http://www.alistapart.com/articles/progressiveenhancementwithcss">Progressive Enhancement with <acronym title="Cascading Style Sheets">CSS</acronym></a> &#8212; that has a really good idea for handling the different media types, which we handled via our schema.</p>]]></content:encoded>
			<wfw:commentRss>http://www.defusion.org.uk/archives/2008/10/21/css-management-on-large-sites/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Pleasefixtheiphone.com &#8211; Great Site and Great Design</title>
		<link>http://www.defusion.org.uk/archives/2008/10/20/pleasefixtheiphonecom-great-site-and-great-design/</link>
		<comments>http://www.defusion.org.uk/archives/2008/10/20/pleasefixtheiphonecom-great-site-and-great-design/#comments</comments>
		<pubDate>Mon, 20 Oct 2008 20:25:16 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[Outer Monologue]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.defusion.org.uk/archives/2008/10/20/pleasefixtheiphonecom-great-site-and-great-design/</guid>
		<description><![CDATA[
I just came across this great site via Techcrunch called &#34;Please fix the iPhone&#34;. It&#8217;s basically a list of issues which people are having with the iPhone and allows you to vote on ones you&#8217;d like to have fixed. 
It&#8217;s quite a nice idea and really well executed. What I really liked is the fact [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.defusion.org.uk/wp-content/uploads/2008/10/pleasefixtheiphone.png" rel="lightbox"><img id="image181" src="http://www.defusion.org.uk/wp-content/uploads/2008/10/pleasefixtheiphone-thumb.png" alt="Pleasefixtheiphone.com screenshot" class="featureImg" /></a><br />
I just came across this great site <a href="http://www.techcrunch.com/2008/10/20/please-fix-the-iphone-a-to-do-list-for-steve-jobs/">via Techcrunch</a> called &quot;<a href="http://pleasefixtheiphone.com/">Please fix the iPhone</a>&quot;. It&#8217;s basically a list of issues which people are having with the iPhone and allows you to vote on ones you&#8217;d like to have fixed. </p>
<p>It&#8217;s quite a nice idea and really well executed. What I really liked is the fact that they&#8217;ve obviously spent a little time designing this thing (both from a UI and functionality point of view). It&#8217;s really quite refreshing to see something like this appear in an era when most simple ideas I see like this end up running on a blog or a wiki platform.</p>
<p>So if you&#8217;ve got an iPhone <a href="http://pleasefixtheiphone.com/">head over there and vote</a>, if you haven&#8217;t <a href="http://pleasefixtheiphone.com/">head over and take a look at the design</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.defusion.org.uk/archives/2008/10/20/pleasefixtheiphonecom-great-site-and-great-design/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Quick Link:Where Does Money Come From?</title>
		<link>http://www.defusion.org.uk/archives/2008/10/14/quick-linkwhere-does-money-come-from/</link>
		<comments>http://www.defusion.org.uk/archives/2008/10/14/quick-linkwhere-does-money-come-from/#comments</comments>
		<pubDate>Tue, 14 Oct 2008 23:14:04 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[Outer Monologue]]></category>
		<category><![CDATA[Quick Link]]></category>

		<guid isPermaLink="false">http://www.defusion.org.uk/archives/2008/10/14/quick-linkwhere-does-money-come-from/</guid>
		<description><![CDATA[Dave Gorman asked the question &#34;Where does money come from?&#34; earlier today, obviously the economy is on a lot of peoples minds at the moment (and not least my own &#8212; more on that another time). It was a simple question and there was a couple of really great links in the comments: Money as [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.davegorman.com/">Dave Gorman</a> asked the question &quot;<a href="http://gormano.blogspot.com/2008/10/where-does-money-come-from.html">Where does money come from?</a>&quot; earlier today, obviously the economy is on a lot of peoples minds at the moment (and not least my own &#8212; more on that another time). It was a simple question and there was a couple of really great links in the comments: <a href="http://video.google.com/videoplay?docid=-9050474362583451279&#038;hl=en">Money as Debt video on Google Video</a>, which is also available from <a href="http://www.moneyasdebt.net/">moneyasdebt.net</a> and a <a href="http://www.populistamerica.com/money_as_debt">quick summation of the &quot;Money as Debt&quot; video</a>.</p>
<p>I, like many others no doubt, thought that it was all based on the money that we deposit in banks; they invest some of that and keep some aside to let other depositors (and me) have access to some of that. But that still didn&#8217;t answer the question as to <a href="http://gormano.blogspot.com/2008/10/where-does-money-come-from.html">where the rest of the money comes from</a> but the <a href="http://video.google.com/videoplay?docid=-9050474362583451279&#038;hl=en">video does a great job of explaining it</a>. </p>
<p>And if after watching that you&#8217;re not a little concerned then you must be a banker.</p>]]></content:encoded>
			<wfw:commentRss>http://www.defusion.org.uk/archives/2008/10/14/quick-linkwhere-does-money-come-from/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Coding Clarity Over Cleverness</title>
		<link>http://www.defusion.org.uk/archives/2008/10/14/coding-clarity-over-cleverness/</link>
		<comments>http://www.defusion.org.uk/archives/2008/10/14/coding-clarity-over-cleverness/#comments</comments>
		<pubDate>Tue, 14 Oct 2008 20:02:29 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Outer Monologue]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.defusion.org.uk/archives/2008/10/14/coding-clarity-over-cleverness/</guid>
		<description><![CDATA[I was asked a question a while back over IM. The question and my subsequent answer made me think about my coding style, decision making process and evolution over the years and I decided that I would share those thoughts with you (aren&#8217;t you lucky).

The initial conversation went something like this, I&#8217;m paraphrasing here (but [...]]]></description>
			<content:encoded><![CDATA[<p>I was asked a question a while back over <acronym title="Instant Message">IM</acronym>. The question and my subsequent answer made me think about my coding style, decision making process and evolution over the years and I decided that I would share those thoughts with you (aren&#8217;t you lucky).<br />
<span id="more-179"></span><br />
The initial conversation went something like this, I&#8217;m paraphrasing here (but at least I&#8217;m not <a href="/archives/2007/02/11/donations-make-me-warm-and-fuzzy/">filling it with &#8220;dude&#8221;&#8217;s</a>):</p>
<blockquote><p>M: I was thinking about the <span class="code">event.setArg()</span> method, and thought it would be nice if you could have it set the variable to session or cookies within the same call, e.g. <span class="code">event.setArg(&#8216;name&#8217;,'value&#8217;,true,true)</span>, what do you think?</p></blockquote>
<blockquote><p>Me: I see what you&#8217;re thinking, but I don&#8217;t like it. I think that your code should be clear to you and others what it is doing and those true arguments don&#8217;t give you much insight into what they&#8217;re doing.</p>
<p>You&#8217;ve got to think about someone else coming to maintain your code, would they be able to see what it was doing without digging through to find the definition of <span class="code">event.setArg()</span>? </p>
<p>Also how many times will you use it, and if not many, will you have to check the definition yourself to remind you which one is setting the cookie and which the session next time you see it?</p></blockquote>
<p>So in the end I proposed 3 methods, the original setArg() method and two for setting cookie values &#038; session values, basically a couple of cookie and session faÃ§ades, and I think that&#8217;s what he went for in the end.</p>
<p>In my view the few times you&#8217;d want to set the same value to cookie and or session is very rare and the following example shows the worst case scenario where you want the value in all 3 places:</p>
<p><span class="code">event.setArg( &#8216;myArg&#8217;, myVal );</span><br />
<span class="code">cookie.set( &#8216;myArg&#8217;, myVal );</span><br />
<span class="code">session.set( &#8216;myArg&#8217;, myVal );</span></p>
<p>It&#8217;s not the driest piece of code, but in my opinion much better than being presented with <span class="code">event.setArg(&#8216;myArg&#8217;, myVal, false, true)</span>.</p>
<p>So that brings me to the title of this post, &#8220;Coding Clarity Over Cleverness&#8221;, the example with the extra faÃ§ades for the session &#038; cookie can&#8217;t really be any clearer in my opinion, it&#8217;s not the cleverest or driest solution but as far as readability and future maintenance in my opinion it&#8217;s much better. Presented with that code you probably wouldn&#8217;t even dig into the documentation or code to see what cookie.set() and session.set() are doing as it&#8217;s pretty clear.</p>
<p>The clarity over cleverness argument goes for any coding situation, you might hide some really clever code behind a method or function, but it&#8217;s name and signature should clearly show what it&#8217;s doing.</p>
<p>So the next time you come up with a clever solution, ask yourself if it&#8217;s clear what the code is doing if not then re-factor it so that it is.</p>]]></content:encoded>
			<wfw:commentRss>http://www.defusion.org.uk/archives/2008/10/14/coding-clarity-over-cleverness/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

