What do you want to see in the second edition of Framework Design Guidelines?http://blogs.msdn.com/b/codeanalysis/archive/2008/01/15/what-do-you-want-to-see-in-the-second-edition-of-framework-design-guidelines.aspxKrzysztof and Brad have announced they are working on the second edition of the awesome Framework Design Guidelines and are looking for feedback on what they should put in it.
For those that don't know, a lot of our Code Analysis rules are based onen-USTelligent Evolution Platform Developer Build (Build: 5.6.50428.7875)re: What do you want to see in the second edition of Framework Design Guidelines?http://blogs.msdn.com/b/codeanalysis/archive/2008/01/15/what-do-you-want-to-see-in-the-second-edition-of-framework-design-guidelines.aspx#8326580Thu, 20 Mar 2008 02:59:05 GMT91d46819-8472-40ad-a661-2c78acb4018c:8326580Erik Wynne Stepp<p>There are a lot of language changes in both C# 3.0 and VB9. &nbsp;Some of these new features are potentially confusing if abused and could led to difficult to maintain code. Even Anders Hejlsberg discourages developers from using some of them too liberally.</p>
<p>Some guidance on when it is good and appropriate to use these new features, and when it is discouraged would be useful.</p>
<div style="clear:both;"></div><img src="http://blogs.msdn.com/aggbug.aspx?PostID=8326580" width="1" height="1">re: What do you want to see in the second edition of Framework Design Guidelines?http://blogs.msdn.com/b/codeanalysis/archive/2008/01/15/what-do-you-want-to-see-in-the-second-edition-of-framework-design-guidelines.aspx#7938639Fri, 29 Feb 2008 03:25:06 GMT91d46819-8472-40ad-a661-2c78acb4018c:7938639Lee Campbell<p>My first comment would be:</p>
<p> &quot;the book plus the DVD was brilliant. Combined with FxCop I believe that my code (and anyone else who wishes to subscribe to the guidelines) is far more consistent, durable, secure and hopefully a touch better performing&quot;.</p>
<p>It would be nice to see if the teams responsible for emerging technologies such as WPF, WCF, LINQ, TPL etc provided rule sets for their technologies. It has taken me approximately 10 months to become sufficiently proficient in WPF to set in house standards which I have then attempted to translate in to our own WPF FxCop rules. I would be lot more at comfort if these rules came from some one from &quot;Redmond&quot; instead of my best effort.</p>
<div style="clear:both;"></div><img src="http://blogs.msdn.com/aggbug.aspx?PostID=7938639" width="1" height="1">re: What do you want to see in the second edition of Framework Design Guidelines?http://blogs.msdn.com/b/codeanalysis/archive/2008/01/15/what-do-you-want-to-see-in-the-second-edition-of-framework-design-guidelines.aspx#7142850Thu, 17 Jan 2008 21:46:55 GMT91d46819-8472-40ad-a661-2c78acb4018c:7142850Brad<p>Making your components friendly to logging and monitoring. &nbsp;I like to sprinkle my libraries with Trace writes via a designated TraceSwitch. &nbsp;If the client is interested in logging this information for diagnostics purposes, he can enable it from his config file. &nbsp;I've also been considering putting performance counters in my libraries (like Enterprise Library does). &nbsp;What would you have to say about this space?</p>
<p>Any guidance on libraries that have a configuration presence. &nbsp;Many of the libraries I write can be configured through the config file or programmatically. &nbsp;This can get confusing, though, if you expose a property through configuration, getter/setter, and perhaps even in a method argument. &nbsp;I build the configuration portion of my libraries using Enterprise Library so that developers can configure my libraries with the EntLib configuration tool. &nbsp;Smart or dumb?</p>
<p>Practical guidance on package, deploy, patching, versioning, and deprecation. &nbsp;I try to give the appearance of some professionalism to my components by packaging the binaries, source, and documentation in a single MSI (using WiX). &nbsp;In order to be quasi-backward compatible, every new release includes the binaries, source, and documentation of the previous releases--we only break with that tradition when we move to a new CLR version (like the move from .NET 1.1 to 2.0). &nbsp;For patches and bug fixes, we usually just push out a zip with the new binaries, but I'd like to into Windows Installer patching (MSPs) in the future. &nbsp;Any discussion in this area would be nice.</p>
<div style="clear:both;"></div><img src="http://blogs.msdn.com/aggbug.aspx?PostID=7142850" width="1" height="1">re: What do you want to see in the second edition of Framework Design Guidelines?http://blogs.msdn.com/b/codeanalysis/archive/2008/01/15/what-do-you-want-to-see-in-the-second-edition-of-framework-design-guidelines.aspx#7142218Thu, 17 Jan 2008 18:45:18 GMT91d46819-8472-40ad-a661-2c78acb4018c:7142218Gabriel Lozano-Moran<p>*Naming conventions for Unit Test methods</p>
<div style="clear:both;"></div><img src="http://blogs.msdn.com/aggbug.aspx?PostID=7142218" width="1" height="1">re: What do you want to see in the second edition of Framework Design Guidelines?http://blogs.msdn.com/b/codeanalysis/archive/2008/01/15/what-do-you-want-to-see-in-the-second-edition-of-framework-design-guidelines.aspx#7140458Thu, 17 Jan 2008 10:48:04 GMT91d46819-8472-40ad-a661-2c78acb4018c:7140458jomba<p>Please forget the vb .net developers :-)</p>
<div style="clear:both;"></div><img src="http://blogs.msdn.com/aggbug.aspx?PostID=7140458" width="1" height="1">VB.NET devshttp://blogs.msdn.com/b/codeanalysis/archive/2008/01/15/what-do-you-want-to-see-in-the-second-edition-of-framework-design-guidelines.aspx#7128128Wed, 16 Jan 2008 11:24:39 GMT91d46819-8472-40ad-a661-2c78acb4018c:7128128Marco<p>please don't forget the VB.NET developers ;-)</p>
<div style="clear:both;"></div><img src="http://blogs.msdn.com/aggbug.aspx?PostID=7128128" width="1" height="1">re: What do you want to see in the second edition of Framework Design Guidelines?http://blogs.msdn.com/b/codeanalysis/archive/2008/01/15/what-do-you-want-to-see-in-the-second-edition-of-framework-design-guidelines.aspx#7124598Wed, 16 Jan 2008 05:49:20 GMT91d46819-8472-40ad-a661-2c78acb4018c:7124598Lothan<p>I would like to see more consistency in the standards and fewer quotes that detract from the content. Quotes can add useful information to the primary content, but there were so many I questioned whether the purpose was to publish guidelines or to publish an open forum that questioned the validity and applicability of these guidelines.</p>
<p>As a result, I left the first edition sitting on the shelf of the bookstore and linked to &quot;Design Guidelines for Class Library Developers on MSDN (more meat, less sideline commentary).</p>
<p>For additional guidelines, I would like to see these areas covered:</p>
<p>* Clarify field naming conventions from parameter naming conventions when the guidelines result in name clashes. As an example, constructors often accept parameters that are simple assignments to private fields and these names often clash (e.g. this.firstName = firstName).</p>
<p>* When performing assignments to property-backed fields, is it preferable to assign the value to the field directly or to assign the value to the property and let the property assign the value to the field?</p>
<p>* If the preference is to assign values to the property, how is this guideline affected when these properties must be virtual (e.g. for NHibnerate domain classes)?</p>
<p>* What is the preferred naming convention for controls on a form? Are controls really just private fields or are they special cases in some way?</p>
<div style="clear:both;"></div><img src="http://blogs.msdn.com/aggbug.aspx?PostID=7124598" width="1" height="1">re: What do you want to see in the second edition of Framework Design Guidelines?http://blogs.msdn.com/b/codeanalysis/archive/2008/01/15/what-do-you-want-to-see-in-the-second-edition-of-framework-design-guidelines.aspx#7119124Tue, 15 Jan 2008 20:50:04 GMT91d46819-8472-40ad-a661-2c78acb4018c:7119124Jonathan Allen<p>I have a lot of libraries containing user controls and forms that should be inherited. But I don't see any guidance on the best way to expose child controls on base-class forms and user controls.</p>
<p>Should they be marked protected?</p>
<p>Should they be hidden entirely and exposed via properties on the control/form?</p>
<p>What are the naming conventions?</p>
<p>I just don't know.</p>
<div style="clear:both;"></div><img src="http://blogs.msdn.com/aggbug.aspx?PostID=7119124" width="1" height="1">re: What do you want to see in the second edition of Framework Design Guidelines?http://blogs.msdn.com/b/codeanalysis/archive/2008/01/15/what-do-you-want-to-see-in-the-second-edition-of-framework-design-guidelines.aspx#7119106Tue, 15 Jan 2008 20:46:36 GMT91d46819-8472-40ad-a661-2c78acb4018c:7119106Jonathan Allen<p>I would like to see better guidance on Disposable classes. Too often we see classes like DataTable that appear as though they don't really need to be disposed, but there is no way to know for sure.</p>
<div style="clear:both;"></div><img src="http://blogs.msdn.com/aggbug.aspx?PostID=7119106" width="1" height="1">