<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>A Brief History Of C# Style</title><link>http://blogs.msdn.com/sourceanalysis/archive/2008/05/25/a-difference-of-style.aspx</link><description>A number of astute developers have noted that the C# code style enforced by Microsoft StyleCop differs in some ways from the style typically seen in sample code coming from the Microsoft Developer Division. For example, the very fine book Framework Design</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: A Brief History Of C# Style</title><link>http://blogs.msdn.com/sourceanalysis/archive/2008/05/25/a-difference-of-style.aspx#8550916</link><pubDate>Sun, 25 May 2008 15:19:32 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8550916</guid><dc:creator>Tom</dc:creator><description>&lt;p&gt;I am grateful that Microsoft has released this tool, however, I am not grateful that, in it's default configuration, it promulgates overuse of &amp;quot;this.&amp;quot; &amp;nbsp;I haven't been able to find a good justification for this, I haven't come across any C# books advocating this style, and I personally believe that adding &amp;quot;this.&amp;quot; everywhere clutters the code and is unnecessary.&lt;/p&gt;
&lt;p&gt;After all, we all by now know that we are writing classes, and that classes have fields, properties, and methods that are in scope without derefencing an object reference or pointer. &amp;nbsp;By insisting that &amp;quot;this.&amp;quot; prefix all these references, it is a step backwards towards C style (pre classes).&lt;/p&gt;</description></item><item><title>re: A Brief History Of C# Style</title><link>http://blogs.msdn.com/sourceanalysis/archive/2008/05/25/a-difference-of-style.aspx#8551036</link><pubDate>Sun, 25 May 2008 18:09:20 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8551036</guid><dc:creator>Johnnylightbulb</dc:creator><description>&lt;P&gt;Thanks for the background - I wasn't aware this was an 'on-going battle' within Microsoft. Btw the tool is really awesome and will definitely become part of our process.&lt;/P&gt;</description></item><item><title>re: A Brief History Of C# Style</title><link>http://blogs.msdn.com/sourceanalysis/archive/2008/05/25/a-difference-of-style.aspx#8551213</link><pubDate>Sun, 25 May 2008 20:44:53 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8551213</guid><dc:creator>Jeremy Gray</dc:creator><description>&lt;p&gt;Thanks for the brief recap, which confirms what I've often heard out of softies over the years. Sadly, it also confirms the exact moment I stopped paying attention to many MSFT coding guidelines, that being the moment when the &amp;quot;this.&amp;quot; craze took a single character discriminator and turned it into a five character source of density-increasing noise that offers zero increased utility over a single underscore. For lack of a better way of phrasing it on this muggy morning: epic fail.&lt;/p&gt;</description></item><item><title>re: A Brief History Of C# Style</title><link>http://blogs.msdn.com/sourceanalysis/archive/2008/05/25/a-difference-of-style.aspx#8551383</link><pubDate>Sun, 25 May 2008 22:38:02 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8551383</guid><dc:creator>W. Kevin Hazzard</dc:creator><description>&lt;p&gt;It's interesting that ReSharper discourages superfluous use of the this reference while StyleCop encourages it. The MSIL generated by the C# compiler is the same in both cases so one can't argue that it's much more than a style choice. Personally, I like using the this reference to make it perfectly clear to new readers of the code. Then again, the m_ prefix has the same effect. And it's arguable that the s_ prefix for static members fields used by some C++ shops is even more descriptive. All in all, having a standard and enforcing it is what's important.&lt;/p&gt;</description></item><item><title>re: A Brief History Of C# Style</title><link>http://blogs.msdn.com/sourceanalysis/archive/2008/05/25/a-difference-of-style.aspx#8551694</link><pubDate>Mon, 26 May 2008 03:56:09 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8551694</guid><dc:creator>Claude Baillargeon</dc:creator><description>&lt;p&gt;Could we expect a source analysis for VB .Net ?&lt;/p&gt;</description></item><item><title>re: A Brief History Of C# Style</title><link>http://blogs.msdn.com/sourceanalysis/archive/2008/05/25/a-difference-of-style.aspx#8552423</link><pubDate>Mon, 26 May 2008 16:48:14 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8552423</guid><dc:creator>Patrick Smacchia</dc:creator><description>&lt;p&gt;&amp;gt; All in all, having a standard and enforcing it is what's important.&lt;/p&gt;
&lt;p&gt;... and that is why it is important to be able to write seamlessly custom rules. This 'this.' debate underline the fact that not everybody wish to have the same rule.&lt;/p&gt;
&lt;p&gt;With NDepend, enforcing the m_ and s_ prefix is as easy as writing these 2 conventions:&lt;/p&gt;
&lt;p&gt;WARN IF Count &amp;gt; 0 IN SELECT FIELDS WHERE !NameLike &amp;quot;^s_&amp;quot; AND IsStatic &lt;/p&gt;
&lt;p&gt;WARN IF Count &amp;gt; 0 IN SELECT FIELDS WHERE !NameLike &amp;quot;^m_&amp;quot; AND !IsStatic &lt;/p&gt;</description></item><item><title>re: A Brief History Of C# Style</title><link>http://blogs.msdn.com/sourceanalysis/archive/2008/05/25/a-difference-of-style.aspx#8553709</link><pubDate>Tue, 27 May 2008 03:43:48 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8553709</guid><dc:creator>James</dc:creator><description>&lt;p&gt;In my own code, I'm pretty big on using &amp;quot;m_&amp;quot; and &amp;quot;s_&amp;quot;. I tried to use &amp;quot;this&amp;quot; for a while, but I would usually forget to type it. Now that I have this tool to play with, I think I'll give it another go.&lt;/p&gt;</description></item><item><title>What is the value of "this"? (or _ or m_ or s_?)</title><link>http://blogs.msdn.com/sourceanalysis/archive/2008/05/25/a-difference-of-style.aspx#8555852</link><pubDate>Wed, 28 May 2008 06:17:57 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8555852</guid><dc:creator>Dave Cameron</dc:creator><description>&lt;p&gt;Are &amp;quot;this&amp;quot;, &amp;quot;_&amp;quot;, &amp;quot;m_&amp;quot; and &amp;quot;s_&amp;quot; only about explicitly repeating the scope of the variable? &lt;/p&gt;
&lt;p&gt;I realize it's a preference thing, but I'm curious about why people prefer it.&lt;/p&gt;</description></item><item><title>re: A Brief History Of C# Style</title><link>http://blogs.msdn.com/sourceanalysis/archive/2008/05/25/a-difference-of-style.aspx#8556172</link><pubDate>Wed, 28 May 2008 09:57:30 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8556172</guid><dc:creator>andrei</dc:creator><description>&lt;p&gt;&amp;quot;I realize it's a preference thing, but I'm curious about why people prefer it.&amp;quot;&lt;/p&gt;
&lt;p&gt;It takes about 2 seconds to determine the scope of a variable used in a method without the 'm_'. With it, it's instantaneous. &lt;/p&gt;</description></item><item><title>re: A Brief History Of C# Style</title><link>http://blogs.msdn.com/sourceanalysis/archive/2008/05/25/a-difference-of-style.aspx#8556378</link><pubDate>Wed, 28 May 2008 12:42:06 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8556378</guid><dc:creator>David Regan</dc:creator><description>&lt;p&gt;I've used stylecop on projects when working for Microsoft and its value is clear however I personally found it a little too picky. For example, the enforced ordering of constructors, properties, methods in a source file as determined by their accessibility is difficult to get right without considerable thought.&lt;/p&gt;
&lt;p&gt;Because the tool just tells you that your source is wrong rather than fixing the problem means that developing code is slowed down and some of the joy of cutting code is taken away.&lt;/p&gt;
&lt;p&gt;Consequently, on projects that I've led outside of Microsoft I've preferred the approach of using Resharper amd defining a common project style used by all the projects. The advantages are that reshaper's warning are very well integerated into VStudio and most importantly the Ctrl-Alt-F key stroke rewrites the source according to the style.&lt;/p&gt;
&lt;p&gt;The disadvantages are: the style are not as rigourous (the aforementioned ordering) and the build doesn't fail for the warnings.&lt;/p&gt;</description></item><item><title>re: A Brief History Of C# Style</title><link>http://blogs.msdn.com/sourceanalysis/archive/2008/05/25/a-difference-of-style.aspx#8556527</link><pubDate>Wed, 28 May 2008 16:25:58 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8556527</guid><dc:creator>Tom</dc:creator><description>&lt;p&gt;I find it ironic that Microsoft, on the one hand discourages the use of prefixes to denote class members (e.g., '_', &amp;quot;m_&amp;quot;, etc.) but then advocates &amp;quot;this.&amp;quot; as a prefix. &amp;nbsp;How is &amp;quot;this.&amp;quot; any different than &amp;quot;m_&amp;quot;?&lt;/p&gt;</description></item><item><title>re: A Brief History Of C# Style</title><link>http://blogs.msdn.com/sourceanalysis/archive/2008/05/25/a-difference-of-style.aspx#8557004</link><pubDate>Thu, 29 May 2008 00:59:28 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8557004</guid><dc:creator>Ricky</dc:creator><description>&lt;p&gt;Why StyleCop is suggesting to put using statement under the namespace block?&lt;/p&gt;
&lt;p&gt;Is that just a style to write or it has some differences?&lt;/p&gt;
&lt;p&gt;If the difference is just to make using statements available for that namespace and class with-in only then I am not convinced to use this style because the another suggestion says that we should have only one class in a file.&lt;/p&gt;
&lt;p&gt;So what is the catch here?&lt;/p&gt;</description></item><item><title>Microsoft Source Analysis for C# + ReSharper = Real-time Source Analysis</title><link>http://blogs.msdn.com/sourceanalysis/archive/2008/05/25/a-difference-of-style.aspx#8558176</link><pubDate>Thu, 29 May 2008 15:57:34 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8558176</guid><dc:creator>Howard van Rooijen's Blog</dc:creator><description>&lt;p&gt;I've worked on a couple of projects for Microsoft UK - one of the many great aspects of those projects&lt;/p&gt;
</description></item><item><title>Interesting Finds: 2008.05.31</title><link>http://blogs.msdn.com/sourceanalysis/archive/2008/05/25/a-difference-of-style.aspx#8565804</link><pubDate>Sat, 31 May 2008 09:25:19 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8565804</guid><dc:creator>gOODiDEA.NET</dc:creator><description>&lt;p&gt;.NET A Brief History Of C# Style Writing your own rules for Microsoft Source Analysis for C# Checking&lt;/p&gt;
</description></item><item><title>re: A Brief History Of C# Style</title><link>http://blogs.msdn.com/sourceanalysis/archive/2008/05/25/a-difference-of-style.aspx#8566689</link><pubDate>Sat, 31 May 2008 17:32:10 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8566689</guid><dc:creator>Andrew</dc:creator><description>&lt;p&gt;I tend to use the underscore (_name) to indicate that its a backing variable for a property, while a private or local variable would just start with lower case (name). &lt;/p&gt;
&lt;p&gt;Its meant to communicate the fact that you &amp;nbsp;should not use _name to except through the property.&lt;/p&gt;</description></item><item><title>Source Analysis for T-SQL perchance?</title><link>http://blogs.msdn.com/sourceanalysis/archive/2008/05/25/a-difference-of-style.aspx#8570371</link><pubDate>Tue, 03 Jun 2008 00:54:39 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8570371</guid><dc:creator>SSIS Junkie</dc:creator><description>&lt;p&gt;My learned colleague Howard van Rooijen recently blogged about the new release of Microsoft Source Analysis&lt;/p&gt;
</description></item><item><title>re: A Brief History Of C# Style</title><link>http://blogs.msdn.com/sourceanalysis/archive/2008/05/25/a-difference-of-style.aspx#8577218</link><pubDate>Fri, 06 Jun 2008 11:14:30 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8577218</guid><dc:creator>RichB</dc:creator><description>&lt;p&gt;&amp;gt; the CLR team began writing the first version &lt;/p&gt;
&lt;p&gt;&amp;gt; of the .Net Framework. Most of this code was &lt;/p&gt;
&lt;p&gt;&amp;gt; written in C#. This was the first production &lt;/p&gt;
&lt;p&gt;&amp;gt; C# code written anywhere in the world&lt;/p&gt;
&lt;p&gt;Peter Hallam (one of the original designers of C#) says that WinForms was the original consumer of the C# language, not the BCL. See:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://wm.microsoft.com/ms/msdn/visualcsharp/peter_hallam_2006_11/PeterHallam01.wmv"&gt;http://wm.microsoft.com/ms/msdn/visualcsharp/peter_hallam_2006_11/PeterHallam01.wmv&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Therefore, the .Net BCL was either written after WinForms (unlikely as WinForms was ported from WFC December 1999), or was written in the C-dialect SMC and later ported to C# much like ASP.Net was originally SMC.&lt;/p&gt;
&lt;p&gt;On an unrelated note, could you give us an idea of which teams within Microsoft are using StyleCop? My understanding is that it is only the MCS teams.&lt;/p&gt;</description></item><item><title>re: A Brief History Of C# Style</title><link>http://blogs.msdn.com/sourceanalysis/archive/2008/05/25/a-difference-of-style.aspx#8578131</link><pubDate>Fri, 06 Jun 2008 18:05:55 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8578131</guid><dc:creator>Chuck Snyder</dc:creator><description>&lt;p&gt;I'll ask too, any chance for this to come out for VB????&lt;/p&gt;</description></item><item><title>re: A Brief History Of C# Style</title><link>http://blogs.msdn.com/sourceanalysis/archive/2008/05/25/a-difference-of-style.aspx#8589800</link><pubDate>Tue, 10 Jun 2008 14:57:43 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8589800</guid><dc:creator>John Saunders</dc:creator><description>&lt;p&gt;As several comments here have indicated, style is a matter of preference. While I agree that a given Development organization needs to have a single set of style preferences enforced, I'm afraid I can't agree on having the Microsoft style preferences enforced on my organization.&lt;/p&gt;
&lt;p&gt;The lack of configurability makes this tool a non-starter for us.&lt;/p&gt;
&lt;p&gt;John&lt;/p&gt;</description></item><item><title>re: A Brief History Of C# Style</title><link>http://blogs.msdn.com/sourceanalysis/archive/2008/05/25/a-difference-of-style.aspx#8625076</link><pubDate>Fri, 20 Jun 2008 11:52:10 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8625076</guid><dc:creator>chocho</dc:creator><description>&lt;p&gt;Since it is agreed that a prefix to distinguish scope is needed why not save yourself typing and reading and use the shortest? &lt;/p&gt;
&lt;p&gt;&amp;quot;this.&amp;quot; is too much trouble. &amp;quot;m_&amp;quot; underscode will lead to carpal syndrome. just use &amp;quot;m&amp;quot;! and I'm not a C++ programmer :)&lt;/p&gt;</description></item><item><title>re: A Brief History Of C# Style</title><link>http://blogs.msdn.com/sourceanalysis/archive/2008/05/25/a-difference-of-style.aspx#8676996</link><pubDate>Tue, 01 Jul 2008 16:39:43 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8676996</guid><dc:creator>Kishore</dc:creator><description>&lt;p&gt;Where can I find StyleCop rules? If I had one, I can give it to my developers so that they can code accordingly. I know there will be slippages and there comes StyleCop handy. &lt;/p&gt;
&lt;p&gt;Thanks for the wonderful tool.&lt;/p&gt;
&lt;p&gt;Kishore&lt;/p&gt;</description></item><item><title>re: Why use "m_"</title><link>http://blogs.msdn.com/sourceanalysis/archive/2008/05/25/a-difference-of-style.aspx#8677599</link><pubDate>Tue, 01 Jul 2008 18:58:10 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8677599</guid><dc:creator>Bryan</dc:creator><description>&lt;p&gt;&amp;gt; Are &amp;quot;this&amp;quot;, &amp;quot;_&amp;quot;, &amp;quot;m_&amp;quot; and &amp;quot;s_&amp;quot; only about explicitly repeating the scope of the variable? &lt;/p&gt;
&lt;p&gt;Because the compiler won't give any messages on FuncA: &lt;/p&gt;
&lt;p&gt;class A&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;private int a = 0;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;public A()&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;a = 3;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;public int Value&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;get { return a; }&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;set { a = value; }&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;public int Func(int a)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return a*a;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;</description></item><item><title>re: A Brief History Of C# Style</title><link>http://blogs.msdn.com/sourceanalysis/archive/2008/05/25/a-difference-of-style.aspx#8681089</link><pubDate>Wed, 02 Jul 2008 13:58:22 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8681089</guid><dc:creator>santilajara</dc:creator><description>&lt;p&gt;It will be good to know to which extend this tool in its style rules has official support in Microsoft, and if will see them widely adopted in the source code shown by Microsoft in the future. If this is not the case, I think maybe it is not worth investing to adopt rules that break what we use to see in the code found in internet inside and outside Microsoft.&lt;/p&gt;</description></item><item><title>re: A Brief History Of C# Style</title><link>http://blogs.msdn.com/sourceanalysis/archive/2008/05/25/a-difference-of-style.aspx#8694973</link><pubDate>Sun, 06 Jul 2008 00:43:53 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8694973</guid><dc:creator>alwin</dc:creator><description>&lt;p&gt;&amp;quot;I tend to use the underscore (_name) to indicate that its a backing variable for a property, while a private or local variable would just start with lower case (name).&lt;/p&gt;
&lt;p&gt;Its meant to communicate the fact that you &amp;nbsp;should not use _name to except through the property.&amp;quot;&lt;/p&gt;
&lt;p&gt;Haha i do exactly the same! And here i was thinking i had an original idea...&lt;/p&gt;
&lt;p&gt;I used to do this. all the time, just for the intellisense. But since i got resharper i don't bother anymore.&lt;/p&gt;</description></item><item><title>re: A Brief History Of C# Style</title><link>http://blogs.msdn.com/sourceanalysis/archive/2008/05/25/a-difference-of-style.aspx#8721020</link><pubDate>Fri, 11 Jul 2008 14:34:41 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8721020</guid><dc:creator>Dennis C</dc:creator><description>&lt;p&gt;This tool is SO cool.. but most of our projects are web projects. Any ideas on making it work for those? Or suggestions for an alternate tool....??&lt;/p&gt;</description></item><item><title>re: A Brief History Of C# Style</title><link>http://blogs.msdn.com/sourceanalysis/archive/2008/05/25/a-difference-of-style.aspx#8721176</link><pubDate>Fri, 11 Jul 2008 16:04:24 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8721176</guid><dc:creator>jasonall</dc:creator><description>&lt;p&gt;Hi Dennis C. The tool should already support web projects. There were a couple of problems around this which will be fixed in 4.3. Perhaps you are hitting that?&lt;/p&gt;
</description></item><item><title>re: A Brief History Of C# Style</title><link>http://blogs.msdn.com/sourceanalysis/archive/2008/05/25/a-difference-of-style.aspx#8721594</link><pubDate>Fri, 11 Jul 2008 19:15:55 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8721594</guid><dc:creator>cdr</dc:creator><description>&lt;p&gt;When can we expect better documentation of the rules? The lack of documentation is the #1 problem with the project right now for me.&lt;/p&gt;</description></item><item><title>C# style conventions: more religious wars coming!</title><link>http://blogs.msdn.com/sourceanalysis/archive/2008/05/25/a-difference-of-style.aspx#8735452</link><pubDate>Wed, 16 Jul 2008 01:24:50 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8735452</guid><dc:creator>LA.NET [EN]</dc:creator><description>&lt;p&gt;Yes, it&amp;amp;#39;s one of those posts where you either agree or disagree completely :) Anyway, after having&lt;/p&gt;
</description></item><item><title>C# style conventions: more religious wars coming!</title><link>http://blogs.msdn.com/sourceanalysis/archive/2008/05/25/a-difference-of-style.aspx#8735674</link><pubDate>Wed, 16 Jul 2008 02:13:08 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8735674</guid><dc:creator>ASPInsiders</dc:creator><description>&lt;p&gt;Yes, it&amp;amp;#39;s one of those posts where you either agree or disagree completely :) Anyway, after having&lt;/p&gt;
</description></item><item><title>re: A Brief History Of C# Style</title><link>http://blogs.msdn.com/sourceanalysis/archive/2008/05/25/a-difference-of-style.aspx#8756036</link><pubDate>Sat, 19 Jul 2008 22:59:12 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8756036</guid><dc:creator>Christian Gross</dc:creator><description>&lt;p&gt;Ah yes, lets start the debate of where to put the curly brackets and where to put spaces...&lt;/p&gt;
&lt;p&gt;Lo and behold, you know I could use a tool like resharper and automatically reformat the code to how I like to see it... WOW...&lt;/p&gt;
&lt;p&gt;I use resharper and have to say its rules are actually very very good. They are both logical and not bothersome. They worry about things that need to be worried about. Maybe Microsoft should learn from Reshaper a bit?&lt;/p&gt;</description></item><item><title>re: A Brief History Of C# Style</title><link>http://blogs.msdn.com/sourceanalysis/archive/2008/05/25/a-difference-of-style.aspx#8837769</link><pubDate>Wed, 06 Aug 2008 18:17:54 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8837769</guid><dc:creator>martinmarv</dc:creator><description>&lt;p&gt;It sounds like this could be a useful tool, but more useful would be a set of industry-wide guidelines on coding-style. The difficulty is how to decide who wins on debates like m_, s_ and &amp;quot;this.&amp;quot;.&lt;/p&gt;
&lt;p&gt;There could take the form of an open forum, with discussions (like the one above) on contentious issues, and voting for the top options, with everyone agreeing to go for the democratically chosen choice, or at least having the democratic choice being a named-standard (e.g. The StyleCop Way). People can learn it, and either follow it, or know where they are differing.&lt;/p&gt;
&lt;p&gt;Just my 2 cents!&lt;/p&gt;</description></item><item><title>re: A Brief History Of C# Style</title><link>http://blogs.msdn.com/sourceanalysis/archive/2008/05/25/a-difference-of-style.aspx#8957539</link><pubDate>Thu, 18 Sep 2008 20:01:47 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8957539</guid><dc:creator>Kit</dc:creator><description>&lt;p&gt;Why is each developer looking at the same text? Something that lets me see it my way, and lets you see it your way is what we really need. Semantics, of course, should be preserved, and these should be subject to more important static analysis tools.&lt;/p&gt;</description></item><item><title>re: A Brief History Of C# Style</title><link>http://blogs.msdn.com/sourceanalysis/archive/2008/05/25/a-difference-of-style.aspx#8967747</link><pubDate>Sun, 28 Sep 2008 01:46:49 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8967747</guid><dc:creator>Jesper</dc:creator><description>&lt;p&gt;For at least 30 years a leading underscore has been discouraged in user code, for the simple reason that it was reserved for use by the C language implementors. I shake my head every time I see user code (in any language) where variables or (God forbid!) function names begin with an underscore. I guess you children are too young to have read Kernighan &amp;amp; Richie...&lt;/p&gt;
&lt;p&gt;One rule I've tried to follow is that identifiers should be readable in &amp;quot;plain English&amp;quot;. There are no words that I know of in the English language that begin with &amp;quot;m_&amp;quot; - this is a &amp;quot;wort&amp;quot;, on par with using Hungarian notation in object oriented code.&lt;/p&gt;
&lt;p&gt;The simplest solution (to me) is to use a trailing underscore on private identifiers. However, I have to admit that I also don't know of any words in the English language that ends in an underscore, but I can live with that...&lt;/p&gt;
&lt;p&gt;The only style I generally follow is consistent - and exactly the style I prefer and use, including many &amp;quot;standard&amp;quot; exceptions to the rules!&lt;/p&gt;</description></item><item><title>re: A Brief History Of C# Style</title><link>http://blogs.msdn.com/sourceanalysis/archive/2008/05/25/a-difference-of-style.aspx#8999348</link><pubDate>Tue, 14 Oct 2008 14:40:16 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8999348</guid><dc:creator>jasonall</dc:creator><description>&lt;p&gt;Please use the StyleCop Discussion Forum for further comments as it provides a better mechanism for tracking topics and follow-ups. &lt;/p&gt;
</description></item></channel></rss>