ASP.NET MVC注定要取代Webforms吗?

时间:2022-06-13 03:18:50

I found these questions, but a couple of them were a little old:

我发现了这些问题,但其中有几个有点老了:

https://*.com/questions/191556/should-i-pursue-asp-net-webforms-or-asp-net-mvc Do you think ASP.NET MVC will compete with ASP.NET Webforms? ASP.NET MVC > ASP.NET WebForms, Why?

https://*.com/questions/191556/should-i-pursue-asp-net-webforms-or-asp-net-mvc您认为ASP.NET MVC会与ASP.NET Webforms竞争吗? ASP.NET MVC> ASP.NET WebForms,为什么?

I do not believe these are duplicates and might be old enough that new light can be shed. If not please close this.

我不相信这些是重复的,并且可能已经足够大,以至于可以消除新的光。如果没有,请关闭它。

I know that no one framework or language is necessarily the only tool for every job. But, do you see MVC eclipsing webforms or webforms going lower on the priority list for Microsoft? They will have to keep webforms for a long time because so many have invested in it, but they don't have to keep adding new functionality for it.

我知道没有一个框架或语言是每个工作的唯一工具。但是,您是否认为MVC使得网络形式或网络形式在微软的优先级列表中黯然失色?他们将不得不长时间保留webforms,因为有很多人投入了它,但他们不必继续为它添加新的功能。

I don't know if this is a good example, but it reminds me of web parts. I never saw much improvement in it from Microsoft. It works and I thought it was great until I started to really try and get a lot out of it. Then from what I could see it just wasn't being pursued by Microsoft that much, though it stayed in Visual Studio. Maybe that's a bad example; just what I remembered.

我不知道这是一个很好的例子,但它让我想起了网页部分。我从未在微软看到太多改进。它起作用,我认为它很棒,直到我开始真正尝试并从中获得很多。然后从我可以看到它只是没有被微软追求那么多,虽然它留在Visual Studio中。也许这是一个坏榜样;就是我记得的。

EDIT: Also, if anyone has any statements from Microsoft on this subject it is appreciated. No offense to anyone. I was only hoping for something official.

编辑:此外,如果任何人有任何关于此主题的微软声明,我们将不胜感激。对任何人都没有冒犯。我只是希望有一些正式的东西。

9 个解决方案

#1


15  

this Microsoft answer:

这个微软的答案:

ASP.NET MVC provides a framework that enables you to easily implement the model-view-controller (MVC) pattern for Web applications. This pattern lets you separate applications into loosely coupled, pluggable components for application design, processing logic, and display.

ASP.NET MVC提供了一个框架,使您可以轻松地为Web应用程序实现模型 - 视图 - 控制器(MVC)模式。此模式允许您将应用程序分离为松散耦合的可插拔组件,以用于应用程序设计,处理逻辑和显示。

ASP.NET MVC is not a replacement for Webforms. It provides an alternative choice when designing a Web application. Using ASP.NET MVC offers the following advantages:

ASP.NET MVC不是Webforms的替代品。它在设计Web应用程序时提供了另一种选择。使用ASP.NET MVC具有以下优点:

• It enables you to achieve and maintain a clear separation of concerns

•它使您能够实现并保持明确的关注点分离

• It facilitates test driven development (TDD)

•它有助于测试驱动开发(TDD)

• It provides more control over the URLs you publish in the application and over the HTML that is emitted by the application

•它可以更好地控制您在应用程序中发布的URL以及应用程序发出的HTML

#2


10  

They both have different strengths.

他们都有不同的优势。

MVC is great for public internet sites where precise control of the html and page lifecycle is important.

MVC非常适合公共互联网站点,其中精确控制html和页面生命周期非常重要。

Webforms are great for corporate lan intranet sites, where development speed is critical, upstream bandwidth to the web server is plentiful, but memory on the server is more constrained.

Webforms非常适合企业局域网内部网站,其中开发速度至关重要,Web服务器的上游带宽很多,但服务器上的内存更受限制。

Honestly, more asp.net programmers are probably doing the latter than the former.

老实说,更多的asp.net程序员可能正在做后者而不是前者。

#3


5  

WebForms are not going away. Microsoft gave it's developers a way to choose between traditional asp.net programming and the popular MVC way of programming. It's not competing against webforms it's just another choice for developers to use. Very Smart move from Microsoft to keep a hold of it's developer base.

WebForms不会消失。微软为它的开发人员提供了一种在传统的asp.net编程和流行的MVC编程方式之间进行选择的方法。它不是与webforms竞争,它只是开发人员使用的另一种选择。非常聪明的移动来自微软,以保持其开发人员基础。

#4


3  

I think ASP.NET MVC allows building much more maintainable applications. It also allows for automated testing of a very large part of the code.

我认为ASP.NET MVC允许构建更易于维护的应用程序。它还允许自动测试很大一部分代码。

If a website is reasonable in size and/or is going to have a reasonable life span then MVC plays a very good role.

如果一个网站的规模合理和/或将有一个合理的寿命,那么MVC起着非常好的作用。

I understand the argument of SEO for public sites, but I think the benefits of MVC make it excellent candidate for even intranet applications. Perhaps with some good collection user controls i.e helper methods, MVC can start dominating the field.

我理解SEO对于公共站点的论点,但我认为MVC的好处使其成为甚至内联网应用程序的绝佳候选者。也许有一些好的收集用户控件,即辅助方法,MVC可以开始统治该领域。

#5


2  

I believe rather developers' focus of interest will shift towards MVC.

我相信开发人员的兴趣重点将转向MVC。

As for the practical use scenarios, WebForms will likely continue to be used for applications and rather "closed" sites, while MVC will be the preferred choice for those sites facing public (and search engines, yes).

至于实际使用场景,WebForms可能会继续用于应用程序而非“封闭”站点,而MVC将是面向公众(和搜索引擎,是)的那些站点的首选。

#6


0  

Just like everything else, I think further development will depend on how popular it becomes. The more people use it, the more Microsoft will likely invest in it's future.

就像其他一切一样,我认为进一步的发展将取决于它的受欢迎程度。人们使用它的人越多,微软就越有可能投资它的未来。

It already seems to be quite popular, and judging from the popularity of similar frameworks in other languages (e.g. struts or rails) I think it'll continue to gain popularity.

它似乎已经非常受欢迎,从其他语言(例如struts或rails)类似框架的流行来看,我认为它将继续受欢迎。

#7


0  

See my response last time:

上次查看我的回复:

Is ASP.NET MVC swept under the rug to make room for MVC?

ASP.NET MVC是否在地毯之下为MVC腾出空间?

#8


0  

I believe ASP.NET MVC is not here to replace WebForms.

我相信ASP.NET MVC不会取代WebForms。

Instead it will give an alternative for ASP.NET developers who want to develop with separation of logic and view in mind, as well as performance and ease.

相反,它将为那些希望开发逻辑和视图分离以及性能和易用性的ASP.NET开发人员提供替代方案。

#9


0  

The introduction of .Net was bad for developers that had mastered VbScript, ASP Classic and being the few elite that could actually debug in Visual InterDev.

对于已经掌握了VbScript,ASP Classic以及可以在Visual InterDev中实际调试的少数精英的开发人员来说,.Net的引入是不好的。

MVC is bad for those continuing on the path of WebForms only.

MVC对那些只在WebForms路径上继续存在的人来说是不好的。

Pretty much by this time you should be able to recognize the hand writting on the walls as to whats coming down the pike.

几乎到了这个时候你应该能够识别墙上的手写作是什么来到长矛。

#1


15  

this Microsoft answer:

这个微软的答案:

ASP.NET MVC provides a framework that enables you to easily implement the model-view-controller (MVC) pattern for Web applications. This pattern lets you separate applications into loosely coupled, pluggable components for application design, processing logic, and display.

ASP.NET MVC提供了一个框架,使您可以轻松地为Web应用程序实现模型 - 视图 - 控制器(MVC)模式。此模式允许您将应用程序分离为松散耦合的可插拔组件,以用于应用程序设计,处理逻辑和显示。

ASP.NET MVC is not a replacement for Webforms. It provides an alternative choice when designing a Web application. Using ASP.NET MVC offers the following advantages:

ASP.NET MVC不是Webforms的替代品。它在设计Web应用程序时提供了另一种选择。使用ASP.NET MVC具有以下优点:

• It enables you to achieve and maintain a clear separation of concerns

•它使您能够实现并保持明确的关注点分离

• It facilitates test driven development (TDD)

•它有助于测试驱动开发(TDD)

• It provides more control over the URLs you publish in the application and over the HTML that is emitted by the application

•它可以更好地控制您在应用程序中发布的URL以及应用程序发出的HTML

#2


10  

They both have different strengths.

他们都有不同的优势。

MVC is great for public internet sites where precise control of the html and page lifecycle is important.

MVC非常适合公共互联网站点,其中精确控制html和页面生命周期非常重要。

Webforms are great for corporate lan intranet sites, where development speed is critical, upstream bandwidth to the web server is plentiful, but memory on the server is more constrained.

Webforms非常适合企业局域网内部网站,其中开发速度至关重要,Web服务器的上游带宽很多,但服务器上的内存更受限制。

Honestly, more asp.net programmers are probably doing the latter than the former.

老实说,更多的asp.net程序员可能正在做后者而不是前者。

#3


5  

WebForms are not going away. Microsoft gave it's developers a way to choose between traditional asp.net programming and the popular MVC way of programming. It's not competing against webforms it's just another choice for developers to use. Very Smart move from Microsoft to keep a hold of it's developer base.

WebForms不会消失。微软为它的开发人员提供了一种在传统的asp.net编程和流行的MVC编程方式之间进行选择的方法。它不是与webforms竞争,它只是开发人员使用的另一种选择。非常聪明的移动来自微软,以保持其开发人员基础。

#4


3  

I think ASP.NET MVC allows building much more maintainable applications. It also allows for automated testing of a very large part of the code.

我认为ASP.NET MVC允许构建更易于维护的应用程序。它还允许自动测试很大一部分代码。

If a website is reasonable in size and/or is going to have a reasonable life span then MVC plays a very good role.

如果一个网站的规模合理和/或将有一个合理的寿命,那么MVC起着非常好的作用。

I understand the argument of SEO for public sites, but I think the benefits of MVC make it excellent candidate for even intranet applications. Perhaps with some good collection user controls i.e helper methods, MVC can start dominating the field.

我理解SEO对于公共站点的论点,但我认为MVC的好处使其成为甚至内联网应用程序的绝佳候选者。也许有一些好的收集用户控件,即辅助方法,MVC可以开始统治该领域。

#5


2  

I believe rather developers' focus of interest will shift towards MVC.

我相信开发人员的兴趣重点将转向MVC。

As for the practical use scenarios, WebForms will likely continue to be used for applications and rather "closed" sites, while MVC will be the preferred choice for those sites facing public (and search engines, yes).

至于实际使用场景,WebForms可能会继续用于应用程序而非“封闭”站点,而MVC将是面向公众(和搜索引擎,是)的那些站点的首选。

#6


0  

Just like everything else, I think further development will depend on how popular it becomes. The more people use it, the more Microsoft will likely invest in it's future.

就像其他一切一样,我认为进一步的发展将取决于它的受欢迎程度。人们使用它的人越多,微软就越有可能投资它的未来。

It already seems to be quite popular, and judging from the popularity of similar frameworks in other languages (e.g. struts or rails) I think it'll continue to gain popularity.

它似乎已经非常受欢迎,从其他语言(例如struts或rails)类似框架的流行来看,我认为它将继续受欢迎。

#7


0  

See my response last time:

上次查看我的回复:

Is ASP.NET MVC swept under the rug to make room for MVC?

ASP.NET MVC是否在地毯之下为MVC腾出空间?

#8


0  

I believe ASP.NET MVC is not here to replace WebForms.

我相信ASP.NET MVC不会取代WebForms。

Instead it will give an alternative for ASP.NET developers who want to develop with separation of logic and view in mind, as well as performance and ease.

相反,它将为那些希望开发逻辑和视图分离以及性能和易用性的ASP.NET开发人员提供替代方案。

#9


0  

The introduction of .Net was bad for developers that had mastered VbScript, ASP Classic and being the few elite that could actually debug in Visual InterDev.

对于已经掌握了VbScript,ASP Classic以及可以在Visual InterDev中实际调试的少数精英的开发人员来说,.Net的引入是不好的。

MVC is bad for those continuing on the path of WebForms only.

MVC对那些只在WebForms路径上继续存在的人来说是不好的。

Pretty much by this time you should be able to recognize the hand writting on the walls as to whats coming down the pike.

几乎到了这个时候你应该能够识别墙上的手写作是什么来到长矛。