<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://codebetter.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>Karl Seguin - All Comments</title><link>http://codebetter.com/blogs/karlseguin/default.aspx</link><description>.NET From Ottawa, Ontario - http://twitter.com/karlseguin/</description><dc:language>en</dc:language><generator>CommunityServer 2008.5 SP1 (Build: 31106.3070)</generator><item><title>re: 2 years ago I gave up on Silverlight</title><link>http://codebetter.com/blogs/karlseguin/archive/2009/05/23/2-years-ago-i-gave-up-on-silverlight.aspx#249485</link><pubDate>Wed, 01 Jul 2009 04:21:24 GMT</pubDate><guid isPermaLink="false">d21fbbc9-c112-4f32-ad14-95939a2c53d4:249485</guid><dc:creator>Houston Web design</dc:creator><description>&lt;p&gt;I don&amp;#39;t any developer who uses silverlight, its either flash or nothing.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://codebetter.com/aggbug.aspx?PostID=249485" width="1" height="1"&gt;</description></item><item><title>re: NHibernate : Some Naked Thoughts</title><link>http://codebetter.com/blogs/karlseguin/archive/2009/06/10/nhibernate-some-naked-thoughts.aspx#249271</link><pubDate>Wed, 24 Jun 2009 23:43:18 GMT</pubDate><guid isPermaLink="false">d21fbbc9-c112-4f32-ad14-95939a2c53d4:249271</guid><dc:creator>Fabio Maulo</dc:creator><description>&lt;p&gt;Btw, friends, NH is a working reality but I&amp;#39;m pretty sure that EF will be the standard in .NET&lt;/p&gt;
&lt;p&gt;Each time this matter rises what I say is always the same:&lt;/p&gt;
&lt;p&gt;2 dogs and 3 or 4 cats, working on his free time can&amp;#39;t do the same of a monster as Microsoft is. &lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://codebetter.com/aggbug.aspx?PostID=249271" width="1" height="1"&gt;</description></item><item><title>#.think.in infoDose #34 (18th June - 24th June)</title><link>http://codebetter.com/blogs/karlseguin/archive/2009/06/18/nhibnerate-handling-the-special-cases.aspx#249261</link><pubDate>Wed, 24 Jun 2009 12:23:38 GMT</pubDate><guid isPermaLink="false">d21fbbc9-c112-4f32-ad14-95939a2c53d4:249261</guid><dc:creator>#.think.in</dc:creator><description>&lt;p&gt;#.think.in infoDose #34 (18th June - 24th June)&lt;/p&gt;
&lt;img src="http://codebetter.com/aggbug.aspx?PostID=249261" width="1" height="1"&gt;</description></item><item><title>re: NHibnerate : Handling the Special Cases</title><link>http://codebetter.com/blogs/karlseguin/archive/2009/06/18/nhibnerate-handling-the-special-cases.aspx#249187</link><pubDate>Sun, 21 Jun 2009 18:35:51 GMT</pubDate><guid isPermaLink="false">d21fbbc9-c112-4f32-ad14-95939a2c53d4:249187</guid><dc:creator>Martin</dc:creator><description>&lt;p&gt;There&amp;#39;s a typo in the title of the post: NHibnerate -&amp;gt; NHibernate&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://codebetter.com/aggbug.aspx?PostID=249187" width="1" height="1"&gt;</description></item><item><title>re: code better - use string.format</title><link>http://codebetter.com/blogs/karlseguin/archive/2006/04/10/142602.aspx#248805</link><pubDate>Fri, 19 Jun 2009 18:17:31 GMT</pubDate><guid isPermaLink="false">d21fbbc9-c112-4f32-ad14-95939a2c53d4:248805</guid><dc:creator>Matthew</dc:creator><description>&lt;p&gt;By the way, String.Format does not have a monopoly on string formatting. &amp;nbsp;You can also specify a format for a single object to its ToString() method. &amp;nbsp;So, for instance, this:&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;string s = &amp;quot;0x&amp;quot; + 16.ToString(&amp;quot;x&amp;quot;);&lt;/p&gt;
&lt;p&gt;accomplishes the same thing as:&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;string s = String.Format(&amp;quot;0x{0:x}&amp;quot;, 16);&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://codebetter.com/aggbug.aspx?PostID=248805" width="1" height="1"&gt;</description></item><item><title>re: code better - use string.format</title><link>http://codebetter.com/blogs/karlseguin/archive/2006/04/10/142602.aspx#248725</link><pubDate>Fri, 19 Jun 2009 09:12:20 GMT</pubDate><guid isPermaLink="false">d21fbbc9-c112-4f32-ad14-95939a2c53d4:248725</guid><dc:creator>Matthew</dc:creator><description>&lt;p&gt;Really? &amp;nbsp;You love String.Format that much? &amp;nbsp;Put performance aside for a moment. &amp;nbsp;I contest that readability is not improved by String.Format, even though I am a die-hard C programmer who used to love printf().&lt;/p&gt;
&lt;p&gt;The problem with these substitution routines is that they separate the symbol from the variable. &amp;nbsp;You&amp;#39;re stuck seeing cryptic {0}, {1}, {2}, {3}, {4}, ... and then you only find out at the end of the statement which variables mean what. &amp;nbsp;Order is critical. &amp;nbsp;If you mess up that, then you can introduce some subtle bugs.&lt;/p&gt;
&lt;p&gt;Really, I do think this:&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Console.WriteLine(&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;quot;number: &amp;quot; + i.ToString() + &amp;quot;.&amp;quot; +&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;quot;number + 1: &amp;quot; + (i + 1).ToString() + &amp;quot;.&amp;quot; +&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;quot;number + 2: &amp;quot; + (i + 2).ToString() + &amp;quot;.&amp;quot;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;);&lt;/p&gt;
&lt;p&gt;is more clear than this mess:&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Console.WriteLine(&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;String.Format(&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;quot;number: {0}.number + 1: {1}.number + 2: {2}.&amp;quot;,&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;i, i + 1, i + 2&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;);&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://codebetter.com/aggbug.aspx?PostID=248725" width="1" height="1"&gt;</description></item><item><title>NHibnerate : Handling the Special Cases - Karl Seguin - CodeBetter.Com</title><link>http://codebetter.com/blogs/karlseguin/archive/2009/06/18/nhibnerate-handling-the-special-cases.aspx#248701</link><pubDate>Thu, 18 Jun 2009 20:27:32 GMT</pubDate><guid isPermaLink="false">d21fbbc9-c112-4f32-ad14-95939a2c53d4:248701</guid><dc:creator>DotNetShoutout</dc:creator><description>&lt;p&gt;Thank you for submitting this cool story - Trackback from DotNetShoutout&lt;/p&gt;
&lt;img src="http://codebetter.com/aggbug.aspx?PostID=248701" width="1" height="1"&gt;</description></item><item><title>re: NHibnerate : Handling the Special Cases</title><link>http://codebetter.com/blogs/karlseguin/archive/2009/06/18/nhibnerate-handling-the-special-cases.aspx#248700</link><pubDate>Thu, 18 Jun 2009 18:32:23 GMT</pubDate><guid isPermaLink="false">d21fbbc9-c112-4f32-ad14-95939a2c53d4:248700</guid><dc:creator>karl</dc:creator><description>&lt;p&gt;@Bill:&lt;/p&gt;
&lt;p&gt;Because they rollback the transaction in the case of an exception, something you can&amp;#39;t do with a using.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://codebetter.com/aggbug.aspx?PostID=248700" width="1" height="1"&gt;</description></item><item><title>re: NHibnerate : Handling the Special Cases</title><link>http://codebetter.com/blogs/karlseguin/archive/2009/06/18/nhibnerate-handling-the-special-cases.aspx#248698</link><pubDate>Thu, 18 Jun 2009 18:01:31 GMT</pubDate><guid isPermaLink="false">d21fbbc9-c112-4f32-ad14-95939a2c53d4:248698</guid><dc:creator>Bill Sorensen</dc:creator><description>&lt;p&gt;Why did they use a try..finally with the transaction rather than a using statement?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://codebetter.com/aggbug.aspx?PostID=248698" width="1" height="1"&gt;</description></item><item><title>re: NHibnerate : Handling the Special Cases</title><link>http://codebetter.com/blogs/karlseguin/archive/2009/06/18/nhibnerate-handling-the-special-cases.aspx#248696</link><pubDate>Thu, 18 Jun 2009 15:35:59 GMT</pubDate><guid isPermaLink="false">d21fbbc9-c112-4f32-ad14-95939a2c53d4:248696</guid><dc:creator>karl</dc:creator><description>&lt;p&gt;@Paco:&lt;/p&gt;
&lt;p&gt;That repository snippet comes from FluentNhibernate. Seems to be flavor of the day in order to achieve really simple/small implementations for basic CRUD sites without having to write a lot of infrastructure. The approach definitely works for a number of use case, and not for others.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://codebetter.com/aggbug.aspx?PostID=248696" width="1" height="1"&gt;</description></item><item><title>New and Notable 333</title><link>http://codebetter.com/blogs/karlseguin/archive/2009/06/18/nhibnerate-handling-the-special-cases.aspx#248694</link><pubDate>Thu, 18 Jun 2009 15:07:07 GMT</pubDate><guid isPermaLink="false">d21fbbc9-c112-4f32-ad14-95939a2c53d4:248694</guid><dc:creator>Sam Gentile's Blog (if (DeveloperTask == Communication &amp;&amp; OS == Windows)</dc:creator><description>&lt;p&gt;Visual Studio 2010/.NET 4 Visual Studio 2010 .net debugging resource Visual Studio 2010: Web application packaging and publishing WPF Data Binding: Lookup Tables Software Development Tools NHibernate: Handling the Special Cases TestDriven.Net 2.22: What&lt;/p&gt;
&lt;img src="http://codebetter.com/aggbug.aspx?PostID=248694" width="1" height="1"&gt;</description></item><item><title>re: NHibnerate : Handling the Special Cases</title><link>http://codebetter.com/blogs/karlseguin/archive/2009/06/18/nhibnerate-handling-the-special-cases.aspx#248690</link><pubDate>Thu, 18 Jun 2009 15:02:23 GMT</pubDate><guid isPermaLink="false">d21fbbc9-c112-4f32-ad14-95939a2c53d4:248690</guid><dc:creator>Paco</dc:creator><description>&lt;p&gt;Why do you manage the transaction in the repository? What if you need 2 queries on the same transaction?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://codebetter.com/aggbug.aspx?PostID=248690" width="1" height="1"&gt;</description></item><item><title>NHibnerate : Handling the Special Cases</title><link>http://codebetter.com/blogs/karlseguin/archive/2009/06/10/nhibernate-some-naked-thoughts.aspx#248688</link><pubDate>Thu, 18 Jun 2009 14:04:50 GMT</pubDate><guid isPermaLink="false">d21fbbc9-c112-4f32-ad14-95939a2c53d4:248688</guid><dc:creator>Karl Seguin</dc:creator><description>&lt;p&gt;In my last NHibernate post I mentioned that NHibernate is great because it does the heavy lifting for&lt;/p&gt;
&lt;img src="http://codebetter.com/aggbug.aspx?PostID=248688" width="1" height="1"&gt;</description></item><item><title>re: Get SOLID: Single Responsibility Principle</title><link>http://codebetter.com/blogs/karlseguin/archive/2008/12/05/get-solid-single-responsibility-principle.aspx#248686</link><pubDate>Thu, 18 Jun 2009 10:43:02 GMT</pubDate><guid isPermaLink="false">d21fbbc9-c112-4f32-ad14-95939a2c53d4:248686</guid><dc:creator>dfgd</dc:creator><description>&lt;p&gt;dfg&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://codebetter.com/aggbug.aspx?PostID=248686" width="1" height="1"&gt;</description></item><item><title>re: Get SOLID: Single Responsibility Principle</title><link>http://codebetter.com/blogs/karlseguin/archive/2008/12/05/get-solid-single-responsibility-principle.aspx#248685</link><pubDate>Thu, 18 Jun 2009 10:33:58 GMT</pubDate><guid isPermaLink="false">d21fbbc9-c112-4f32-ad14-95939a2c53d4:248685</guid><dc:creator>ffghfgh</dc:creator><description>&lt;p&gt;gfhfgh&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://codebetter.com/aggbug.aspx?PostID=248685" width="1" height="1"&gt;</description></item></channel></rss>