如果我的最终目标是ASP.NET MVC,我应该学习多少ASP.NET?

时间:2022-09-11 10:28:06

Starting from scratch with very little knowledge of .NET, how much ASP.NET should I learn before I start to dive in ASP.NET MVC?

从头开始,对.NET知之甚少,在开始学习ASP.NET MVC之前,我应该学习多少ASP.NET?

7 个解决方案

#1


17  

Actually, I would posit that you should learn very little traditional ASP.NET webforms, or not at all.

实际上,我认为你应该学习很少的传统ASP.NET网页,或者根本不学习。

ASP.NET MVC uses a totally different paradigm than "traditional" ASP.NET webforms, and unlearning part of it is almost a requisite. The core engine of ASP.NET webforms -- the Page Lifecycle and the Viewstate -- are both absent in ASP.NET MVC.

ASP.NET MVC使用了一种完全不同于“传统”ASP.NET网页的范例,而它的部分内容几乎是必不可少的。 ASP.NET MVC的核心引擎 - 页面生命周期和视图状态 - 在ASP.NET MVC中都不存在。

This is especially true if you come from a background that is more akin to MVC, like PHP, or Ruby on Rails.

如果你来自一个更类似于MVC的背景,如PHP或Ruby on Rails,则尤其如此。

#2


2  

Buy a simple book and go thorugh the asp.net mvc nerddinner example of scottgu. It will cover all the aspect of the real application.

买一本简单的书,然后去scottgu的asp.net mvc nerddinner例子。它将涵盖实际应用的所有方面。

here is the link: http://weblogs.asp.net/scottgu/archive/2009/04/28/free-asp-net-mvc-nerddinner-tutorial-now-in-html.aspx

这是链接:http://weblogs.asp.net/scottgu/archive/2009/04/28/free-asp-net-mvc-nerddinner-tutorial-now-in-html.aspx

and here is the real site: www.nerddinner.com

这是真正的网站:www.nerddinner.com

#3


2  

Ideally you should learn MVC first as it forces you to learn and understand the various parts of the web such as HTTP Requests, the statelessness of the web, HTML, CSS, etc.

理想情况下,您应首先学习MVC,因为它会迫使您学习和理解Web的各个部分,例如HTTP请求,Web的无状态,HTML,CSS等。

As a result, if you ever decide to use webforms, or are forced to use webforms, you understand how things are abstracted away and can better code to the efficiencies of the application.

因此,如果您决定使用webforms,或者*使用webforms,您就会了解事物是如何被抽象出来的,并且可以更好地编写应用程序的效率。

The appeal of drag and drop from webforms might be very very appealing at first. But after a little time, you can see how nice MVC is for the fact that it forces you to take total control of your code from the get go.

从webforms拖放的吸引力起初可能非常吸引人。但是过了一会儿,你可以看到MVC有多好,因为它迫使你从一开始就完全控制你的代码。

Personally, I dabbled in webforms for a little bit -- but after using MVC, there's no going back. And on a side not, MVC is built on top of webforms, so you can always use them if you want to.

就个人而言,我稍微涉足了网络形式 - 但在使用MVC之后,就没有回头了。而在一方面,MVC是建立在webforms之上的,因此如果你愿意,你可以随时使用它们。

#4


1  

As much as you possibly can.

尽你所能。

The more you know and understand the more effective you will be.

你知道的越多,理解的越有效。

#5


0  

Around **-**100% of the webforms should be enough, considering webforms are more about having things automatically handled for you and ASP.NET MVC means A LOT more control over most of the things :)

大约** - ** 100%的网络表格应该足够了,考虑到webforms更多的是为你自动处理事物而ASP.NET MVC意味着对大多数事情有更多的控制:)

#6


0  

I think it depends on your programming background. If you are already familiar with web development and its stateless nature, then by all means learn MVC first. It is much more "pure" web development. However, it requires a much more in-depth understanding of how the web works.

我认为这取决于你的编程背景。如果您已经熟悉Web开发及其无状态特性,那么请务必先学习MVC。它更加“纯粹”的Web开发。但是,它需要更深入地了解网络的工作原理。

On the other hand, if you are used to developing in a stateful environment, it can be much more comfortable to learn Web Forms first. If you are trying to learn a new language/platform, adding the extra trauma of learning to work with a stateless environment is unnecessary and may slow your progress.

另一方面,如果您习惯于在有状态的环境中进行开发,那么首先学习Web表单会更加舒适。如果您正在尝试学习一种新的语言/平台,则无需添加额外的学习创伤来处理无状态环境,这可能会减慢您的进度。

Ultimately, it comes down to what you are comfortable with. Read up on both, and see which makes more sense for yourself personally, and for the task at hand. Neither Web Forms nor MVC are the end-all be-all of web development. They are both tools, and as with all tools, each is appropriate for different tasks.

归根结底,它取决于你所熟悉的东西。阅读两者,看看哪个对自己更有意义,对于手头的任务。 Web Forms和MVC都不是Web开发的最终目标。它们都是工具,与所有工具一样,每个工具都适用于不同的任务。

#7


0  

As much as you can. ASP.NET MVC is only part of ASP.NET - so for building scalable and fast ASP.NET MVC applications you actually must learn "all" ASP.NET (I think you must learn Webforms too - at least partially)

尽你所能地。 ASP.NET MVC只是ASP.NET的一部分 - 因此,对于构建可伸缩且快速的ASP.NET MVC应用程序,您实际上必须学习“所有”ASP.NET(我认为您也必须学习Webforms - 至少部分)

#1


17  

Actually, I would posit that you should learn very little traditional ASP.NET webforms, or not at all.

实际上,我认为你应该学习很少的传统ASP.NET网页,或者根本不学习。

ASP.NET MVC uses a totally different paradigm than "traditional" ASP.NET webforms, and unlearning part of it is almost a requisite. The core engine of ASP.NET webforms -- the Page Lifecycle and the Viewstate -- are both absent in ASP.NET MVC.

ASP.NET MVC使用了一种完全不同于“传统”ASP.NET网页的范例,而它的部分内容几乎是必不可少的。 ASP.NET MVC的核心引擎 - 页面生命周期和视图状态 - 在ASP.NET MVC中都不存在。

This is especially true if you come from a background that is more akin to MVC, like PHP, or Ruby on Rails.

如果你来自一个更类似于MVC的背景,如PHP或Ruby on Rails,则尤其如此。

#2


2  

Buy a simple book and go thorugh the asp.net mvc nerddinner example of scottgu. It will cover all the aspect of the real application.

买一本简单的书,然后去scottgu的asp.net mvc nerddinner例子。它将涵盖实际应用的所有方面。

here is the link: http://weblogs.asp.net/scottgu/archive/2009/04/28/free-asp-net-mvc-nerddinner-tutorial-now-in-html.aspx

这是链接:http://weblogs.asp.net/scottgu/archive/2009/04/28/free-asp-net-mvc-nerddinner-tutorial-now-in-html.aspx

and here is the real site: www.nerddinner.com

这是真正的网站:www.nerddinner.com

#3


2  

Ideally you should learn MVC first as it forces you to learn and understand the various parts of the web such as HTTP Requests, the statelessness of the web, HTML, CSS, etc.

理想情况下,您应首先学习MVC,因为它会迫使您学习和理解Web的各个部分,例如HTTP请求,Web的无状态,HTML,CSS等。

As a result, if you ever decide to use webforms, or are forced to use webforms, you understand how things are abstracted away and can better code to the efficiencies of the application.

因此,如果您决定使用webforms,或者*使用webforms,您就会了解事物是如何被抽象出来的,并且可以更好地编写应用程序的效率。

The appeal of drag and drop from webforms might be very very appealing at first. But after a little time, you can see how nice MVC is for the fact that it forces you to take total control of your code from the get go.

从webforms拖放的吸引力起初可能非常吸引人。但是过了一会儿,你可以看到MVC有多好,因为它迫使你从一开始就完全控制你的代码。

Personally, I dabbled in webforms for a little bit -- but after using MVC, there's no going back. And on a side not, MVC is built on top of webforms, so you can always use them if you want to.

就个人而言,我稍微涉足了网络形式 - 但在使用MVC之后,就没有回头了。而在一方面,MVC是建立在webforms之上的,因此如果你愿意,你可以随时使用它们。

#4


1  

As much as you possibly can.

尽你所能。

The more you know and understand the more effective you will be.

你知道的越多,理解的越有效。

#5


0  

Around **-**100% of the webforms should be enough, considering webforms are more about having things automatically handled for you and ASP.NET MVC means A LOT more control over most of the things :)

大约** - ** 100%的网络表格应该足够了,考虑到webforms更多的是为你自动处理事物而ASP.NET MVC意味着对大多数事情有更多的控制:)

#6


0  

I think it depends on your programming background. If you are already familiar with web development and its stateless nature, then by all means learn MVC first. It is much more "pure" web development. However, it requires a much more in-depth understanding of how the web works.

我认为这取决于你的编程背景。如果您已经熟悉Web开发及其无状态特性,那么请务必先学习MVC。它更加“纯粹”的Web开发。但是,它需要更深入地了解网络的工作原理。

On the other hand, if you are used to developing in a stateful environment, it can be much more comfortable to learn Web Forms first. If you are trying to learn a new language/platform, adding the extra trauma of learning to work with a stateless environment is unnecessary and may slow your progress.

另一方面,如果您习惯于在有状态的环境中进行开发,那么首先学习Web表单会更加舒适。如果您正在尝试学习一种新的语言/平台,则无需添加额外的学习创伤来处理无状态环境,这可能会减慢您的进度。

Ultimately, it comes down to what you are comfortable with. Read up on both, and see which makes more sense for yourself personally, and for the task at hand. Neither Web Forms nor MVC are the end-all be-all of web development. They are both tools, and as with all tools, each is appropriate for different tasks.

归根结底,它取决于你所熟悉的东西。阅读两者,看看哪个对自己更有意义,对于手头的任务。 Web Forms和MVC都不是Web开发的最终目标。它们都是工具,与所有工具一样,每个工具都适用于不同的任务。

#7


0  

As much as you can. ASP.NET MVC is only part of ASP.NET - so for building scalable and fast ASP.NET MVC applications you actually must learn "all" ASP.NET (I think you must learn Webforms too - at least partially)

尽你所能地。 ASP.NET MVC只是ASP.NET的一部分 - 因此,对于构建可伸缩且快速的ASP.NET MVC应用程序,您实际上必须学习“所有”ASP.NET(我认为您也必须学习Webforms - 至少部分)