1 / 18

ASP.NET MVC For Smart People

ASP.NET MVC For Smart People. Scott Galloway, Program Manager, ASP.NET Microsoft Corporation scottgal@microsoft.com http://www.mostlylucid.net http://www.twitter.com/scottgal. What is ASP.NET MVC?. A new Web Application Project type Simply an option Not a replacement for WebForms

klaus
Télécharger la présentation

ASP.NET MVC For Smart People

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. ASP.NET MVC For Smart People Scott Galloway, Program Manager, ASP.NET Microsoft Corporation scottgal@microsoft.com http://www.mostlylucid.net http://www.twitter.com/scottgal

  2. What is ASP.NET MVC? • A new Web Application Project type • Simply an option • Not a replacement for WebForms • Builds on top ASP.NET • Manual vs Automatic Transmission

  3. How was it developed? • Transparently • Regular source code releases on CodePlex • Previews 1 – 5, Beta, RC1, RC2. 8 releases! • Community feedback via forums, StackOverflow, etc… • Agilely • 94% Code Coverage/1051 unit tests • Daily Triage Meetings and weekly design meetings • Small agile team

  4. What is MVC? • A design pattern • Acronym for Model ● View ● Controller • Separation of concerns

  5. What is MVC? Step 1 Incoming request directed to Controller Controller Request

  6. What is MVC? Step 2 Controller processes request and forms a data Model Controller Model

  7. What is MVC? Step 3 Model is passed to View Controller View

  8. What is MVC? Step 4 View transforms Model into appropriate output format Controller View

  9. What is MVC? Step 5 Response is rendered Controller View Response

  10. Demo File->New

  11. Framework Goals • Frictionless Testability • Tight control over markup • User/SEO friendly URLs • Leverage the benefits of ASP.NET • Conventions and Guidance

  12. Separation Of Concerns • Each component has one responsibility • SRP – Single Responsibility Principle • DRY – Don’t Repeat Yourself • More easily testable • Helps with concurrent development

  13. Extensible • Replace any component of the system • Interface-based architecture • Very few sealed methods / classes • Plays well with others

  14. WebForms are great … • Mature, proven technology • Huge Third Party Control Ecosystem • Scalable • Extensible • Familiar feel to WinForms developers

  15. … they have problems • Abstractions aren’t very abstract • Difficult to test • Lack of control over markup • It does things you didn’t tell it to do

  16. Demo A real app (kind of)

  17. Resources • Phil Haack’s blog: www.haacked.com • ASP.NET MVC Site: www.asp.net/mvc • Scott Guthrie’s blog: weblogs.asp.net/scottgu • Rob Conery’s blog: blog.wekeroad.com/

More Related