<?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>Greg&#039;s Adventures &#187; Programming</title>
	<atom:link href="http://www.greglincoln.com/category/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.greglincoln.com</link>
	<description>A zombie for your brain.</description>
	<lastBuildDate>Sun, 04 Apr 2010 20:51:45 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Reverse a dictionary</title>
		<link>http://www.greglincoln.com/2008/06/23/reverse-a-dictionary/</link>
		<comments>http://www.greglincoln.com/2008/06/23/reverse-a-dictionary/#comments</comments>
		<pubDate>Mon, 23 Jun 2008 19:07:08 +0000</pubDate>
		<dc:creator>Greg</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.greglincoln.com/2008/06/23/reverse-a-dictionary/</guid>
		<description><![CDATA[Have you ever wished your dictionary of &#60;K,V&#62; was in fact of &#60;V,K&#62;? I might be the last person to figure this out, but with LINQ (and a couple lambdas) you can do this with one magical line of code:


var newDict = oldDict.ToDictionary&#40;l =&#62; l.Value, l =&#62; l.Key&#41;;


Neat, eh?
]]></description>
			<content:encoded><![CDATA[<p>Have you ever wished your dictionary of &lt;K,V&gt; was in fact of &lt;V,K&gt;? I might be the last person to figure this out, but with LINQ (and a couple lambdas) you can do this with one magical line of code:</p>


<div class="wp_syntax"><div class="code"><pre class="csharp csharp" style="font-family:monospace;">var newDict <span style="color: #008000;">=</span> oldDict.<span style="color: #0000FF;">ToDictionary</span><span style="color: #000000;">&#40;</span>l <span style="color: #008000;">=&gt;</span> l.<span style="color: #0000FF;">Value</span>, l <span style="color: #008000;">=&gt;</span> l.<span style="color: #0000FF;">Key</span><span style="color: #000000;">&#41;</span>;</pre></div></div>


<p>Neat, eh?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.greglincoln.com/2008/06/23/reverse-a-dictionary/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Become a Jedi with Resharper</title>
		<link>http://www.greglincoln.com/2008/06/20/become-a-jedi-with-resharper/</link>
		<comments>http://www.greglincoln.com/2008/06/20/become-a-jedi-with-resharper/#comments</comments>
		<pubDate>Sat, 21 Jun 2008 01:14:33 +0000</pubDate>
		<dc:creator>Greg</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.greglincoln.com/2008/06/20/become-a-jedi-with-resharper/</guid>
		<description><![CDATA[If you work in C# or VB.net on a regular basis, you really owe it to yourself to try out Resharper. This tool saves me countless hours. James Kovacs put together some fantastic screencasts on &#8220;Becoming a Jedi&#8221; that show it in action, if you are curious. He hasn&#8217;t covered the features that make it <a href="http://www.greglincoln.com/2008/06/20/become-a-jedi-with-resharper/" class="more-link">More &#62;</a>]]></description>
			<content:encoded><![CDATA[<p>If you work in C# or VB.net on a regular basis, you really owe it to yourself to try out Resharper. This tool saves me countless hours. <br /><br /><a href="http://www.jameskovacs.com/" onclick="javascript:pageTracker._trackPageview ('/outbound/www.jameskovacs.com');">James Kovacs</a> put together some fantastic screencasts on &#8220;<a href="http://www.jameskovacs.com/blog/BecomingAJediPart3OfN.aspx" onclick="javascript:pageTracker._trackPageview ('/outbound/www.jameskovacs.com');">Becoming a Jedi</a>&#8221; that show it in action, if you are curious. <br /><br />He hasn&#8217;t covered the features that make it a boon for test driven development yet, but there&#8217;s another great <a href="http://www.jetbrains.com/resharper/documentation/presentation/codingSession/CodingSession.wmv" onclick="javascript:pageTracker._trackPageview ('/outbound/www.jetbrains.com');">screencast</a> that shows that off, and <a href="http://resharper.blogspot.com/2007/05/jedi-way-coding-in-reverse.html" onclick="javascript:pageTracker._trackPageview ('/outbound/resharper.blogspot.com');">this post</a> provides some additional details on &#8220;coding in reverse&#8221; with Resharper.<br /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.greglincoln.com/2008/06/20/become-a-jedi-with-resharper/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Order of operations</title>
		<link>http://www.greglincoln.com/2008/06/19/order-of-operations/</link>
		<comments>http://www.greglincoln.com/2008/06/19/order-of-operations/#comments</comments>
		<pubDate>Thu, 19 Jun 2008 23:22:43 +0000</pubDate>
		<dc:creator>Greg</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.greglincoln.com/2008/06/19/order-of-operations/</guid>
		<description><![CDATA[Sometimes I can be such a buffoon. When programming with threads, one must be sure to lock and unlock in the correct order. Also, one must be sure not to do things explicitly marked as no-nos while in a &#8220;critical section.&#8221;I just lost two hours to this, so I felt the need to whine.
]]></description>
			<content:encoded><![CDATA[<p>Sometimes I can be such a buffoon. When programming with threads, one must be sure to lock and unlock in the correct order. Also, one must be sure not to do things explicitly marked as no-nos while in a &#8220;critical section.&#8221;<br />I just lost two hours to this, so I felt the need to whine.<br /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.greglincoln.com/2008/06/19/order-of-operations/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>On programming for fun.</title>
		<link>http://www.greglincoln.com/2007/02/17/on-programming-for-fun/</link>
		<comments>http://www.greglincoln.com/2007/02/17/on-programming-for-fun/#comments</comments>
		<pubDate>Sat, 17 Feb 2007 15:48:55 +0000</pubDate>
		<dc:creator>Greg</dc:creator>
				<category><![CDATA[Personal Growth]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://www.greglincoln.com/2007/02/17/on-programming-for-fun/</guid>
		<description><![CDATA[I wonder if it is the nature of the beast that when someone does something for a living day in and day out, it stops being fun. I&#8217;m starting to worry that may be the case with me.

Why am I bringing this up? One reason is due to watching my friend Rab having fun with <a href="http://www.greglincoln.com/2007/02/17/on-programming-for-fun/" class="more-link">More &#62;</a>]]></description>
			<content:encoded><![CDATA[<p>I wonder if it is the nature of the beast that when someone does something for a living day in and day out, it stops being fun. I&#8217;m starting to worry that may be the case with me.</p>

<p>Why am I bringing this up? One reason is due to watching my friend Rab <a href="http://robertbeverly.com/2007/02/17/hobby-programming/">having fun with Python</a>. He&#8217;s having fun. He&#8217;s doing it for fun, and thus he&#8217;s having fun. Doesn&#8217;t that sound like fun? It does to me. Yet he&#8217;s doing the same thing I do as a job, and I don&#8217;t have fun. Maybe it is because he&#8217;s writing a game?</p>

<p>Reading his adventures, and talking with him about python programming is fun. It makes me want to start programming for fun too. As it doesn&#8217;t make sense to me for the idea of programming to be fun but the programming itself not to be, I suppose I&#8217;m just looking at the the wrong way. Maybe all I need to do is adjust my point of view, and I&#8217;ll start having fun again. I say again because I did enjoy programming once. I know it is possible for me to do so.</p>

<p>Thus starts the experiment. I&#8217;m not sure yet how I&#8217;m going to approach this. Perhaps the best method is to just adjust my thinking &#8212; find the &#8220;game&#8221; in whatever I&#8217;m doing, cling to it, and use that shape my overall view.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.greglincoln.com/2007/02/17/on-programming-for-fun/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
