MVP 实现 - 智能客户端软件工厂 (SCSF) 与 MVC# 框架
我发现这两个工具可以帮助在 Microsoft .NET 中实现 MVP 模式:为企业构建应用程序。这本书只有几段关于它们的内容,所以我想更深入地探讨它们。
我目前只关心 .NET Windows Forms 开发。我还没有使用过这两个工具,并且很好奇是否有人有使用过这两个/任何一个工具的经验。两者有何优缺点?两者具有可比性,或者一个比另一个更“事实上”。
不熟悉这些工具的链接:
I came across these two tools to help in implementing the MVP pattern in Microsoft .NET: Architecting Applications for the Enterprise. The book just has a few paragraphs about them, so I'd like to explore them more in-depth.
I currently am only concerned with .NET Windows Forms development. I haven't used either tool yet, and was curious if anyone has had experience with both/either of them. What are the pros and cons between the two? Are both comparable, or is one more "De facto" than the other.
Links for those unfamiliar about the tools:
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好吧,由于很少有人浏览过此页面,也没有人发表评论/回答,既然我已经对这两个问题进行了一些研究,我将回答我自己的问题。
MVC# Framework 看起来像一个不错的轻量级项目,但它仍处于测试阶段,在过去两年左右的时间里没有太多活动(因此只有 VS 2008 版本,尽管它可能工作得很好在 VS2010 中)。我有点担心在生产代码中使用它,因为它的未来/成熟度可能存在问题。这是不幸的,因为 Dino Esposito 在他的书中热情地提到了这一点(这本书是在 MVC# 出版时写的)。
SCSF 似乎是一个重量级项目,但得到了 Microsoft 模式和实践团队的支持。它有一个针对 VS 2010(以及 2008)的版本。它尚未处于测试阶段,因此应该是一个更成熟的选择。它还使用企业库5.0。由于我对 Unity 的 IoC 和 AOP 目的感兴趣,因此对 Enterprise Library 5.0 的依赖不会是一个大问题。尽管如此,我担心这仍然是一个过于重量级、瑞士军刀般的项目。 Enterprise Library 也是如此(我提到了对它的兴趣,因为它可能更容易卖给不熟悉相关敏捷模式和实践的其他开发人员,因为它是“来自 Microsoft”)。
不过,这两个工具似乎都不是“事实上的”(MVP 中似乎不存在这样的工具)。因此,我非常愿意听取有关在 Windows 窗体中实现 MVP 的其他方法的评论。国产的最好吗?
Well, since few have viewed this page and none have commented/answered, I'll provide an answer to my own question, now that I've researched a bit about both.
MVC# Framework looks like a nice lightweight project, but it is still in beta and hasn't had much activity in the past 2 years or so (thus only a VS 2008 release, though it probably works fine in VS2010). I am a bit concerned using it in production code as it's future/maturity might be in question. This is unfortunate as it was mentioned with enthusiasm by Dino Esposito in his book (which was written around the time MVC# came out).
SCSF appears to be a heavyweight project, but is supported by the Patterns and Practices team at Microsoft. It has a release for VS 2010 (as well as 2008). It is not in beta and should thus be a more mature option. It also uses the Enterprise Library 5.0. Since I am interested in Unity for IoC and perhaps AOP purposes, the dependency on Enterprise Library 5.0 won't be a big deal. That said, I worry that this is still too heavyweight, swiss-army-knife, a project. The same can be said of Enterprise Library (I mentioned interest in it as it might be an easier sell to other developers unfamiliar with relevant agile patterns and practices since it's "from Microsoft").
Neither of these tools appear to be "de facto" though (such a tool doesn't seem to exist here with MVP). So I'm all ears for comments on other approaches to MVP implementation in windows forms. Is homegrown best?