<?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>Dan Rigsby - Coding Up Style &#187; Agile Development</title>
	<atom:link href="http://www.danrigsby.com/blog/index.php/category/agile-development/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.danrigsby.com/blog</link>
	<description>Developer.Speaker.Blogger</description>
	<lastBuildDate>Tue, 17 Nov 2009 18:29:29 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>C# Coding Standards</title>
		<link>http://www.danrigsby.com/blog/index.php/2006/08/16/c-coding-standards/</link>
		<comments>http://www.danrigsby.com/blog/index.php/2006/08/16/c-coding-standards/#comments</comments>
		<pubDate>Wed, 16 Aug 2006 17:57:00 +0000</pubDate>
		<dc:creator>Dan Rigsby</dc:creator>
				<category><![CDATA[Agile Development]]></category>
		<category><![CDATA[C#]]></category>

		<guid isPermaLink="false">http://www.danrigsby.com/wordpress/?p=20</guid>
		<description><![CDATA[Coding standards have consistantly been a source of pain for developers.  Many are reluctant to accept them because they feel that the way the program is just fine.  However when working in a agile environment or an environment where developers work on each other&#8217;s code, the need for standards becomes more evident.  [...]]]></description>
			<content:encoded><![CDATA[<p>Coding standards have consistantly been a source of pain for developers.  Many are reluctant to accept them because they feel that the way the program is just fine.  However when working in a agile environment or an environment where developers work on each other&#8217;s code, the need for standards becomes more evident.  Money and time can be saved if any develper can quickly navigate code, figure out what is going on, and fix bugs.</p>
<p>On my team here at <a href="http://www.inin.com">Interactive Intelligence</a> we adopting more and more agile processes.  A few months back I took it upon myself to come up with a standards document for our own coding.  Everything we do is in C# so I naturally looked for what other people had put together and what Microsoft recommends.  The overall goal was not only to make it easy to work on each other&#8217;s code more easily, but also to be able to pick up code snippets and samples from Microsoft and other parties and follow along.  The end result has been the <a href="http://cid-d3bfaabcce6eb363.skydrive.live.com/self.aspx/Public/c%7C3codingstandards.doc">C# Coding Standards</a>.  This document is ever evolving as do most documents of this kind.  It not only contains syntax suggestions, but also makes some developement recommendations.</p>
<p>Two of the biggest arguements about the standards doc are the use of tabs over spaces, and the prefix &#8220;m_&#8221; for private properties.  At this time we prefer tabs as they are a symbol used to represent indention vs. other white spaces.  As long as everyone follows the standards and sets all tabs to 4 spaces, then almost all of the benifets of using spaces become void.  We prefer the prefix &#8220;m_&#8221; private properties because <a href="http://msdn2.microsoft.com/en-us/library/730f1wy3.aspx">CLS compliance</a> clearly states that variables can <a href="http://msdn2.microsoft.com/en-us/library/12a7a7h3.aspx">differ by no more than casing</a>, using &#8220;camal case for private and pascal case for everything else&#8221; is not an option.  The use of just a &#8220;_&#8221; prefix also <a href="http://msdn2.microsoft.com/en-us/library/y9a1wfdd(VS.71).aspx">isn&#8217;t CLS complaint</a>.</p>
<p><strong>Download: </strong><a href="http://www.danrigsby.com/Files/csharpcodingstandards.doc"><strong>C# Coding Standards</strong></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.danrigsby.com/blog/index.php/2006/08/16/c-coding-standards/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

