<?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>// do something here &#187; Code Golf</title>
	<atom:link href="http://www.dosomethinghere.com/tag/code-golf/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dosomethinghere.com</link>
	<description>Turning impossibilities into 1s and 0s professionally since 0&#120;07C1</description>
	<lastBuildDate>Fri, 27 Aug 2010 00:30:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>My first foray into Code Golf</title>
		<link>http://www.dosomethinghere.com/2009/08/27/my-first-foray-into-code-golf/</link>
		<comments>http://www.dosomethinghere.com/2009/08/27/my-first-foray-into-code-golf/#comments</comments>
		<pubDate>Fri, 28 Aug 2009 02:15:31 +0000</pubDate>
		<dc:creator>BP</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Visual Basic]]></category>
		<category><![CDATA[Code Golf]]></category>
		<category><![CDATA[VB.NET]]></category>

		<guid isPermaLink="false">http://www.dosomethinghere.com/?p=266</guid>
		<description><![CDATA[So I am poking around on Stack Overflow, trying to figure out a way for someone as stupid as me to actually move my reputation up, when I stumble on this post&#8230; Code Golf: Duplicate Character Removal in String This seemed simple enough, so here is my VB.NET console application code: Module Module1 &#160; Sub [...]]]></description>
			<content:encoded><![CDATA[<p>So I am poking around on Stack Overflow, trying to figure out a way for someone as stupid as me to actually move my reputation up, when I stumble on this post&#8230;</p>
<p><a href="http://stackoverflow.com/questions/1344352/code-golf-duplicate-character-removal-in-string" target="_blank">Code Golf: Duplicate Character Removal in String</a></p>
<p>This seemed simple enough, so here is my VB.NET console application code:</p>

<div class="wp_syntax"><div class="code"><pre class="vbnet" style="font-family:monospace;">Module Module1
&nbsp;
    <span style="color: #0600FF;">Sub</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
&nbsp;
        <span style="color: #0600FF;">Dim</span> s <span style="color: #FF8000;">As</span> <span style="color: #FF8000;">String</span> <span style="color: #008000;">=</span> <span style="color: #808080;">&quot;nbHHkRvrXbvkn&quot;</span>
        Console.<span style="color: #0000FF;">WriteLine</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">&quot;The original string is: &quot;</span> <span style="color: #008000;">+</span> s<span style="color: #000000;">&#41;</span>
        <span style="color: #FF8000;">For</span> <span style="color: #0600FF;">Each</span> c In s : s <span style="color: #008000;">=</span> <span style="color: #0600FF;">IIf</span><span style="color: #000000;">&#40;</span>s.<span style="color: #0000FF;">LastIndexOf</span><span style="color: #000000;">&#40;</span>c<span style="color: #000000;">&#41;</span> &lt;&gt; s.<span style="color: #0000FF;">IndexOf</span><span style="color: #000000;">&#40;</span>c<span style="color: #000000;">&#41;</span>, s.<span style="color: #0600FF;">Replace</span><span style="color: #000000;">&#40;</span><span style="color: #0600FF;">CStr</span><span style="color: #000000;">&#40;</span>c<span style="color: #000000;">&#41;</span>, <span style="color: #FF8000;">Nothing</span><span style="color: #000000;">&#41;</span>, s<span style="color: #000000;">&#41;</span> : <span style="color: #FF8000;">Next</span>
        Console.<span style="color: #0000FF;">WriteLine</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">&quot;The modified string is: &quot;</span> <span style="color: #008000;">+</span> s<span style="color: #000000;">&#41;</span>
        Console.<span style="color: #0000FF;">ReadKey</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
&nbsp;
    <span style="color: #0600FF;">End</span> <span style="color: #0600FF;">Sub</span>
&nbsp;
<span style="color: #0600FF;">End</span> Module</pre></div></div>

<p>The line that does all the work is 98 characters, including the spaces that the IDE automagically puts in there for me.</p>
<p>Anyone have any ideas on how to improve it in VB.NET?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dosomethinghere.com/2009/08/27/my-first-foray-into-code-golf/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
