<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom"><title type="text">博客园_hiber</title><subtitle type="text">Do the simplest thing possible, but no simpler.</subtitle><id>http://feed.cnblogs.com/blog/u/17373/rss</id><updated>2010-01-22T08:47:26Z</updated><author><name>芭蕉</name><uri>http://www.cnblogs.com/hiber/</uri></author><generator>CNBlogs BlogServer</generator><link rel="alternate" type="text/html" href="http://www.cnblogs.com/hiber/"/><link rel="self" type="application/atom+xml" href="http://feed.cnblogs.com/blog/u/17373/rss"/><entry><id>http://www.cnblogs.com/hiber/archive/2010/01/22/1654313.html</id><title type="text">Model-View-ViewModel(MVVM) with MEF</title><summary type="text">今天看David Wynne写的一篇如果在MVVM中使用MEF进行扩展的文章，总的来说例子写的很好，可是有一个很命的地方，View是硬编码(hardcoded)到Main window中的，我就借花献佛，把它的例子稍稍改一下，以使它真正的好扩展。基本上改动不大，直接贴代码吧App.csCode highlighting produced by Actipro CodeHighlighter (fr...</summary><published>2010-01-22T08:46:00Z</published><updated>2010-01-22T08:46:00Z</updated><author><name>芭蕉</name><uri>http://www.cnblogs.com/hiber/</uri></author><link rel="alternate" href="http://www.cnblogs.com/hiber/archive/2010/01/22/1654313.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/hiber/archive/2010/01/22/1654313.html"/></entry><entry><id>http://www.cnblogs.com/hiber/archive/2010/01/08/1642319.html</id><title type="text">使用EnvDTE自动格式整个工程</title><summary type="text">今天看一C#开源工程的源代码觉得很不习惯，因为作者是使用C++ coding style组织代码的, VS只有自动格式单个文件代码的功能(Edit -&amp;gt; Advanced -&amp;gt; Format Document)， 没有自动格式整个工程的选项，没办法，只能自己动手写个宏了。首先打开Marcos Explorer ( Tools -&amp;gt; Marcors -&amp;gt; Macro Expl...</summary><published>2010-01-08T08:12:00Z</published><updated>2010-01-08T08:12:00Z</updated><author><name>芭蕉</name><uri>http://www.cnblogs.com/hiber/</uri></author><link rel="alternate" href="http://www.cnblogs.com/hiber/archive/2010/01/08/1642319.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/hiber/archive/2010/01/08/1642319.html"/></entry><entry><id>http://www.cnblogs.com/hiber/archive/2010/01/07/1641148.html</id><title type="text">Inversion of Control</title><summary type="text">The following article is mainly from Prism documentation, it's just a review of IoC.Having class depends on services or components whose concrete type is specified at the design time introduced severa...</summary><published>2010-01-07T05:10:00Z</published><updated>2010-01-07T05:10:00Z</updated><author><name>芭蕉</name><uri>http://www.cnblogs.com/hiber/</uri></author><link rel="alternate" href="http://www.cnblogs.com/hiber/archive/2010/01/07/1641148.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/hiber/archive/2010/01/07/1641148.html"/></entry><entry><id>http://www.cnblogs.com/hiber/archive/2010/01/05/1639769.html</id><title type="text">Duck Typing in C#</title><summary type="text">"when I see a bird that walks like a duck and swims like a duck and quacks like a duck, I call that bird a duck" -- James Whitcomb RileyIt's really easy to implement duck typing in C# 4.0 since it int...</summary><published>2010-01-05T09:00:00Z</published><updated>2010-01-05T09:00:00Z</updated><author><name>芭蕉</name><uri>http://www.cnblogs.com/hiber/</uri></author><link rel="alternate" href="http://www.cnblogs.com/hiber/archive/2010/01/05/1639769.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/hiber/archive/2010/01/05/1639769.html"/></entry><entry><id>http://www.cnblogs.com/hiber/archive/2010/01/04/1639012.html</id><title type="text">Dynamic Proxy</title><summary type="text">Castle Dynamic Proxy is a library forgenerating lightweitgh .NET Proxy on the fly at run time. it worked as generating a subclassof the given class and overried the virtual method at the run time. 　　L...</summary><published>2010-01-04T08:19:00Z</published><updated>2010-01-04T08:19:00Z</updated><author><name>芭蕉</name><uri>http://www.cnblogs.com/hiber/</uri></author><link rel="alternate" href="http://www.cnblogs.com/hiber/archive/2010/01/04/1639012.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/hiber/archive/2010/01/04/1639012.html"/></entry><entry><id>http://www.cnblogs.com/hiber/archive/2009/12/31/1636847.html</id><title type="text">C# 4.0 Dynamic --通过DLR直接调用IronPython</title><summary type="text">前两天在园子里看到一篇用C#实现Python Decorator的文章，看的时候就在想应该可以用C# 4.0 Dynamic来搞。今中午有时间试了一下，果然可以. 本文假设你己安装了VS2010 Beta2和 IronPython 2.6 for .NET 4.0 Beta2， 首先创建一个Console App并引用如下Dll (可以在你的IronPython安装目录中找到)IronPython...</summary><published>2009-12-31T06:49:00Z</published><updated>2009-12-31T06:49:00Z</updated><author><name>芭蕉</name><uri>http://www.cnblogs.com/hiber/</uri></author><link rel="alternate" href="http://www.cnblogs.com/hiber/archive/2009/12/31/1636847.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/hiber/archive/2009/12/31/1636847.html"/></entry><entry><id>http://www.cnblogs.com/hiber/archive/2009/12/28/1634141.html</id><title type="text">介绍一个Python进行函数式编程时有用的module</title><summary type="text">随着微软对动态语言，函数式语言的重视，我们(微软阵营的.Net程度员）也越来越多的开始使用这些"新的语言，新的思想"来完成我们的一些日常工作。对我们来说，动态语言有IronPython, IronRuby可选，函数式语言有F#。F#功能是很强大，但对新手来说，其代码可读性就差一些，经常能看到人抱怨F#写出来的代码丑陋，看不懂。 相反，Python作为一种动态语言，语法简洁，写出的代码也是相当漂亮，...</summary><published>2009-12-28T06:58:00Z</published><updated>2009-12-28T06:58:00Z</updated><author><name>芭蕉</name><uri>http://www.cnblogs.com/hiber/</uri></author><link rel="alternate" href="http://www.cnblogs.com/hiber/archive/2009/12/28/1634141.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/hiber/archive/2009/12/28/1634141.html"/></entry><entry><id>http://www.cnblogs.com/hiber/archive/2009/12/28/1633696.html</id><title type="text">lambda in F#</title><summary type="text">F#中的lambda表达式很容易给人造成误解，好象它只支持单行的语句，其实不然，它是可以支持多行的，比如let f = (fun () -&amp;gt; (printf "hello" printfn " world" )) 只是上面这种写法实在太过难看，所以一般推荐写成一行，语句之间用分号隔开，letf = (fun() -&amp;gt; ( printf "hello"; printfn "world")...</summary><published>2009-12-27T16:15:00Z</published><updated>2009-12-27T16:15:00Z</updated><author><name>芭蕉</name><uri>http://www.cnblogs.com/hiber/</uri></author><link rel="alternate" href="http://www.cnblogs.com/hiber/archive/2009/12/28/1633696.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/hiber/archive/2009/12/28/1633696.html"/></entry><entry><id>http://www.cnblogs.com/hiber/archive/2009/12/25/1632085.html</id><title type="text">UML类关系图标识速记</title><summary type="text">实箭头:　　虚线：Dependence，表示一种比较弱的依赖关系，某个类在某一段时间可能使用另一个类。　　实线：表示两个对象间的关系，根据对象间有无主从(Owner)关系,可有分为两类　　　　无主从关系: Association, 两个对象的创建和销毁都彼此独立　　　　有主从关系, 既一个对象被创建后只能属于创建它的对象，不能同时被别的对象使用。根据两个对象的生命周期的依赖关系又可分为两类:　　　...</summary><published>2009-12-25T06:10:00Z</published><updated>2009-12-25T06:10:00Z</updated><author><name>芭蕉</name><uri>http://www.cnblogs.com/hiber/</uri></author><link rel="alternate" href="http://www.cnblogs.com/hiber/archive/2009/12/25/1632085.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/hiber/archive/2009/12/25/1632085.html"/></entry><entry><id>http://www.cnblogs.com/hiber/archive/2009/12/24/1631366.html</id><title type="text">Python functions</title><summary type="text">Python中函数支持default value和keyword arguments(类似于C# 4.0中引入的named and optional parameters). 唯一需要注意的地方就是在一个scope中默认值只会被计算一次，所以如果默认值是可变容器时，要注意side effects.比如def f(a, L=[]):　　L.append(a)　　return Lf(1) // ret...</summary><published>2009-12-24T05:37:00Z</published><updated>2009-12-24T05:37:00Z</updated><author><name>芭蕉</name><uri>http://www.cnblogs.com/hiber/</uri></author><link rel="alternate" href="http://www.cnblogs.com/hiber/archive/2009/12/24/1631366.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/hiber/archive/2009/12/24/1631366.html"/></entry></feed>
