<?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>Biting the bytes</title>
	<atom:link href="http://nelsonbarlow.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://nelsonbarlow.wordpress.com</link>
	<description>.NET, SQL Server and other random things.</description>
	<lastBuildDate>Sun, 25 Jan 2009 14:30:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='nelsonbarlow.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Biting the bytes</title>
		<link>http://nelsonbarlow.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://nelsonbarlow.wordpress.com/osd.xml" title="Biting the bytes" />
	<atom:link rel='hub' href='http://nelsonbarlow.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Podcasts to keep an eye on #1</title>
		<link>http://nelsonbarlow.wordpress.com/2009/01/25/podcasts-to-keep-an-eye-on-1/</link>
		<comments>http://nelsonbarlow.wordpress.com/2009/01/25/podcasts-to-keep-an-eye-on-1/#comments</comments>
		<pubDate>Sun, 25 Jan 2009 14:29:17 +0000</pubDate>
		<dc:creator>nelsonbarlow</dc:creator>
				<category><![CDATA[links]]></category>
		<category><![CDATA[podcast]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://nelsonbarlow.wordpress.com/?p=36</guid>
		<description><![CDATA[This .Net Podcast has interesting topics that always score high in the dotnetkicks.com.  http://altnetpodcast.com/<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nelsonbarlow.wordpress.com&amp;blog=5103862&amp;post=36&amp;subd=nelsonbarlow&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This .Net Podcast has interesting topics that always score high in the dotnetkicks.com. </p>
<p><a href="http://altnetpodcast.com/">http://altnetpodcast.com/</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nelsonbarlow.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nelsonbarlow.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nelsonbarlow.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nelsonbarlow.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nelsonbarlow.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nelsonbarlow.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nelsonbarlow.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nelsonbarlow.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nelsonbarlow.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nelsonbarlow.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nelsonbarlow.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nelsonbarlow.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nelsonbarlow.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nelsonbarlow.wordpress.com/36/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nelsonbarlow.wordpress.com&amp;blog=5103862&amp;post=36&amp;subd=nelsonbarlow&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nelsonbarlow.wordpress.com/2009/01/25/podcasts-to-keep-an-eye-on-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/56ad75703d3202f6b1184f1e3cc96206?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nelsonbarlow</media:title>
		</media:content>
	</item>
		<item>
		<title>HOWTO: Creating Test Units in Visual Studio 2008</title>
		<link>http://nelsonbarlow.wordpress.com/2008/10/21/howto-creating-test-units-in-visual-studio-2008/</link>
		<comments>http://nelsonbarlow.wordpress.com/2008/10/21/howto-creating-test-units-in-visual-studio-2008/#comments</comments>
		<pubDate>Wed, 22 Oct 2008 00:36:06 +0000</pubDate>
		<dc:creator>nelsonbarlow</dc:creator>
				<category><![CDATA[HOWTO]]></category>
		<category><![CDATA[test units]]></category>
		<category><![CDATA[vs2008]]></category>

		<guid isPermaLink="false">http://nelsonbarlow.wordpress.com/?p=23</guid>
		<description><![CDATA[Today I attended a workshop on Visual Studio Team System 2008 at Microsoft&#8217;s official headquarter in my hometown Recife, Brazil. One of the key aspects as a developer that I believe I don&#8217;t do a lot of is testing the application. One of the features that Igor Abade showed us was the Test Unit. It [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nelsonbarlow.wordpress.com&amp;blog=5103862&amp;post=23&amp;subd=nelsonbarlow&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Today I attended a workshop on Visual Studio Team System 2008 at Microsoft&#8217;s official headquarter in my hometown Recife, Brazil. One of the key aspects as a developer that I believe I don&#8217;t do a lot of is testing the application.</p>
<p>One of the features that <a href="http://igoravl.spaces.live.com/" target="_blank">Igor </a><a href="http://igoravl.spaces.live.com/" target="_blank">Abade</a> showed us was the <strong>Test Unit</strong>. It immediately became clear to me how this could be applied in my work environment and how it could eventually become a common practice in my company. Important features could have test units associated and prevent a meltdown when another feature is added or modified.</p>
<p>Check out the step-by-step guide after the break! </p>
<p><span id="more-23"></span></p>
<p>Now the first thing to realize about this feature, is that it&#8217;s not available with all versions of visual studio. In fact, it is only available for the Team System version which is the more complete. There are <a href="http://www.theserverside.net/news/thread.tss?thread_id=26605" target="_blank">several debates</a> and even a <a href="http://www.peterprovost.org/blog/post/Unit-Testing-in-Visual-Studio-2005.aspx" target="_blank">petition </a>about whether or not Microsoft should include unit testing in all versions of visual studio. I will let you follow the links and make up your own mind.</p>
<p>In order to further understand the use of unit testing, I will &#8211; as I did in my other howto blog post- describe a brief problem and follow with a howto of how I solved the problem using unit testing.</p>
<p><strong>Problem:</strong></p>
<p>The following code illustrates a simple Account class in C# that follow these simple rules to calculate the account&#8217;s credit:</p>
<ul>
<li>If the balance of the account is smaller than or equal to $2,000 , the owner of the account will receive an immediate approval of 10% of it&#8217;s balance.</li>
<li>If the balance is greater than $2,000 , the account&#8217;s owner will receive 20% if the balance.</li>
<li>Additionally, if the owner has a premium account, he&#8217;ll receive $1,000 of extra credit.</li>
</ul>
<div>
<div id="attachment_25" class="wp-caption aligncenter" style="width: 460px"><a href="http://nelsonbarlow.files.wordpress.com/2008/10/14.jpg"><img class="size-full wp-image-25" title="1 Unit Test" src="http://nelsonbarlow.files.wordpress.com/2008/10/14.jpg?w=450&#038;h=357" alt="A simple C# function to calculate immediate Credit approval for a given account." width="450" height="357" /></a><p class="wp-caption-text">A simple C# function to calculate immediate Credit approval for a given account.</p></div>
</div>
<div>To protect this important feature from suffering alterations in the future that&#8217;ll keep it from working properly, you can create a test unit. This test unit can later be added to a build sequence that will keep the developer from deploying a version with a serious bug.</div>
<div>
<dl class="wp-caption aligncenter">
<dt class="wp-caption-dt"><a href="http://nelsonbarlow.files.wordpress.com/2008/10/21.jpg"><img class="size-full wp-image-26" title="2 Unit Tests" src="http://nelsonbarlow.files.wordpress.com/2008/10/21.jpg?w=450&#038;h=412" alt="Right Click on the Text Editor and select &quot;Create Unit Tests&quot;" width="450" height="412" /></a></dt>
<dd class="wp-caption-dd">Right Click on the Text Editor and select </dd>
</dl>
</div>
<div>
<div id="attachment_27" class="wp-caption aligncenter" style="width: 460px"><a href="http://nelsonbarlow.files.wordpress.com/2008/10/31.jpg"><img class="size-full wp-image-27" title="3 Unit Test" src="http://nelsonbarlow.files.wordpress.com/2008/10/31.jpg?w=450&#038;h=342" alt="A wizard will pop up in which you select exactly what you want to test. In the combobox below you can select in what .net language you wish the test to be in." width="450" height="342" /></a><p class="wp-caption-text">A wizard will pop up in which you select exactly what you want to test. In the combobox below you can select in what .net language you wish the test to be in.</p></div>
<div id="attachment_28" class="wp-caption aligncenter" style="width: 460px"><a href="http://nelsonbarlow.files.wordpress.com/2008/10/41.jpg"><img class="size-full wp-image-28" title="4 Unit Test" src="http://nelsonbarlow.files.wordpress.com/2008/10/41.jpg?w=450&#038;h=340" alt="Select the name of the project." width="450" height="340" /></a><p class="wp-caption-text">Select the name of the project.</p></div>
<div id="attachment_29" class="wp-caption aligncenter" style="width: 460px"><a href="http://nelsonbarlow.files.wordpress.com/2008/10/6.jpg"><img class="size-full wp-image-29 " title="6 Test Unit" src="http://nelsonbarlow.files.wordpress.com/2008/10/6.jpg?w=450&#038;h=342" alt="If you've chosen a shared type, you'll be asked if you want to Add the InternalsVisibleTo attribute. Click yes or you'll get compilation errors." width="450" height="342" /></a><p class="wp-caption-text">If you&#39;ve chosen a shared type, you&#39;ll be asked if you want to add the InternalsVisibleTrue attribute. If you don&#39;t you&#39;ll get compilation errors, so click YES.</p></div>
</div>
<div>
<div id="attachment_30" class="wp-caption aligncenter" style="width: 460px"><a href="http://nelsonbarlow.files.wordpress.com/2008/10/5.jpg"><img class="size-full wp-image-30 " title="5 Test Units" src="http://nelsonbarlow.files.wordpress.com/2008/10/5.jpg?w=450&#038;h=115" alt="Scroll down to the end of the Test file that automatically is set on your VS. Here you'll see a few lines of code marked with TODO. These are the lines of code you'll modify to create the test." width="450" height="115" /></a><p class="wp-caption-text">Scroll down to the end of the Test file that automatically is set on your VS. Here you&#39;ll see a few lines of code marked with TODO. These are the lines of code you&#39;ll modify to create the test.</p></div>
<div id="attachment_31" class="wp-caption aligncenter" style="width: 460px"><a href="http://nelsonbarlow.files.wordpress.com/2008/10/7.jpg"><img class="size-full wp-image-31" title="7 Test Unit" src="http://nelsonbarlow.files.wordpress.com/2008/10/7.jpg?w=450&#038;h=114" alt="Modify the value of the parameters with the desired input, and set the desired output in the expected variable." width="450" height="114" /></a><p class="wp-caption-text">Modify the value of the parameters with the desired input, and set the desired output in the expected variable.</p></div>
<div id="attachment_32" class="wp-caption aligncenter" style="width: 460px"><a href="http://nelsonbarlow.files.wordpress.com/2008/10/8.jpg"><img class="size-full wp-image-32 " title="8 Test Unit" src="http://nelsonbarlow.files.wordpress.com/2008/10/8.jpg?w=450&#038;h=34" alt="In my case, I have commented the last line of code. It can be use if you want to test for an inconclusive situation. In our case, we're going to pretend it's conclusive." width="450" height="34" /></a><p class="wp-caption-text">In my case, I have commented the last line of code. It can be use if you want to test for an inconclusive situation. In our case, we&#39;re going to pretend it&#39;s conclusive.</p></div>
<div id="attachment_34" class="wp-caption aligncenter" style="width: 460px"><a href="http://nelsonbarlow.files.wordpress.com/2008/10/91.jpg"><img class="size-full wp-image-34" title="9 Test Unit" src="http://nelsonbarlow.files.wordpress.com/2008/10/91.jpg?w=450&#038;h=248" alt="Last but not least, run the test and check if it passes. Try modifying the code and see what happens." width="450" height="248" /></a><p class="wp-caption-text">Last but not least, run the test and check if it passes. Try modifying the code and see what happens.</p></div>
</div>
<div></div>
<div>It&#8217;s as simple as that my friends. Feel free to leave a comment. In a later post I&#8217;ll talk about code coverage which is also a very important aspect of certifying the quality of the code and how visual studio helps you keep it well covered.</div>
<div></div>
<div></div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nelsonbarlow.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nelsonbarlow.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nelsonbarlow.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nelsonbarlow.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nelsonbarlow.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nelsonbarlow.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nelsonbarlow.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nelsonbarlow.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nelsonbarlow.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nelsonbarlow.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nelsonbarlow.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nelsonbarlow.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nelsonbarlow.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nelsonbarlow.wordpress.com/23/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nelsonbarlow.wordpress.com&amp;blog=5103862&amp;post=23&amp;subd=nelsonbarlow&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nelsonbarlow.wordpress.com/2008/10/21/howto-creating-test-units-in-visual-studio-2008/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/56ad75703d3202f6b1184f1e3cc96206?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nelsonbarlow</media:title>
		</media:content>

		<media:content url="http://nelsonbarlow.files.wordpress.com/2008/10/14.jpg" medium="image">
			<media:title type="html">1 Unit Test</media:title>
		</media:content>

		<media:content url="http://nelsonbarlow.files.wordpress.com/2008/10/21.jpg" medium="image">
			<media:title type="html">2 Unit Tests</media:title>
		</media:content>

		<media:content url="http://nelsonbarlow.files.wordpress.com/2008/10/31.jpg" medium="image">
			<media:title type="html">3 Unit Test</media:title>
		</media:content>

		<media:content url="http://nelsonbarlow.files.wordpress.com/2008/10/41.jpg" medium="image">
			<media:title type="html">4 Unit Test</media:title>
		</media:content>

		<media:content url="http://nelsonbarlow.files.wordpress.com/2008/10/6.jpg" medium="image">
			<media:title type="html">6 Test Unit</media:title>
		</media:content>

		<media:content url="http://nelsonbarlow.files.wordpress.com/2008/10/5.jpg" medium="image">
			<media:title type="html">5 Test Units</media:title>
		</media:content>

		<media:content url="http://nelsonbarlow.files.wordpress.com/2008/10/7.jpg" medium="image">
			<media:title type="html">7 Test Unit</media:title>
		</media:content>

		<media:content url="http://nelsonbarlow.files.wordpress.com/2008/10/8.jpg" medium="image">
			<media:title type="html">8 Test Unit</media:title>
		</media:content>

		<media:content url="http://nelsonbarlow.files.wordpress.com/2008/10/91.jpg" medium="image">
			<media:title type="html">9 Test Unit</media:title>
		</media:content>
	</item>
		<item>
		<title>Links to keep an eye on #2</title>
		<link>http://nelsonbarlow.wordpress.com/2008/10/15/links-to-keep-an-eye-on-2/</link>
		<comments>http://nelsonbarlow.wordpress.com/2008/10/15/links-to-keep-an-eye-on-2/#comments</comments>
		<pubDate>Wed, 15 Oct 2008 11:29:12 +0000</pubDate>
		<dc:creator>nelsonbarlow</dc:creator>
				<category><![CDATA[blogs]]></category>
		<category><![CDATA[links]]></category>
		<category><![CDATA[vs2008]]></category>

		<guid isPermaLink="false">http://nelsonbarlow.wordpress.com/?p=20</guid>
		<description><![CDATA[Hey everyone, This is a quick post just to emphasize a cool blog that I&#8217;ve come across this week. Sara Ford&#8217;s blog is about cool features and tweaks to Visual Studio to make it work for you. I&#8217;ve included it in my RSS reader and will most definitely be keeping an eye on it. That&#8217;s [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nelsonbarlow.wordpress.com&amp;blog=5103862&amp;post=20&amp;subd=nelsonbarlow&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hey everyone,</p>
<p>This is a quick post just to emphasize a cool blog that I&#8217;ve come across this week. <a href="http://blogs.msdn.com/saraford/" target="_blank">Sara Ford&#8217;s blog</a> is about cool features and tweaks to Visual Studio to make it work for you. I&#8217;ve included it in my RSS reader and will most definitely be keeping an eye on it.</p>
<p>That&#8217;s it for now.</p>
<p>Please comment if you feel inclined. <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nelsonbarlow.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nelsonbarlow.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nelsonbarlow.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nelsonbarlow.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nelsonbarlow.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nelsonbarlow.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nelsonbarlow.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nelsonbarlow.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nelsonbarlow.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nelsonbarlow.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nelsonbarlow.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nelsonbarlow.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nelsonbarlow.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nelsonbarlow.wordpress.com/20/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nelsonbarlow.wordpress.com&amp;blog=5103862&amp;post=20&amp;subd=nelsonbarlow&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nelsonbarlow.wordpress.com/2008/10/15/links-to-keep-an-eye-on-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/56ad75703d3202f6b1184f1e3cc96206?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nelsonbarlow</media:title>
		</media:content>
	</item>
		<item>
		<title>HOWTO: Create Templates in Visual Studio 2008</title>
		<link>http://nelsonbarlow.wordpress.com/2008/10/11/howto-create-templates-in-visual-studio-2008/</link>
		<comments>http://nelsonbarlow.wordpress.com/2008/10/11/howto-create-templates-in-visual-studio-2008/#comments</comments>
		<pubDate>Sat, 11 Oct 2008 18:47:24 +0000</pubDate>
		<dc:creator>nelsonbarlow</dc:creator>
				<category><![CDATA[HOWTO]]></category>
		<category><![CDATA[vs2008]]></category>

		<guid isPermaLink="false">http://nelsonbarlow.wordpress.com/?p=6</guid>
		<description><![CDATA[There are so many features to VS2008 that a beginner might feel overwhelmed and stick to those features that they already know and love. Sticking to what you know is important, but searching and learning might result in productivity gains that&#8217;ll keep you ahead. Despite working with VS for some time, I always have the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nelsonbarlow.wordpress.com&amp;blog=5103862&amp;post=6&amp;subd=nelsonbarlow&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>There are so many features to VS2008 that a beginner might feel overwhelmed and stick to those features that they already know and love. Sticking to what you know is important, but searching and learning might result in productivity gains that&#8217;ll keep you ahead. Despite working with VS for some time, I always have the feeling that features that I miss are in there hidden somewhere in those numerous menus. </p>
<p>The discovery of custom templates was a pleasant surprise and further harnessed my curiosity in the other features in this IDE that I was missing out on. </p>
<p>For now, however, let&#8217;s stick to the Templates and how they might help you make Visual Studio a more friendly environment. </p>
<p>To understand the benefit we first have to understand the problem.</p>
<p><strong>Problem:</strong> Inserting a new project into a solution or a new item into a project may result in a series of repeated tasks that are time consuming and tedious. Sometimes the issue is even greater than the time taken but the lack of automation may result in items and projects with different configurations and a lack of standard.</p>
<p><strong>Real-Life Situation: </strong>In my workplace, we have two customized windows forms called RecordBase and FormBase. Virtually every window in our solutions inherit from these two winforms. As simple as it may seem to go into the Designer file and changing the Inherits statement, some people believe very strongly that you shouldn&#8217;t mess with the designer file and end up commenting the Inherits in that file and including the Inherits statement in the VB file.</p>
<p>Creating a template is as easy as doing what you&#8217;ve done a thousand times -inserting a project or an item and customizing it to your needs- and following a wizard.</p>
<p>So, to create a template for the afore mentioned real-life situation you would do the following:</p>
<p style="padding-left:30px;">1. Insert the item to the project and customize it as you would. In my case, switch the inherits in the designer file to a custom inherits.</p>
<p style="padding-left:30px;">2. Go to File &#8211; &gt; Export Template</p>
<div style="padding-left:30px;">
<div id="attachment_10" class="wp-caption aligncenter" style="width: 460px"><a href="http://nelsonbarlow.files.wordpress.com/2008/10/12.jpg"><img class="size-full wp-image-10" title="1st Screen in Export Template Wizard" src="http://nelsonbarlow.files.wordpress.com/2008/10/12.jpg?w=450&#038;h=397" alt="Choose the type of template you want to create and from which project." width="450" height="397" /></a><p class="wp-caption-text">Choose the type of template you want to create and from which project.</p></div>
</div>
<div style="padding-left:30px;">3.   </p>
<div id="attachment_8" class="wp-caption aligncenter" style="width: 460px"><a href="http://nelsonbarlow.files.wordpress.com/2008/10/2.jpg"><img class="size-full wp-image-8 " title="2nd Screen in Export Template Wizard" src="http://nelsonbarlow.files.wordpress.com/2008/10/2.jpg?w=450&#038;h=397" alt="If you've chosen an Item Template, choose the Item that you want to create a template for." width="450" height="397" /></a><p class="wp-caption-text">If you&#39;ve chosen an Item Template, you&#39;ll select the item that you want to create a template for in this screen.</p></div>
</div>
<div style="padding-left:30px;">4.</div>
<div style="padding-left:30px;">
<div id="attachment_11" class="wp-caption aligncenter" style="width: 460px"><a href="http://nelsonbarlow.files.wordpress.com/2008/10/3.jpg"><img class="size-full wp-image-11 " title="3rd Screen in Exporting Template Wizard." src="http://nelsonbarlow.files.wordpress.com/2008/10/3.jpg?w=450&#038;h=396" alt="If you've chosen Item Template, you'll select all the references related to the Item you've selected." width="450" height="396" /></a><p class="wp-caption-text">If you&#39;ve chosen the Item Template, you can choose references that need to be included whenever this specific Item is inserted.</p></div>
</div>
<div style="padding-left:30px;">5. </div>
<div style="padding-left:30px;">
<div id="attachment_12" class="wp-caption aligncenter" style="width: 460px"><a href="http://nelsonbarlow.files.wordpress.com/2008/10/4.jpg"><img class="size-full wp-image-12 " title="4th Export Template Wizard screen" src="http://nelsonbarlow.files.wordpress.com/2008/10/4.jpg?w=450&#038;h=398" alt="Last but not least, you'll choose a name for the template, an Icon and include a simple description about it." width="450" height="398" /></a><p class="wp-caption-text">Last but not least, you&#39;ll include a name for the template, an Icon and a simple description.</p></div>
</div>
<div style="padding-left:30px;">6. THAT&#8217;S IT! I bet you didn&#8217;t think that it would be so simple am I right?</div>
<div style="padding-left:30px;"><strong>Extra tip: </strong>If you want to share the templates you created, just go into the following directory:</div>
<div style="padding-left:30px;">\My Documents\Visual Studio 2008\Templates\</div>
<div style="padding-left:30px;">Copy the zip files and send them to your colleagues. Once they&#8217;ve stored the files in the same location above, VS2008 will do the rest and automatically import the templates.</div>
<div style="padding-left:30px;"></div>
<div style="padding-left:30px;"></div>
<div><strong>For more advanced information visit:</strong> <a href="http://msdn.microsoft.com/en-us/library/6db0hwky.aspx" target="_blank">http://msdn.microsoft.com/en-us/library/6db0hwky.aspx</a></div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nelsonbarlow.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nelsonbarlow.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nelsonbarlow.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nelsonbarlow.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nelsonbarlow.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nelsonbarlow.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nelsonbarlow.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nelsonbarlow.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nelsonbarlow.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nelsonbarlow.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nelsonbarlow.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nelsonbarlow.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nelsonbarlow.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nelsonbarlow.wordpress.com/6/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nelsonbarlow.wordpress.com&amp;blog=5103862&amp;post=6&amp;subd=nelsonbarlow&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nelsonbarlow.wordpress.com/2008/10/11/howto-create-templates-in-visual-studio-2008/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/56ad75703d3202f6b1184f1e3cc96206?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nelsonbarlow</media:title>
		</media:content>

		<media:content url="http://nelsonbarlow.files.wordpress.com/2008/10/12.jpg" medium="image">
			<media:title type="html">1st Screen in Export Template Wizard</media:title>
		</media:content>

		<media:content url="http://nelsonbarlow.files.wordpress.com/2008/10/2.jpg" medium="image">
			<media:title type="html">2nd Screen in Export Template Wizard</media:title>
		</media:content>

		<media:content url="http://nelsonbarlow.files.wordpress.com/2008/10/3.jpg" medium="image">
			<media:title type="html">3rd Screen in Exporting Template Wizard.</media:title>
		</media:content>

		<media:content url="http://nelsonbarlow.files.wordpress.com/2008/10/4.jpg" medium="image">
			<media:title type="html">4th Export Template Wizard screen</media:title>
		</media:content>
	</item>
		<item>
		<title>Links to keep an eye on</title>
		<link>http://nelsonbarlow.wordpress.com/2008/10/07/links-to-keep-an-eye-on/</link>
		<comments>http://nelsonbarlow.wordpress.com/2008/10/07/links-to-keep-an-eye-on/#comments</comments>
		<pubDate>Tue, 07 Oct 2008 23:29:26 +0000</pubDate>
		<dc:creator>nelsonbarlow</dc:creator>
				<category><![CDATA[blogs]]></category>

		<guid isPermaLink="false">http://nelsonbarlow.wordpress.com/?p=4</guid>
		<description><![CDATA[Hello fellow developers, This is my first post and as I don&#8217;t like being clichée, I&#8217;ll not bore you with a &#8220;Hello, world&#8221; title. Instead, I&#8217;ll give you some two interesting blogs that keep my software developer neurons happy whenever there&#8217;s a new post. Please feel free to post in the comment section your own [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nelsonbarlow.wordpress.com&amp;blog=5103862&amp;post=4&amp;subd=nelsonbarlow&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hello fellow developers,</p>
<p>This is my first post and as I don&#8217;t like being clichée, I&#8217;ll not bore you with a &#8220;Hello, world&#8221; title. Instead, I&#8217;ll give you some two interesting blogs that keep my software developer neurons happy whenever there&#8217;s a new post. Please feel free to post in the comment section your own blog or any interesting blogs that you follow. </p>
<p><a title="Is This Thing On?" href="http://blogs.msdn.com/zainnab/" target="_blank">Is This Thing On?</a>  : A great .NET blog by a Microsoft insider.</p>
<p><a title="Coding Horror" href="http://www.codinghorror.com/" target="_blank">Coding Horror</a> : Not really a .NET or SQL Server blog but a more general blog that every developer should read for the curious insights.</p>
<p> </p>
<h2></h2>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nelsonbarlow.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nelsonbarlow.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nelsonbarlow.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nelsonbarlow.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nelsonbarlow.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nelsonbarlow.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nelsonbarlow.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nelsonbarlow.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nelsonbarlow.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nelsonbarlow.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nelsonbarlow.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nelsonbarlow.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nelsonbarlow.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nelsonbarlow.wordpress.com/4/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nelsonbarlow.wordpress.com&amp;blog=5103862&amp;post=4&amp;subd=nelsonbarlow&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nelsonbarlow.wordpress.com/2008/10/07/links-to-keep-an-eye-on/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/56ad75703d3202f6b1184f1e3cc96206?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nelsonbarlow</media:title>
		</media:content>
	</item>
	</channel>
</rss>
