<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" media="screen" href="/App_Themes/default/rss.xslt"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" 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:media="http://search.yahoo.com/mrss/" xmlns:evnet="http://www.mscommunities.com/rssmodule/"><channel><title>Comment Feed for Manuel Fahndrich and Peli de Halleux - The Synergy of Code Contracts and Pex (Peli on Channel 9)</title><atom:link rel="self" type="application/rss+xml" href="http://channel9.msdn.com/posts/peli/the-synergy-of-code-contracts-and-pex/rss/default.aspx" /><image><url>http://mschnlnine.vo.llnwd.net/d1/Dev/App_Themes/C9/images/feedimage.png</url><title>Comment Feed for Manuel Fahndrich and Peli de Halleux - The Synergy of Code Contracts and Pex (Peli on Channel 9)</title><link>http://channel9.msdn.com/posts/Peli/The-Synergy-of-Code-Contracts-and-Pex/</link></image><description>Manuel Fahndrich and Peli de Halleux - The Synergy of Code Contracts and Pex</description><link>http://channel9.msdn.com/posts/Peli/The-Synergy-of-Code-Contracts-and-Pex/</link><language>en-us</language><pubDate>Mon, 27 Apr 2009 20:21:58 GMT</pubDate><lastBuildDate>Mon, 27 Apr 2009 20:21:58 GMT</lastBuildDate><generator>EvNet (EvNet, Version=1.0.3608.3122, Culture=neutral, PublicKeyToken=null)</generator><item><title>Re: Re: Re: Manuel Fahndrich and Peli de Halleux - The Synergy of Code Contracts and Pex</title><description>&lt;P&gt;It makes sense, in the context of .NET, that this tooling&amp;nbsp;is designed&amp;nbsp;to be&amp;nbsp;language independent (just like .NET...). Why should every managed language have to provide the same internal semantics and language-appropriate syntax when a single shared library and IDE toolset gives all CLS compliant languages the same functionality for free? I think you guys are doing the right thing here. &lt;BR&gt;&lt;BR&gt;Keep on pushing the envelope (independent of language design).&lt;BR&gt;C&lt;/P&gt;</description><comments></comments><link>http://channel9.msdn.com/posts/Peli/The-Synergy-of-Code-Contracts-and-Pex/?CommentID=466932</link><pubDate>Mon, 27 Apr 2009 17:02:31 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/posts/Peli/The-Synergy-of-Code-Contracts-and-Pex/?CommentID=466932</guid><evnet:views>0</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/466932/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>It makes sense, in the context of .NET, that this tooling&amp;nbsp;is designed&amp;nbsp;to be&amp;nbsp;language independent (just like .NET...). Why should every managed language have to provide the same internal semantics and language-appropriate syntax when a single shared library and IDE toolset gives all&amp;#8230;</evnet:previewtext><dc:creator>Charles</dc:creator><slash:comments>0</slash:comments><wfw:commentRss></wfw:commentRss><trackback:ping>http://channel9.msdn.com/466932/Trackback.aspx</trackback:ping></item><item><title>Re: Manuel Fahndrich and Peli de Halleux - The Synergy of Code Contracts and Pex</title><description>&lt;P&gt;Yes - Code Contracts is the contract feature of .net 4.0 and Pex can already handle .net 4.0 processes. Since the Contracts API is still evolving there might be a difference between the .net 4.0 CTP release and the latest Code Contracts download (which Pex supports).&lt;BR&gt;&lt;BR&gt;If you face any issues, don't hesitate to shoot emails in our forums at &lt;A href="http://social.msdn.microsoft.com/Forums/en-US/category/devlabs"&gt;http://social.msdn.microsoft.com/Forums/en-US/category/devlabs&lt;/A&gt;&lt;/P&gt;</description><comments></comments><link>http://channel9.msdn.com/posts/Peli/The-Synergy-of-Code-Contracts-and-Pex/?CommentID=466729</link><pubDate>Sat, 25 Apr 2009 03:19:25 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/posts/Peli/The-Synergy-of-Code-Contracts-and-Pex/?CommentID=466729</guid><evnet:views>0</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/466729/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>Yes - Code Contracts is the contract feature of .net 4.0 and Pex can already handle .net 4.0 processes. Since the Contracts API is still evolving there might be a difference between the .net 4.0 CTP release and the latest Code Contracts download (which Pex supports).If you face any issues, don't&amp;#8230;</evnet:previewtext><dc:creator>Peli de Halleux</dc:creator><slash:comments>0</slash:comments><wfw:commentRss></wfw:commentRss><trackback:ping>http://channel9.msdn.com/466729/Trackback.aspx</trackback:ping></item><item><title>Re: Manuel Fahndrich and Peli de Halleux - The Synergy of Code Contracts and Pex</title><description>Does it work with the code contracts feature in .net 4.0?</description><comments></comments><link>http://channel9.msdn.com/posts/Peli/The-Synergy-of-Code-Contracts-and-Pex/?CommentID=466723</link><pubDate>Sat, 25 Apr 2009 01:56:16 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/posts/Peli/The-Synergy-of-Code-Contracts-and-Pex/?CommentID=466723</guid><evnet:views>0</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/466723/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>Does it work with the code contracts feature in .net 4.0?</evnet:previewtext><dc:creator>soum</dc:creator><slash:comments>0</slash:comments><wfw:commentRss></wfw:commentRss><trackback:ping>http://channel9.msdn.com/466723/Trackback.aspx</trackback:ping></item><item><title>Re: Re: Manuel Fahndrich and Peli de Halleux - The Synergy of Code Contracts and Pex</title><description>Sure, language syntax would be nice, but that's the language designers job. We've been there (Spec#), done that. We can only influence main stream languages so much. What we are doing now is providing mechanisms and tools without being language designers. Languages can then opt-in and provide whatever syntax they want.&lt;BR&gt;&lt;BR&gt;The advantage to the programmer of course is that in the meantime, until language designers make up their mind, they can already work with this technology.</description><comments></comments><link>http://channel9.msdn.com/posts/Peli/The-Synergy-of-Code-Contracts-and-Pex/?CommentID=466665</link><pubDate>Fri, 24 Apr 2009 21:05:51 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/posts/Peli/The-Synergy-of-Code-Contracts-and-Pex/?CommentID=466665</guid><evnet:views>0</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/466665/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>Sure, language syntax would be nice, but that's the language designers job. We've been there (Spec#), done that. We can only influence main stream languages so much. What we are doing now is providing mechanisms and tools without being language designers. Languages can then opt-in and provide&amp;#8230;</evnet:previewtext><dc:creator>Manuel</dc:creator><slash:comments>0</slash:comments><wfw:commentRss></wfw:commentRss><trackback:ping>http://channel9.msdn.com/466665/Trackback.aspx</trackback:ping></item><item><title>Re: Manuel Fahndrich and Peli de Halleux - The Synergy of Code Contracts and Pex</title><description>It's quite nice to see this for .Net, especially with the smart code injection.&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;The embedded contract language is not as clean as in Eiffel, obviously&lt;/div&gt;&lt;div&gt;&lt;pre&gt;&lt;i&gt;     put &lt;/i&gt;(&lt;i&gt;x&lt;/i&gt;:&lt;i&gt; ELEMENT&lt;/i&gt;;&lt;i&gt; key&lt;/i&gt;:&lt;i&gt; STRING&lt;/i&gt;)&lt;i&gt; &lt;/i&gt;&lt;b&gt;is
&lt;/b&gt;&lt;i&gt;                     &lt;/i&gt;-- Insert &lt;i&gt;x&lt;/i&gt; so that it will be retrievable through &lt;i&gt;key&lt;/i&gt;.
             &lt;b&gt;require
&lt;/b&gt;&lt;i&gt;                     count &amp;lt;= capacity
                     &lt;/i&gt;&lt;b&gt;not &lt;/b&gt;&lt;i&gt;key.empty
             &lt;/i&gt;&lt;b&gt;do
&lt;/b&gt;&lt;i&gt;                     &lt;/i&gt;... Some insertion algorithm ...
             &lt;b&gt;ensure
&lt;/b&gt;&lt;i&gt;                     has &lt;/i&gt;(&lt;i&gt;x&lt;/i&gt;)
&lt;i&gt;                     item &lt;/i&gt;(&lt;i&gt;key&lt;/i&gt;)&lt;i&gt; = x
                     count = &lt;/i&gt;&lt;b&gt;old &lt;/b&gt;&lt;i&gt;count + 1
             &lt;/i&gt;&lt;b&gt;end&lt;/b&gt;&lt;/pre&gt;&lt;pre&gt;&lt;b&gt;Also. &amp;nbsp;I don't quite agree that ensurances should come first (contrary to Eiffel), but granted, using the embedded technique where ther contracts are blended in with the rest of the code, it may be a better technique for readability. Maybe.&lt;br&gt;&lt;/b&gt;&lt;/pre&gt;&lt;pre&gt;It's also striking how much use of contracts can be devoted to the type constraint for reference types that nullness not be part of the domain. How nice it would be with a simple language extension, even if only interpreted as a contract&lt;/pre&gt;&lt;pre&gt;&lt;pre&gt;&lt;i&gt;     add &lt;/i&gt;(Point! x)&lt;/pre&gt;&lt;/pre&gt;&lt;pre&gt;It's again the annoying wrong-default situation; as with of nullness over non-nullness there's also the variance over invariance (well, im/mutability if you will).&lt;/pre&gt;&lt;pre&gt;That Code contracts actually implements the old- and result-semantics is very nice.&amp;nbsp;&lt;/pre&gt;&lt;pre&gt;Can we now expect .Net to be littered with Code Contracts all over for increased code correctness?&lt;/pre&gt;&lt;pre&gt;(oops, there goes the beautiful formatting heh)&lt;/pre&gt;&lt;/div&gt;</description><comments></comments><link>http://channel9.msdn.com/posts/Peli/The-Synergy-of-Code-Contracts-and-Pex/?CommentID=466632</link><pubDate>Fri, 24 Apr 2009 15:47:44 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/posts/Peli/The-Synergy-of-Code-Contracts-and-Pex/?CommentID=466632</guid><evnet:views>0</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/466632/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>It's quite nice to see this for .Net, especially with the smart code injection.The embedded contract language is not as clean as in Eiffel, obviously     put (x: ELEMENT; key: STRING) is
                     -- Insert x so that it will be retrievable through key.
             require
               &amp;#8230;</evnet:previewtext><dc:creator>Bent Rasmussen</dc:creator><slash:comments>0</slash:comments><wfw:commentRss></wfw:commentRss><trackback:ping>http://channel9.msdn.com/466632/Trackback.aspx</trackback:ping></item><item><title>Re: Re: Re: Manuel Fähndrich and Peli de Halleux - The Synergy of Code Contracts and Pex</title><description>No, the problem is fixed now.&lt;br&gt;&lt;br&gt;Thank you.&lt;br&gt;</description><comments></comments><link>http://channel9.msdn.com/posts/Peli/The-Synergy-of-Code-Contracts-and-Pex/?CommentID=466570</link><pubDate>Fri, 24 Apr 2009 06:58:44 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/posts/Peli/The-Synergy-of-Code-Contracts-and-Pex/?CommentID=466570</guid><evnet:views>0</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/466570/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>No, the problem is fixed now.Thank you.</evnet:previewtext><dc:creator>vesuvius</dc:creator><slash:comments>0</slash:comments><wfw:commentRss></wfw:commentRss><trackback:ping>http://channel9.msdn.com/466570/Trackback.aspx</trackback:ping></item><item><title>Re: Re: Manuel Fähndrich and Peli de Halleux - The Synergy of Code Contracts and Pex</title><description>Hi Vesuvius, there were some little errors in the URLs. Do you still have this problem?</description><comments></comments><link>http://channel9.msdn.com/posts/Peli/The-Synergy-of-Code-Contracts-and-Pex/?CommentID=466535</link><pubDate>Thu, 23 Apr 2009 23:03:44 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/posts/Peli/The-Synergy-of-Code-Contracts-and-Pex/?CommentID=466535</guid><evnet:views>0</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/466535/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>Hi Vesuvius, there were some little errors in the URLs. Do you still have this problem?</evnet:previewtext><dc:creator>Peli de Halleux</dc:creator><slash:comments>0</slash:comments><wfw:commentRss></wfw:commentRss><trackback:ping>http://channel9.msdn.com/466535/Trackback.aspx</trackback:ping></item><item><title>Re: Manuel Fähndrich and Peli de Halleux - The Synergy of Code Contracts and Pex</title><description>&lt;P&gt;thats really cool :) &lt;BR&gt;ive been using pex for a while and its really quite amazing how complex tests it can create&amp;nbsp; :)&lt;BR&gt;&lt;/P&gt;</description><comments></comments><link>http://channel9.msdn.com/posts/Peli/The-Synergy-of-Code-Contracts-and-Pex/?CommentID=466521</link><pubDate>Thu, 23 Apr 2009 21:14:53 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/posts/Peli/The-Synergy-of-Code-Contracts-and-Pex/?CommentID=466521</guid><evnet:views>0</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/466521/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>thats really cool :) ive been using pex for a while and its really quite amazing how complex tests it can create&amp;nbsp; :)</evnet:previewtext><dc:creator>Allan Lindqvist</dc:creator><slash:comments>0</slash:comments><wfw:commentRss></wfw:commentRss><trackback:ping>http://channel9.msdn.com/466521/Trackback.aspx</trackback:ping></item><item><title>Re: Manuel Fähndrich and Peli de Halleux - The Synergy of Code Contracts and Pex</title><description>I'm having problems downloading this (in that I cannot at the moment).&lt;br&gt;&lt;br&gt;&amp;nbsp;Anyone else have any joy?&lt;br&gt;</description><comments></comments><link>http://channel9.msdn.com/posts/Peli/The-Synergy-of-Code-Contracts-and-Pex/?CommentID=466511</link><pubDate>Thu, 23 Apr 2009 20:04:33 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/posts/Peli/The-Synergy-of-Code-Contracts-and-Pex/?CommentID=466511</guid><evnet:views>0</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/466511/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>I'm having problems downloading this (in that I cannot at the moment).&amp;nbsp;Anyone else have any joy?</evnet:previewtext><dc:creator>vesuvius</dc:creator><slash:comments>0</slash:comments><wfw:commentRss></wfw:commentRss><trackback:ping>http://channel9.msdn.com/466511/Trackback.aspx</trackback:ping></item></channel></rss>