面向组合的编程 (COP)、.NET 4.0、MEF 和 Oslo 存储库
去年,.NET 社区中似乎对 COP 产生了一些兴趣(ala Qi4j)。 一些人已经推出了自己的 COP 框架(请参阅下面的链接),并且 .NET 4.0 的动态调度和 MEF 可能会在任何 .NET COP 框架中发挥潜在作用。
一方面,其中很多内容似乎让人回想起 System/38 days 的想法(是的,我是个老家伙),尽管另一方面,它似乎也相当不错与奥斯陆(建模和存储库)相匹配。 谁能评论一下微软是否在 COP 方面做了任何工作?
最近的一些 .NET COP 框架工作:
Hendry Luk - Roll Your Own COP
Yves GoEleven.com - Cop - 概念证明
Anders Norås - 技巧还是特质? 使用 C# 进行面向复合编程
Magnus Mårtensson - Unity 应用程序块上的面向复合编程尖峰
There seems to have been some interest over the past year around COP within the .NET community (ala Qi4j). A few folks have rolled there own COP frameworks (see links below) and it would appear .NET 4.0's Dynamic Dispatch and MEF might have a potential role in any .NET COP framework.
On one hand a lot of this would appear to hark back to ideas from System/38 days (yes, I'm an old guy), though on the other it would also seem to be a pretty good fit with Oslo (Modeling and Repository). Can anyone comment on the whether Microsoft is doing any work on COP?
Some recent .NET COP framework efforts:
Hendry Luk - Roll Your Own COP
Yves GoEleven.com - Cop - Proof of concept
Anders Norås - Trick or Trait? Composite Oriented Programming with C#
Magnus Mårtensson - Composite Oriented Programming spike on Unity Application Block
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
Aku - CAB / 复合 WPF 指南和 COP 之间存在相当大的差异,COP 是通过基于 [域] 上下文的“片段”组装来表达对象行为的根本不同的方法。 .NET 4.0 中 Mixins、Concerns、Constraints 和 SideEffects 的出现可能都指向这个方向,但我想我更好奇 Microsoft 是否偶然或以任何方式正式“执行 COP”,特别是在奥斯陆存储库的顶部。
Aku - There is considerable difference between the CAB / Composite WPF guidance and COP which is a fundamentally different approach to the expression of object behavior via the assembly of 'fragments' based on [Domain] context. The appearance of Mixins, Concerns, Constraints, and SideEffects in .NET 4.0 variously might point in that direction, but I guess I'm more specifically curious if Microsoft is by chance, or in any way, formally "doing COP" and in particular on top of the Oslo repository.
微软发布了复合应用程序块和复合 WPF,他们有 DI FW (Unity)。 现在他们正在研究MEF。
我们应该在这里发表什么评论?
Microsoft released Composite Application Block and Composite WPF, They have DI FW (Unity). Now they are working on MEF.
What should we comment here ?
检查 MEF http://mef.codeplex.com,当前在 .NET 4 中提供,更多内容请参见 PDC 会话< a href="http://microsoftpdc.com/Sessions/FT24" rel="nofollow noreferrer">http://microsoftpdc.com/Sessions/FT24
Check MEF http://mef.codeplex.com, currently shipped inside .NET 4, more in PDC session http://microsoftpdc.com/Sessions/FT24