<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:copyright="http://blogs.law.harvard.edu/tech/rss" xmlns:image="http://purl.org/rss/1.0/modules/image/">
    <channel>
        <title>Design Guidelines</title>
        <link>http://blogs.ugidotnet.org/Rucka/category/Design Guidelines.aspx</link>
        <description>Design Guidelines</description>
        <language>it-IT</language>
        <copyright>Gianluca Carucci</copyright>
        <generator>Subtext Version 2.6.0.0</generator>
        <item>
            <title>Assert multipli all'interno di un singolo unit test</title>
            <link>http://blogs.ugidotnet.org/Rucka/archive/2006/10/04/49921.aspx</link>
            <description>&lt;p&gt;Roy Osherove fornisce in &lt;a href="http://weblogs.asp.net/rosherove/archive/2006/10/04/Avoid-multiple-asserts-in-a-single-unit-test_3A00_-revisited.aspx"&gt;questo&lt;/a&gt; post, alcuni validi motivi del perchè secondo lui non dovrebbe essere possibile permettere di fallire più assert nell'esecuzione di un singolo unit test. Il post è in contrapposizione con un'altro &lt;a href="http://dotavery.com/blog/archive/2006/09/25/21263.aspx"&gt;post&lt;/a&gt; di James Avery dove viene spiegato invece, il perchè questa feature potrebbe essere utile.&lt;/p&gt;
&lt;p&gt; Un piccolo assaggio che quoto in pieno:&lt;/p&gt;
&lt;p&gt;"&lt;em&gt;Even if we assume that all the asserts are run, you're essentially running multiple tests on code that has "dirty" state. For example, asserting on the result of a method call may actually change the state of the object under test so that the next call to that method may actually be skewed because of the previous asserts. that's a bad world to be in. having single assert per test means you also know exactly the state of your object before the assert.&lt;/em&gt;"&lt;/p&gt;&lt;div style="margin: 0px; padding: 0px; display: inline;" contenteditable="false" class="wlWriterSmartContent"&gt;Technorati tags: &lt;a rel="tag" href="http://technorati.com/tags/UnitTest"&gt;UnitTest&lt;/a&gt;, &lt;a rel="tag" href="http://technorati.com/tags/TDD"&gt;TDD&lt;/a&gt;, &lt;a rel="tag" href="http://technorati.com/tags/Agile"&gt;Agile&lt;/a&gt;, &lt;a rel="tag" href="http://technorati.com/tags/Assert"&gt;Assert&lt;/a&gt;, &lt;a rel="tag" href="http://technorati.com/tags/assert"&gt;assert&lt;/a&gt;&lt;/div&gt;&lt;img src="http://blogs.ugidotnet.org/Rucka/aggbug/49921.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Gianluca Carucci</dc:creator>
            <guid>http://blogs.ugidotnet.org/Rucka/archive/2006/10/04/49921.aspx</guid>
            <pubDate>Wed, 04 Oct 2006 10:48:00 GMT</pubDate>
            <comments>http://blogs.ugidotnet.org/Rucka/archive/2006/10/04/49921.aspx#feedback</comments>
            <slash:comments>1</slash:comments>
            <wfw:commentRss>http://blogs.ugidotnet.org/Rucka/comments/commentRss/49921.aspx</wfw:commentRss>
        </item>
        <item>
            <title>NotSupportedException e NotImplementedException</title>
            <link>http://blogs.ugidotnet.org/Rucka/archive/2004/07/30/409.aspx</link>
            <description>Che differenza c'&amp;#232; tra queste due eccezioni? Chi meglio di &lt;A href="http://blogs.msdn.com/brada/"&gt;Brad Abrams &lt;/A&gt;pu&amp;#242; &lt;A href="http://blogs.msdn.com/brada/archive/2004/07/29/201354.aspx"&gt;spiegarcelo&lt;/A&gt;!&lt;img src="http://blogs.ugidotnet.org/Rucka/aggbug/409.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Gianluca Carucci</dc:creator>
            <guid>http://blogs.ugidotnet.org/Rucka/archive/2004/07/30/409.aspx</guid>
            <pubDate>Fri, 30 Jul 2004 10:26:00 GMT</pubDate>
            <comments>http://blogs.ugidotnet.org/Rucka/archive/2004/07/30/409.aspx#feedback</comments>
            <wfw:commentRss>http://blogs.ugidotnet.org/Rucka/comments/commentRss/409.aspx</wfw:commentRss>
        </item>
        <item>
            <title>IPEndPoint.Create(SocketAddress), perchè è un Instance Method????</title>
            <link>http://blogs.ugidotnet.org/Rucka/archive/2004/07/27/406.aspx</link>
            <description>&lt;P&gt;Evidentemente non sono l'unico a essermi fatto questa domanda....&lt;/P&gt;
&lt;P&gt; Dando un'occhiata al codice di Mono, nell'implementazione della propriet&amp;#224; LocalEndPoint e RemoteEndPoint si pu&amp;#242; notare il seguente codice (e i commenti) :&lt;/P&gt;
&lt;P&gt;"...&lt;FONT color=#0000ff size=2&gt;&lt;/P&gt;
&lt;P&gt;if&lt;/FONT&gt;&lt;FONT size=2&gt;(sa.Family==AddressFamily.InterNetwork || sa.Family==AddressFamily.InterNetworkV6 ) {&lt;/P&gt;
&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;// Stupidly, EndPoint.Create() is an&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;
&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;// instance method&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;
&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;return&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;new&lt;/FONT&gt;&lt;FONT size=2&gt; IPEndPoint(0, 0).Create(sa);&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;&lt;/FONT&gt;
&lt;P&gt;..."&lt;/P&gt;
&lt;P&gt;Chiss&amp;#224; se chi ha progettato (o implementato) la classe IPEndPoint lavora ancora in Microsoft:P&lt;/P&gt;&lt;img src="http://blogs.ugidotnet.org/Rucka/aggbug/406.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Gianluca Carucci</dc:creator>
            <guid>http://blogs.ugidotnet.org/Rucka/archive/2004/07/27/406.aspx</guid>
            <pubDate>Tue, 27 Jul 2004 16:28:00 GMT</pubDate>
            <comments>http://blogs.ugidotnet.org/Rucka/archive/2004/07/27/406.aspx#feedback</comments>
            <wfw:commentRss>http://blogs.ugidotnet.org/Rucka/comments/commentRss/406.aspx</wfw:commentRss>
        </item>
        <item>
            <title>Qualche linea guida di design di librerie</title>
            <link>http://blogs.ugidotnet.org/Rucka/archive/2004/04/21/399.aspx</link>
            <description>&lt;P&gt;Segnalo qualche post del blog di Brad Abrams in cui vengono elencate alcune (OTTIME) regole da tenere presente nella costruzione delle classi. Da stampare e attaccare sopra il monitor:)&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.msdn.com/brada/archive/2003/07/01/50088.aspx"&gt;On Designing Good Libraries -- Part I&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A id=viewpost.ascx_TitleUrl href="http://blogs.msdn.com/brada/archive/2003/07/05/50118.aspx"&gt;On Designing Good Libraries -- Part II&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.msdn.com/brada/archive/2003/07/13/50140.aspx"&gt;On Designing Good Libraries -- Part III&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.msdn.com/brada/archive/2003/07/26/50192.aspx"&gt;On Designing Good Libraries -- Part IV&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;E se non vi bastasse.... c'&amp;#232; sempre questa &lt;A href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/cpconnetframeworkdesignguidelines.asp"&gt;serie di articoli&lt;/A&gt; sull'MSDN... &lt;/P&gt;
&lt;P&gt;Buon Refactoring....:)&lt;/P&gt;&lt;img src="http://blogs.ugidotnet.org/Rucka/aggbug/399.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Gianluca Carucci</dc:creator>
            <guid>http://blogs.ugidotnet.org/Rucka/archive/2004/04/21/399.aspx</guid>
            <pubDate>Wed, 21 Apr 2004 12:37:00 GMT</pubDate>
            <comments>http://blogs.ugidotnet.org/Rucka/archive/2004/04/21/399.aspx#feedback</comments>
            <wfw:commentRss>http://blogs.ugidotnet.org/Rucka/comments/commentRss/399.aspx</wfw:commentRss>
        </item>
        <item>
            <title>Il 90% dei problemi di performance sono nel design non nel codice</title>
            <link>http://blogs.ugidotnet.org/Rucka/archive/2004/02/12/393.aspx</link>
            <description>Questa &amp;#232; una delle "Ten Rules of Performaces" scritte da Paul Vick nel suo &lt;A href="http://www.panopticoncentral.net/PermaLink.aspx/eacfc5e0-42df-44b0-bb9a-94354b689b17"&gt;blog&lt;/A&gt;. C'&amp;#232; sempre da imparare... :)&lt;img src="http://blogs.ugidotnet.org/Rucka/aggbug/393.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Gianluca Carucci</dc:creator>
            <guid>http://blogs.ugidotnet.org/Rucka/archive/2004/02/12/393.aspx</guid>
            <pubDate>Thu, 12 Feb 2004 10:25:00 GMT</pubDate>
            <comments>http://blogs.ugidotnet.org/Rucka/archive/2004/02/12/393.aspx#feedback</comments>
            <wfw:commentRss>http://blogs.ugidotnet.org/Rucka/comments/commentRss/393.aspx</wfw:commentRss>
        </item>
    </channel>
</rss>