01 overview

331 views
276 views

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
331
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
13
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

01 overview

  1. 1. ASP.NET MVCOverview
  2. 2. The MVC Pattern›  Invented by a Smalltalk programmer in 1979›  Not a framework. It is an architectural pattern.›  Not exclusive to ASP.NET.›  Martin Fowler, Patterns of Enterprise Application Architecture (2003), 331. ›  As I think about MVC I see two principal separations: separating the presentation from the model and separating the controller from the view. ›  Of these the separation of presentation from model is one of the most fundamental heuristics of good software design...
  3. 3. Thestack
  4. 4. Primary goals of ASP.NET MVC›  Higher degree of testability than WebForms›  Make it easier for developers to control their HTML›  Separation of concerns›  A return to the metaphor of the web. - Like event handlers. Theyre really frontends for a get/post activity. MVC goes back to how the web works (get/post)›  Extensibility - Can change the way that the view itself works. MVC makes it easy
  5. 5. Disadvantages of MVC›  No Viewstate›  Have to know HTML and the web achitecture›  No designer›  Lots of magic strings›  More work to do certain things
  6. 6. War stories?
  7. 7. Conclusion›  ASP.NET MVC is a way to create dynamic web pages›  It is an alternative to ASP.NET Webforms›  MVC is harder to learn and harder to use than WebForms›  But MVC creates a more robust, scalable, maintainable and testable site›  The idea of MVC is all about separation of concerns

×