<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://weblogs.asp.net/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>The SR pattern, a simple approach to resource handling</title><link>http://weblogs.asp.net/vga/archive/2003/10/12/31683.aspx</link><description>Note : this entry has moved . I&amp;#8217;m currently performing a huge code &amp;amp; architecture review of a very big .NET project that includes several web applications and several frameworks. One of the first things I did was to estimate how costly would</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>re: The SR pattern, a simple approach to resource handling</title><link>http://weblogs.asp.net/vga/archive/2003/10/12/31683.aspx#75198</link><pubDate>Wed, 18 Feb 2004 00:37:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:75198</guid><dc:creator>David Kean</dc:creator><author>David Kean</author><description>Why do you use the singleton pattern, why not just make ResourceManager a static member of the class?&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=75198" width="1" height="1"&gt;</description></item><item><title>Whidbey Creates your </title><link>http://weblogs.asp.net/vga/archive/2003/10/12/31683.aspx#71123</link><pubDate>Wed, 11 Feb 2004 03:55:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:71123</guid><dc:creator>TrackBack</dc:creator><author>TrackBack</author><description>&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=71123" width="1" height="1"&gt;</description></item><item><title>Whidbey Creates your </title><link>http://weblogs.asp.net/vga/archive/2003/10/12/31683.aspx#71119</link><pubDate>Wed, 11 Feb 2004 03:52:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:71119</guid><dc:creator>TrackBack</dc:creator><author>TrackBack</author><description>&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=71119" width="1" height="1"&gt;</description></item><item><title>Resources </title><link>http://weblogs.asp.net/vga/archive/2003/10/12/31683.aspx#45961</link><pubDate>Fri, 26 Dec 2003 11:28:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:45961</guid><dc:creator>TrackBack</dc:creator><author>TrackBack</author><description>&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=45961" width="1" height="1"&gt;</description></item><item><title>Resources </title><link>http://weblogs.asp.net/vga/archive/2003/10/12/31683.aspx#45959</link><pubDate>Fri, 26 Dec 2003 11:27:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:45959</guid><dc:creator>TrackBack</dc:creator><author>TrackBack</author><description>&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=45959" width="1" height="1"&gt;</description></item><item><title>re: The SR pattern, a simple approach to resource handling</title><link>http://weblogs.asp.net/vga/archive/2003/10/12/31683.aspx#32202</link><pubDate>Thu, 16 Oct 2003 14:45:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:32202</guid><dc:creator>VIctor Garcia Aprea</dc:creator><author>VIctor Garcia Aprea</author><description>Thanks for commenting!&lt;br&gt;&lt;br&gt;You're right and thats already fixed in the ... ooops I'm not supposed to talk about this yet. The refectoring you mention plus CBrumme's suggestions are already implemented in ... ooops here I go again.&lt;br&gt;&lt;br&gt;I already wrote a post detailing how SR is implemented in the whidbey bits and the changes made. Because of NDA's I can't publish it until after the PDC I believe.&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=32202" width="1" height="1"&gt;</description></item><item><title>O M G!</title><link>http://weblogs.asp.net/vga/archive/2003/10/12/31683.aspx#32198</link><pubDate>Thu, 16 Oct 2003 14:02:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:32198</guid><dc:creator>Sebastien Lambla</dc:creator><author>Sebastien Lambla</author><description>Oh my god...&lt;br&gt;lock (typeof(SR))&lt;br&gt;&lt;br&gt;this is EVIL EVIL EVIL EVIL.&lt;br&gt;&lt;br&gt;The code should be refactored to provide&lt;br&gt;&lt;br&gt;private static object SyncRoot = new object();&lt;br&gt;&lt;br&gt;and lock(SyncRoot)&lt;br&gt;&lt;br&gt;The blogosphere has been vocal enough about how locking on a type is a bad thing, and on how microsoft documentation providing examples of locking Type objects was a bad thing.&lt;br&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=32198" width="1" height="1"&gt;</description></item><item><title>re: The SR pattern, a simple approach to resource handling</title><link>http://weblogs.asp.net/vga/archive/2003/10/12/31683.aspx#31706</link><pubDate>Mon, 13 Oct 2003 05:43:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:31706</guid><dc:creator>Victor Garcia Aprea</dc:creator><author>Victor Garcia Aprea</author><description>Updated now to reflect CBrumme's advices plus some code,&lt;br&gt;&lt;br&gt;Thanks!&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=31706" width="1" height="1"&gt;</description></item><item><title>re: The SR pattern, a simple approach to resource handling</title><link>http://weblogs.asp.net/vga/archive/2003/10/12/31683.aspx#31700</link><pubDate>Mon, 13 Oct 2003 03:40:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:31700</guid><dc:creator>Daniel Cazzulino</dc:creator><author>Daniel Cazzulino</author><description>I'm afraid the double-check locking may not be a silver bullet, as Chris Brumme explained in his wonderful weblog at &lt;a target="_new" href="http://blogs.gotdotnet.com/cbrumme/permalink.aspx/480d3a6d-1aa8-4694-96db-c69f01d7ff2b"&gt;http://blogs.gotdotnet.com/cbrumme/permalink.aspx/480d3a6d-1aa8-4694-96db-c69f01d7ff2b&lt;/a&gt;&lt;br&gt;It's a long one (as all his posts, but highly recommended reading as usual), so do a search for &amp;quot;double-locking&amp;quot;. &lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=31700" width="1" height="1"&gt;</description></item></channel></rss>