<?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>Thomas Wiggins &#187; Programming</title>
	<atom:link href="http://www.thomaswiggins.co.uk/category/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thomaswiggins.co.uk</link>
	<description>Programmer. Developer. Designer.</description>
	<lastBuildDate>Mon, 14 Nov 2011 00:34:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>WordPress updates and random code snippet</title>
		<link>http://www.thomaswiggins.co.uk/2010/02/13/wordpress-updates-and-random-code-snippet/</link>
		<comments>http://www.thomaswiggins.co.uk/2010/02/13/wordpress-updates-and-random-code-snippet/#comments</comments>
		<pubDate>Fri, 12 Feb 2010 23:07:54 +0000</pubDate>
		<dc:creator>Thomas Wiggins</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Website]]></category>

		<guid isPermaLink="false">http://www.thomaswiggins.co.uk/?p=510</guid>
		<description><![CDATA[I&#8217;ve Just updated the website from 2.8.4 to 2.9.1 and updated all the plug-ins too. I also updated the contact page with some links to public profiles. People have been poking me to update this website more regularly so I&#8217;m &#8230; <a href="http://www.thomaswiggins.co.uk/2010/02/13/wordpress-updates-and-random-code-snippet/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve Just updated the website from 2.8.4 to 2.9.1 and updated all the plug-ins too. I also updated the contact page with some links to public profiles.</p>
<p>People have been poking me to update this website more regularly so I&#8217;m trying to think of things to write about. Projects have kind of gone on hold again since I&#8217;ve moved and started work, will hopefully get on with some soon. In the meantime I&#8217;m considering just writing about some general programming tips/tricks/oddities I&#8217;ve come across. </p>
<p>In light of that here&#8217;s a random code snippet I read recently. Also I want to test this new formatting plug-in I installed. <img src='http://www.thomaswiggins.co.uk/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
</pre></td><td class="code"><pre class="cpp" style="font-family:monospace;"><span style="color: #339900;">#include &lt;stdio.h&gt;</span>
<span style="color: #0000ff;">int</span> main<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span>
<span style="color: #008000;">&#123;</span>
     <span style="color: #0000ff;">int</span> x <span style="color: #000080;">=</span> <span style="color: #0000dd;">10</span><span style="color: #008080;">;</span>
     <span style="color: #0000ff;">while</span><span style="color: #008000;">&#40;</span> x<span style="color: #000040;">--</span><span style="color: #000080;">&gt;</span><span style="color: #0000dd;">0</span> <span style="color: #008000;">&#41;</span> <span style="color: #666666;">// x goes to 0</span>
     <span style="color: #008000;">&#123;</span>
       <span style="color: #0000dd;">printf</span><span style="color: #008000;">&#40;</span><span style="color: #FF0000;">&quot;%d &quot;</span>, x<span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
     <span style="color: #008000;">&#125;</span>
&nbsp;
<span style="color: #008000;">&#125;</span></pre></td></tr></table></div>


<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">Output: 9 8 7 6 5 4 3 2 1 0</pre></div></div>

<p>It&#8217;s a little neat way of using &#8220;<code>--></code>&#8221; as a &#8220;go down to&#8221; operator. In reality it&#8217;s not a single operator obviously, it&#8217;s just syntactically equivalent to <code>((x--) > 0)</code>. Pretty nice all the same though. <img src='http://www.thomaswiggins.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Anyway that&#8217;s all for now. Will try to think of something else (possibly less random) to post soon.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thomaswiggins.co.uk/2010/02/13/wordpress-updates-and-random-code-snippet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

