Why did Microsoft choose MVC for ASP.NET?

In addition to the 30-year-old pattern, MVC was never intended for current applications. MVP was his successor and was developed to process applications based on events that emerged in the 90s. The passive review and control controller seems to have risen to the top. For these two, there is almost no need to talk about MVC / MVP.

In particular, is the controller action in ASP.NET MVC that returns a view that creates this view? In MVC, the controller does not create views or access them. How accurately can you call ASP.NET MVC an implementation of MVC? Or, what would be the exact name for him?

+3
source share
9 answers

I think Ruby on Rails inspired MS to create asp.net MVC.

+14
source

ASP.NET MVC is simply Microsoft’s confirmation of the success of MVC implementation in web frameworks such as Ruby on Rails and Django. The realization that many web developers would like to use a web development approach that embraces a "stubborn" programming model (configuration convention) and departs from the abstract abstraction that ASP.NET WebForms provides.

Is this an accurate implementation of the Smalltalk MVC pattern? No. Is this the result of a panic? No. Is this the result of the success of both Ruby on Rails and Django? Yes.

, , .NET ASP.NET, .

+13

, .

ASP.NET , MVC. , .

Microsoft , . ( , .)

+8

ScottGu MVC . : , Microsoft . .Net , , .

+4

MVC, ASP.NET MVC, MVC . , "" MVC, View , , , ASP.NET MVC - . , , Supervising Controller + Passive :

public class MvcExampleController : Controller
{
    public ActionResult ActionMethod(BoundInputData inputData)
    {
        var results   = DoActualWorkInTheModelWith(inputData);
        var viewModel = CreateViewModelFromThe(results);

        return View(viewModel);
    }
}

, MVC. , , ViewModel ( PresentationModel). ViewModel 1 1 . A View, ViewModel, , .

, "" MVC , , ASP.NET MVC -, .

+2

, MVC. MVC " " , ( ) MVC .

, MVC , Microsoft, , .

, , .

+1

, MVC. , !

http://haacked.com/archive/0001/01/01/everything-you-wanted-to-know-about-mvc-and-mvp-but.aspx

, .

, , , S # arp Architecture. MVC, MVP. , soemthing .

!

0

, " ", . RoR , MSFT , MSFT , , " "...

, , .Net , , MVC ​​ ( )

(.NET) , RoR 15 , . vstudio.exe...;)

, , , ...;)

, , MVC , . , , , , - MVC " ", WebForms ( , , )

-3

Source: https://habr.com/ru/post/1708224/


All Articles