在做 ASP.NET 时如何决定哪个是正确的,WebForms 还是 MVC [英] How to decide which is right, WebForms or MVC when doing ASP.NET

查看:20
本文介绍了在做 ASP.NET 时如何决定哪个是正确的,WebForms 还是 MVC的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我即将为我的体育俱乐部开始一个用于会员注册的小项目,我正在尝试在 WebForms 或 MVC 之间做出决定.

So I'm about to start of a small project for my sporting club for member registrations and I'm trying to decide between WebForms or MVC.

Allit 将是一个用户登录和数据捕获表单(或和数据检索),所以我最初考虑使用 FBA 的 WebForms,但我想玩 MVC 有一段时间了,我认为它不会不错的选择.

Allit will be is a user login and data capture forms (or and data retrieval), so I was initally thinking WebForms with FBA but I've wanted to have a play with MVC for a while and I was thinking that it wouldn't be too bad a choice.

但我对 MVC 的了解并不多,我不知道它是否合适.

But not really having a lot of knowledge of MVC I don't know if it'd be a wrong fit.

那么确定 WebForms 还是 MVC 是正确选择的好方法是什么?

So what's a good way to decide if WebForms or MVC is the right choice?

推荐答案

这是一个关键的生产级应用程序还是一个小的一次性应用程序?您能否处理 MVC 的学习曲线将花费的额外时间,或者您是否需要立即完成?如果 MVC 行不通,你能负担得起放弃整个事情并重新开始吗?在开发过程中,您是否愿意改变平台(现在可能不会太多,因为它处于测试阶段)?是否有另一个不太重要的项目,您可以使用 MVC 来学习它.

Is this a critical, production level application or a small one-off? Can you deal with the extra time that the learning curve of MVC will take or do you need to have it done right-away? Can you afford to scrap the whole thing and start over if MVC doesn't work out? Are you willing to have the platform change (probably not much now that it's in beta) while you are developing? Is there another project that is less critical that you could use MVC on to learn it.

根据你如何回答这些问题,在这个项目上学习 MVC 可能是值得的.就个人而言,我认为它是一个更好的架构,但在这一点上是一个不太成熟的技术.它无疑增加了我的网络代码的可测试性.我希望在接下来的一年左右的时间里,我的所有开发都朝着这个方向发展,尽管我怀疑我是否会改变我已经开发了一段时间的任何项目的齿轮.我刚刚在 MVC 中开始了我的第一个新项目.直到它进入测试阶段我才愿意承诺它,我认为它会在我完成项目之前投入生产.

Depending on how you answer these questions, learning MVC on this project might be worth it. Personally, I think it is a better architecture, but a less mature technology at this point. It has certainly increased the testability of my web code. I expect to move all of my development in this direction over the next year or so, though I doubt if I will change gears in any of the projects that I have had under development for awhile. I've just started my first new project in MVC. I wasn't willing to commit to it until it went into beta and I think that it will be in production before I'm finished with the project.

这篇关于在做 ASP.NET 时如何决定哪个是正确的,WebForms 还是 MVC的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆