<?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>Design Guidelines Update: Factories vs. Constructors </title><link>http://blogs.msdn.com/kcwalina/archive/2004/10/11/241027.aspx</link><description>Joe has recently spent some time beefing up the Factory vs. Constructor guidelines. This subject has been the center of lots of intenral debates. Finally, we agreed on the fllowing: Factories The most common and consistent way to create an instance of</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: Design Guidelines Digest</title><link>http://blogs.msdn.com/kcwalina/archive/2004/10/11/241027.aspx#241030</link><pubDate>Tue, 12 Oct 2004 03:36:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:241030</guid><dc:creator>Krzysztof Cwalina</dc:creator><description /></item><item><title>re: Design Guidelines Update: Factories vs. Constructors </title><link>http://blogs.msdn.com/kcwalina/archive/2004/10/11/241027.aspx#241063</link><pubDate>Tue, 12 Oct 2004 05:56:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:241063</guid><dc:creator>Karl</dc:creator><description>That's really great (really)...thanks!</description></item><item><title>re: Design Guidelines Update: Factories vs. Constructors </title><link>http://blogs.msdn.com/kcwalina/archive/2004/10/11/241027.aspx#241160</link><pubDate>Tue, 12 Oct 2004 12:05:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:241160</guid><dc:creator>thomas woelfer</dc:creator><description>Krzysztof,&lt;br&gt;&lt;br&gt;WM_THX&lt;br&gt;thomas woelfer</description></item><item><title>re: Design Guidelines Update: Factories vs. Constructors </title><link>http://blogs.msdn.com/kcwalina/archive/2004/10/11/241027.aspx#241225</link><pubDate>Tue, 12 Oct 2004 16:49:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:241225</guid><dc:creator>Andy Neilson</dc:creator><description>One reason for prefering constructors over factory methods is if you want to take advantage of the automatic disposal pattern in C++/CLI (similar to &amp;quot;using&amp;quot; in C#):&lt;br&gt;&lt;br&gt;{&lt;br&gt;  MyRefClass x;&lt;br&gt;  // Do something with x here&lt;br&gt;} // x is Disposed of here&lt;br&gt;&lt;br&gt;The alternative is to use a more verbose try/finally with an explicit delete in the finally, which is much less concise.&lt;br&gt;&lt;br&gt;This is a nice feature of C++/CLI, but it only possible if you have constructors available. If you can only instantiate MyRefClass through factory methods, you are out of luck. </description></item><item><title>re: Design Guidelines Update: Factories vs. Constructors </title><link>http://blogs.msdn.com/kcwalina/archive/2004/10/11/241027.aspx#241445</link><pubDate>Wed, 13 Oct 2004 00:06:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:241445</guid><dc:creator>Omer van Kloeten</dc:creator><description>&amp;quot;Do use a Factory if an operation requires parameter information which _feels unnatural_ to pass to a constructor&amp;quot;&lt;br&gt;&lt;br&gt;We're doomed. :P&lt;br&gt;&lt;br&gt;But really now, this is one of the last phrases I would expect from a Microsoft guideline.&lt;br&gt;I know all too many people who have horrible hunches. If you have good hunches, you don't need these guidelines.&lt;br&gt;Please consider revising it.</description></item><item><title>re: Design Guidelines Update: Factories vs. Constructors </title><link>http://blogs.msdn.com/kcwalina/archive/2004/10/11/241027.aspx#242384</link><pubDate>Thu, 14 Oct 2004 21:17:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:242384</guid><dc:creator>Joe Duffy</dc:creator><description>Ugh, thanks for pointing that out Omer. You're entirely correct: we need unambiguous guidance, and that particular sentence is up for way too much interpretation. I'm going to update the wording and will let you know what the result is.&lt;br&gt;&lt;br&gt;Thanks for the feedback -- keep it coming!</description></item><item><title>Factory vs. Constructor Guidelines</title><link>http://blogs.msdn.com/kcwalina/archive/2004/10/11/241027.aspx#242559</link><pubDate>Fri, 15 Oct 2004 03:33:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:242559</guid><dc:creator>Alex Hoffman Weblog</dc:creator><description>An update to the Factory vs Constructor design guidelines ...</description></item><item><title>Factory vs. Constructor Guidelines</title><link>http://blogs.msdn.com/kcwalina/archive/2004/10/11/241027.aspx#242563</link><pubDate>Fri, 15 Oct 2004 03:36:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:242563</guid><dc:creator>Alex Hoffman Weblog</dc:creator><description>An update to the Factory vs Constructor design guidelines ...</description></item><item><title>All The News That Is Fit To Print (Oct 19, 2004)</title><link>http://blogs.msdn.com/kcwalina/archive/2004/10/11/241027.aspx#244886</link><pubDate>Wed, 20 Oct 2004 05:48:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:244886</guid><dc:creator>OdeToCode Link Blog</dc:creator><description /></item><item><title>.NET Application Development Guidelines - Factories vs. Constructors</title><link>http://blogs.msdn.com/kcwalina/archive/2004/10/11/241027.aspx#246946</link><pubDate>Mon, 25 Oct 2004 02:05:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:246946</guid><dc:creator>David Hayden - Sarasota Web Design Development - F</dc:creator><description /></item><item><title>Readings for 10.27.2004</title><link>http://blogs.msdn.com/kcwalina/archive/2004/10/11/241027.aspx#248598</link><pubDate>Wed, 27 Oct 2004 20:34:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:248598</guid><dc:creator>The Diffracted Developer</dc:creator><description /></item><item><title>Readings for 10.27.2004</title><link>http://blogs.msdn.com/kcwalina/archive/2004/10/11/241027.aspx#248781</link><pubDate>Thu, 28 Oct 2004 01:24:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:248781</guid><dc:creator>The Diffracted Developer</dc:creator><description /></item><item><title>Interesting Findings this morning</title><link>http://blogs.msdn.com/kcwalina/archive/2004/10/11/241027.aspx#250037</link><pubDate>Sat, 30 Oct 2004 20:37:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:250037</guid><dc:creator>Jason Haley</dc:creator><description>Interesting Findings this morning</description></item><item><title>re: Design Guidelines Update: Factories vs. Constructors </title><link>http://blogs.msdn.com/kcwalina/archive/2004/10/11/241027.aspx#9402180</link><pubDate>Fri, 06 Feb 2009 17:10:34 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9402180</guid><dc:creator>Justin Sayne</dc:creator><description>&lt;p&gt;Guid.Parse() and Guid.TryParse() are brilliant. David Hayden didn't say alot.&lt;/p&gt;</description></item></channel></rss>