<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
  version="2.0">
  <channel>
    <title>Krzysztof Cwalina</title>
    <atom:link
      href="https://docs.microsoft.com/archive/blogs/kcwalina/feed.xml"
      rel="self"
      type="application/rss+xml" />
    <link>https://docs.microsoft.com/archive/blogs/kcwalina/feed.xml</link>
    <description>Designing Reusable Frameworks</description>
    <lastBuildDate>Wed, 08 Apr 2015 01:54:17 GMT</lastBuildDate>
    <language>en-US</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <item>
      <title>Talk: A .NET developer's view of Windows 8 Metro style app development</title>
      <link>https://docs.microsoft.com/archive/blogs/kcwalina/talk-a-net-developers-view-of-windows-8-metro-style-app-development</link>
      <pubDate>Tue, 20 Sep 2011 17:50:00 GMT</pubDate>
      <dc:creator><![CDATA[Krzysztof Cwalina]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/kcwalina/2011/09/20/talk-a-net-developers-view-of-windows-8-metro-style-app-development/</guid>
      <description><![CDATA[I just came back from BUILD where I gave a talk about a new .NET profile that managed developers...]]></description>
      <content:encoded><![CDATA[<p>I just came back from <a title="BUILD" href="http://www.buildwindows.com/" target="_blank">BUILD</a> where I gave a talk about a new .NET profile that managed developers will be using when writing Windows 8 Metro style apps. You can watch the video at <a href="https://channel9.msdn.com/Events/BUILD/BUILD2011/TOOL-930C">https://channel9.msdn.com/Events/BUILD/BUILD2011/TOOL-930C</a></p>]]></content:encoded>
    </item>
    <item>
      <title>Portable Library Tools Release</title>
      <link>https://docs.microsoft.com/archive/blogs/kcwalina/portable-library-tools-release</link>
      <pubDate>Wed, 15 Jun 2011 10:49:44 GMT</pubDate>
      <dc:creator><![CDATA[Krzysztof Cwalina]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/kcwalina/2011/06/15/portable-library-tools-release/</guid>
      <description><![CDATA[We just released the official version of the Portable Library Tools. The set of tools and updates to...]]></description>
      <content:encoded><![CDATA[<p>We just released the official version of the Portable Library Tools. The set of tools and updates to .net platform allow you to create dlls that can be used in .NET Framework, Silverlight, Windows Phone, and XBOX projects. You can download the tools <a href="http://visualstudiogallery.msdn.microsoft.com/b0e0b5e9-e138-410b-ad10-00cb3caf4981/" title="here">here</a> and read more about them on <a href="http://msdn.microsoft.com/en-us/library/gg597391.aspx" title="MSDN">MSDN</a>.</p>
<div class="mcePaste" id="_mcePaste" style="position: absolute; width: 1px; height: 1px; overflow: hidden; top: 0px; left: -10000px;">﻿</div>]]></content:encoded>
    </item>
    <item>
      <title>MEF Primitives Explained</title>
      <link>https://docs.microsoft.com/archive/blogs/kcwalina/mef-primitives-explained</link>
      <pubDate>Tue, 09 Jun 2009 12:48:00 GMT</pubDate>
      <dc:creator><![CDATA[Krzysztof Cwalina]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/kcwalina/2009/06/09/mef-primitives-explained/</guid>
      <description><![CDATA[Daniel just wrote a really nice post explaining the basics of MEF primitives. I recommend this to...]]></description>
      <content:encoded><![CDATA[<P>Daniel just wrote a really nice <A href="http://blogs.msdn.com/dsplaisted/archive/2009/06/08/a-crash-course-on-the-mef-primitives.aspx" mce_href="http://blogs.msdn.com/dsplaisted/archive/2009/06/08/a-crash-course-on-the-mef-primitives.aspx">post explaining the basics of MEF primitives</A>. I recommend this to all interested in the internals or in extending MEF.</P>
<P mce_keep="true">&nbsp;</P>]]></content:encoded>
    </item>
    <item>
      <title>Custom Programming Models for MEF (Provider Model Contrib)</title>
      <link>https://docs.microsoft.com/archive/blogs/kcwalina/custom-programming-models-for-mef-provider-model-contrib</link>
      <pubDate>Tue, 03 Mar 2009 17:12:00 GMT</pubDate>
      <dc:creator><![CDATA[Krzysztof Cwalina]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/kcwalina/2009/03/03/custom-programming-models-for-mef-provider-model-contrib/</guid>
      <description><![CDATA[The MEF composition engine operates on (composes) abstractions called ComposableParts. By default,...]]></description>
      <content:encoded><![CDATA[<P style="MARGIN: 0in 0in 10pt" class=MsoNormal><FONT size=3 face=Calibri>The MEF composition engine operates on (composes) abstractions called ComposableParts. By default, parts are implemented as simple .NET classes annotated with MEF attributes (ExportAttribute and ImportAttribute). But, we envision that some parts will be implemented through variety of different mechanisms. For example, parts can be .NET types annotated with external files, DLR objects, XAML files, etc. We call such alternative means of specifying parts “custom programming models.”</FONT></P>
<P style="MARGIN: 0in 0in 10pt" class=MsoNormal><FONT size=3 face=Calibri>In v1 of MEF, we focused on getting the default programming model <U>super easy to use</U> (most MEF users need to only understand a handful of types) and getting the ComposablePart abstractions <U>right</U> (making it possible to create custom programming models). We did not focus on making it easy to create custom programming models (quite advanced scenario).</FONT></P><FONT face=Calibri>
<P style="MARGIN: 0in 0in 10pt" class=MsoNormal><A href="http://www.thecodejunkie.com/"><FONT size=3>Andreas</FONT></A><FONT size=3> stepped in and filled in that hole. He created a </FONT><A href="http://mefcontrib.codeplex.com/Wiki/View.aspx?title=Provider%20Model"><FONT size=3>MEF contrib project</FONT></A><FONT size=3> which is a set of helper libraries that make it quite easy to create custom programming models. For all those who like to play around with internals of technologies like MEF, I recommend looking at the library.</FONT></P></FONT>]]></content:encoded>
    </item>
    <item>
      <title>MEF Preview #4 Released</title>
      <link>https://docs.microsoft.com/archive/blogs/kcwalina/mef-preview-4-released</link>
      <pubDate>Tue, 27 Jan 2009 11:53:00 GMT</pubDate>
      <dc:creator><![CDATA[Krzysztof Cwalina]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/kcwalina/2009/01/27/mef-preview-4-released/</guid>
      <description><![CDATA[We have just released a new update to MEF. I am super excited about this release as it represents...]]></description>
      <content:encoded><![CDATA[<P class=MsoNormal style="MARGIN: 0in 0in 10pt"><FONT face=Calibri size=3>We have just released a new update to </FONT><A href="http://www.codeplex.com/MEF" mce_href="http://www.codeplex.com/MEF"><FONT face=Calibri size=3>MEF</FONT></A><FONT face=Calibri size=3>. I am super excited about this release as it represents something quite close to what we are going to ship in terms of public APIs. In the last milestone, we have done quite significant API cleanup, renamed many core types to what I think will be their final names, and finally we have done some namespace factoring work. Now, the primitives, host APIs, and parts’ APIs are all in separate namespaces.</FONT></P>]]></content:encoded>
    </item>
    <item>
      <title>PDC 2008 Talk: Framework Design Guidelines</title>
      <link>https://docs.microsoft.com/archive/blogs/kcwalina/pdc-2008-talk-framework-design-guidelines</link>
      <pubDate>Thu, 30 Oct 2008 12:00:00 GMT</pubDate>
      <dc:creator><![CDATA[Krzysztof Cwalina]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/kcwalina/2008/10/30/pdc-2008-talk-framework-design-guidelines/</guid>
      <description><![CDATA[Our PDC talk has been posted on Channel9. https://channel9.msdn.com/pdc2008/PC58/. 
Here is the...]]></description>
      <content:encoded><![CDATA[<P>Our PDC talk has been posted on Channel9. <A href="https://channel9.msdn.com/pdc2008/PC58/">https://channel9.msdn.com/pdc2008/PC58/</A>. </P>
<P>Here is the talk summary:</P>
<P><SPAN id=ctl00_MainPlaceHolder_Starter_BodyLabel><EM>Learn about guidelines that have helped the Microsoft .NET Framework grow into the most popular developer framework Microsoft has ever created. After ten years of use, we have an enormous amount of real customer data about what makes great framework design. Whether you are building your own framework or just want to get the most out of the .NET Framework, this is a must-attend talk! Join Krzysztof Cwalina and Brad Abrams, authors of the Dr. Dobbs award winning "Framework Design Guidelines" book, and get a sneak peek at the content from the 2nd edition (first available at PDC2008).</EM></SPAN></P>]]></content:encoded>
    </item>
    <item>
      <title>Framework Design Guidelines Videos</title>
      <link>https://docs.microsoft.com/archive/blogs/kcwalina/framework-design-guidelines-videos</link>
      <pubDate>Mon, 27 Oct 2008 13:00:00 GMT</pubDate>
      <dc:creator><![CDATA[Krzysztof Cwalina]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/kcwalina/2008/10/27/framework-design-guidelines-videos/</guid>
      <description><![CDATA[Brad and I just did a couple of video interviews that are now accessible online. 
In the first one,...]]></description>
      <content:encoded><![CDATA[<P class=MsoNormal style="MARGIN: 0in 0in 10pt"><FONT face=Calibri size=3>Brad and I just did a couple of video interviews that are now accessible online. </FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 10pt"><FONT face=Calibri size=3>In the first one, we are talking about our PDC presentation (for those at the PDC, it’s at 4pm today). You can get it at&nbsp;</FONT><A href="http://www.informit.com/podcasts/episode.aspx?e=5a161893-c1ce-4449-8b67-31baa54ce316" mce_href="http://www.informit.com/podcasts/episode.aspx?e=5a161893-c1ce-4449-8b67-31baa54ce316"><FONT face=Calibri size=3>10 Years of Framework Design Guidelines (video)</FONT></A><FONT face=Calibri size=3>.</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 10pt"><FONT face=Calibri size=3>The second interview is about just released 2<SUP>nd</SUP> edition of the </FONT><A href="https://www.amazon.com/dp/0321545613?tag=cwalina-20&amp;camp=0&amp;creative=0&amp;linkCode=as1&amp;creativeASIN=0321545613&amp;adid=1HWJV1995A31HB5EKE7B&amp;" mce_href="https://www.amazon.com/dp/0321545613?tag=cwalina-20&amp;camp=0&amp;creative=0&amp;linkCode=as1&amp;creativeASIN=0321545613&amp;adid=1HWJV1995A31HB5EKE7B&amp;"><FONT face=Calibri size=3>Framework Design Guidelines book</FONT></A><FONT face=Calibri size=3>. You can get the video at&nbsp;</FONT><A href="http://www.informit.com/podcasts/episode.aspx?e=de5a183c-7bb9-4a0e-9499-73b54ae573b6" mce_href="http://www.informit.com/podcasts/episode.aspx?e=de5a183c-7bb9-4a0e-9499-73b54ae573b6"><FONT face=Calibri size=3>Framework Design Guidelines: Conventions, Idioms, and Patterns for Reusable .NET Libraries (video)</FONT></A></P>
<P class=MsoNormal style="MARGIN: 0in 0in 10pt"><FONT face=Calibri size=3>Enjoy!</FONT></P>]]></content:encoded>
    </item>
    <item>
      <title>MEF on CodePlex</title>
      <link>https://docs.microsoft.com/archive/blogs/kcwalina/mef-on-codeplex</link>
      <pubDate>Fri, 05 Sep 2008 17:00:00 GMT</pubDate>
      <dc:creator><![CDATA[Krzysztof Cwalina]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/kcwalina/2008/09/05/mef-on-codeplex/</guid>
      <description><![CDATA[&nbsp;
We have just released an update to MEF. You can get it at http://www.codeplex.com/MEF 
The...]]></description>
      <content:encoded><![CDATA[<P class=MsoNormal style="MARGIN: 0in 0in 10pt"><FONT face=Calibri size=3></FONT>&nbsp;</P>
<P class=MsoNormal style="MARGIN: 0in 0in 10pt"><FONT face=Calibri size=3>We have just released an update to MEF. You can get it at </FONT><A href="http://www.codeplex.com/MEF" mce_href="http://www.codeplex.com/MEF"><FONT face=Calibri size=3>http://www.codeplex.com/MEF</FONT></A><FONT face=Calibri size=3> </FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 10pt"><FONT face=Calibri size=3>The changes are quite significant:</FONT></P>
<P class=MsoListParagraphCxSpFirst style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo1"><SPAN style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"><SPAN style="mso-list: Ignore"><FONT face=Calibri size=3>1.</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><FONT face=Calibri size=3>The preview ships with sources under a very permissive license (Ms-LPL).</FONT></P>
<P class=MsoListParagraphCxSpMiddle style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo1"><SPAN style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"><SPAN style="mso-list: Ignore"><FONT face=Calibri size=3>2.</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><FONT face=Calibri size=3>We now support constructor injection. Feature that the community asked for.</FONT></P>
<P class=MsoListParagraphCxSpMiddle style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo1"><SPAN style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"><SPAN style="mso-list: Ignore"><FONT face=Calibri size=3>3.</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><FONT face=Calibri size=3>We completely redesigned MEF’s extensibility points. The extensibility points are designed to support writing custom providers of composition data. For example, out of the box MEF requires composable parts to be attributed with attributes that provide metadata describing the composition. We got lots of feedback that this is not acceptable in many scenarios. The new extensibility points make it easier to extend MEF to externalize the metadata (to an XML file for example). Note, that the changes are just the first step toward the goal of making the extensibility easy and powerful. We will most probably keep making improvements in this space in the future, so feedback on the new extensibility points would be more then welcome.</FONT></P>
<P class=MsoListParagraphCxSpLast style="MARGIN: 0in 0in 10pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo1"><SPAN style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"><SPAN style="mso-list: Ignore"><FONT face=Calibri size=3>4.</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><FONT face=Calibri size=3>We significantly cleaned up the container APIs. But as above, there is more clean up to come in the future. </FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 10pt 0.25in"><?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p><FONT face=Calibri size=3>&nbsp;</FONT></o:p></P>]]></content:encoded>
    </item>
    <item>
      <title>Extensible Framework Design Studio Released</title>
      <link>https://docs.microsoft.com/archive/blogs/kcwalina/extensible-framework-design-studio-released</link>
      <pubDate>Sat, 30 Aug 2008 13:19:00 GMT</pubDate>
      <dc:creator><![CDATA[Krzysztof Cwalina]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/kcwalina/2008/08/30/extensible-framework-design-studio-released/</guid>
      <description><![CDATA[This summer we had a high school intern, Nick Moloney, who worked on incorporating MEF into FDS. The...]]></description>
      <content:encoded><![CDATA[<P>This summer we had a high school intern, Nick Moloney, who worked on incorporating <A class="" href="http://blogs.msdn.com/kcwalina/archive/2008/04/25/MEF.aspx" mce_href="http://blogs.msdn.com/kcwalina/archive/2008/04/25/MEF.aspx">MEF</A> into <A class="" href="http://blogs.msdn.com/kcwalina/archive/2008/04/04/8357773.aspx" mce_href="http://blogs.msdn.com/kcwalina/archive/2008/04/04/8357773.aspx">FDS</A>. The fruits of his labor are now on code gallery. You can download the extensible FDS <A class="" href="http://code.msdn.microsoft.com/fds" mce_href="http://code.msdn.microsoft.com/fds">here</A>. Congratulations to Nick!</P>
<P>The current release has just a few extensibility points, but you should expect&nbsp;more in the future.&nbsp;</P>]]></content:encoded>
    </item>
    <item>
      <title>API Design Myth: Exceptions are for "Exceptional Errors"</title>
      <link>https://docs.microsoft.com/archive/blogs/kcwalina/api-design-myth-exceptions-are-for-exceptional-errors</link>
      <pubDate>Thu, 17 Jul 2008 16:09:00 GMT</pubDate>
      <dc:creator><![CDATA[Krzysztof Cwalina]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/kcwalina/2008/07/17/api-design-myth-exceptions-are-for-exceptional-errors/</guid>
      <description><![CDATA[I was updating FDG section on exceptions. I added one anntation that I thought I would post here as...]]></description>
      <content:encoded><![CDATA[<P>I was updating FDG section on exceptions. I added one anntation that I thought I would post here as well:</P>
<P mce_keep="true">&nbsp;</P>
<P>
<TABLE class=MsoNormalTable style="MARGIN: auto auto auto 9pt; BORDER-COLLAPSE: collapse; mso-table-layout-alt: fixed; mso-padding-alt: 9.0pt 9.0pt 9.0pt 9.0pt" cellSpacing=0 cellPadding=0 border=0 class="MsoNormalTable">
<TBODY>
<TR style="HEIGHT: 80pt; mso-yfti-irow: 0; mso-yfti-firstrow: yes; mso-yfti-lastrow: yes">
<TD class="" style="BORDER-RIGHT: black 3pt solid; PADDING-RIGHT: 9pt; BORDER-TOP: black 3pt solid; PADDING-LEFT: 9pt; BACKGROUND: #e6e6e6; PADDING-BOTTOM: 9pt; BORDER-LEFT: black 3pt solid; WIDTH: 423pt; PADDING-TOP: 9pt; BORDER-BOTTOM: black 3pt solid; HEIGHT: 80pt; mso-shading: windowtext; mso-pattern: solid #E6E6E6" vAlign=top width=564>
<P class=AnnotationHead style="MARGIN: 6pt 0in 0pt 0.25in"><SPAN style="mso-no-proof: yes; mso-font-width: 100%"><?xml:namespace prefix = v ns = "urn:schemas-microsoft-com:vml" /><v:shapetype id=_x0000_t75 coordsize="21600,21600" o:spt="75" o:preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe" filled="f" stroked="f"><v:stroke joinstyle="miter"></v:stroke><v:formulas><v:f eqn="if lineDrawn pixelLineWidth 0"></v:f><v:f eqn="sum @0 1 0"></v:f><v:f eqn="sum 0 0 @1"></v:f><v:f eqn="prod @2 1 2"></v:f><v:f eqn="prod @3 21600 pixelWidth"></v:f><v:f eqn="prod @3 21600 pixelHeight"></v:f><v:f eqn="sum @0 0 1"></v:f><v:f eqn="prod @6 1 2"></v:f><v:f eqn="prod @7 21600 pixelWidth"></v:f><v:f eqn="sum @8 21600 0"></v:f><v:f eqn="prod @7 21600 pixelHeight"></v:f><v:f eqn="sum @10 21600 0"></v:f></v:formulas><v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect"></v:path><?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:lock v:ext="edit" aspectratio="t"></o:lock></v:shapetype><v:shape id=Picture_x0020_12 style="VISIBILITY: visible; WIDTH: 12.75pt; HEIGHT: 8.25pt; mso-wrap-style: square" type="#_x0000_t75" o:spid="_x0000_i1025"><v:imagedata mce_src="file:///C:\Users\KRZYSZ~1\AppData\Local\Temp\msohtmlclip1\01\clip_image001.wmz" o:title="" src="file:///C:\Users\KRZYSZ~1\AppData\Local\Temp\msohtmlclip1\01\clip_image001.wmz"></v:imagedata></v:shape></SPAN><SPAN style="mso-font-width: 100%"><o:p></o:p></SPAN></P>
<P class=AnnotationHead style="MARGIN: 6pt 0in 0pt 0.25in"><SPAN style="mso-font-width: 100%"><FONT size=3><FONT face="Times New Roman">KRZYSZTOF CWALINA<o:p></o:p></FONT></FONT></SPAN></P>
<P class=AnnotationBody style="MARGIN: 9pt 0in 12pt"><SPAN style="mso-font-width: 100%"><FONT face=Batang>One of the biggest misconceptions about exceptions is that they are for “exceptional conditions.” The reality is that they are for communicating <U>error</U> conditions. From a framework design perspective, there is no such thing as an “exceptional condition”. Whether a condition is exceptional or not depends on the context of usage, --- but reusable libraries rarely know how they will be used. For example, OutOfMemoryException might be exceptional for a simple data entry application; it’s not so exceptional for applications doing their own memory management (e.g. SQL server). In other words, one man’s exceptional condition is another man’s chronic condition.</FONT></SPAN><o:p></o:p></P></TD></TR></TBODY></TABLE></P>]]></content:encoded>
    </item>
  </channel>
</rss>