Walther Mvc


Published on

Published in: Technology
  • Be the first to comment

  • Be the first to like this

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide

Walther Mvc

  1. 1. Stephen Walther Senior Program Manager Microsoft
  2. 2. Overview of this Talk What is ASP.NET MVC? Build a Contact Manager Application
  3. 3. What is ASP.NET MVC? Microsoft’s Newest Framework for Building Web Applications ASP.NET MVC 1.0 Released During MIX (about two months ago)
  4. 4. What is ASP.NET MVC? ASP.NET ASP.NET ASP.NET ASP.NET Web Forms MVC AJAX Dynamic Data ASP.NET Framework .NET Framework
  5. 5. What is ASP.NET MVC? Model Business and Data Access Logic View View logic Controller Application flow logic
  6. 6. What is ASP.NET MVC? Invented in 1978 for Smalltalk by Trygve Reenskaug
  7. 7. What is ASP.NET MVC? Used by lots of frameworks including Struts Tapestry Spring Ruby on Rails Merb Monorail Django
  8. 8. What is ASP.NET MVC? Enables you to build applications that are resilient to change: Build Loosely Coupled Applications Build Testable Applications
  9. 9. Build a Contact Manager Application Walkthrough #1 Build Create, Read, Update, Delete actions
  10. 10. Build a Contact Manager Application Walkthrough #2 Use the default model binder
  11. 11. Build a Contact Manager Application Walkthrough #3 Add simple validation
  12. 12. Build a Contact Manager Application Walkthrough #4 Refactor using software design patterns
  13. 13. Software Design Patterns Controller Layer Application flow control Service Layer Business logic (validation logic) Repository Layer Data access logic
  14. 14. Build a Contact Manager Application Walkthrough #5 Create unit tests
  15. 15. Test-Driven Development Test-Driven Development is a software design methodology: Red – Create a failing test Green – Write just enough code to pass the test Refactor – Improve the design of your code
  16. 16. Test-Driven Development Benefits: Keeps you focused on the right task: YAGNI (You Ain’t Gonna Need It) KISS (Keep It Simple Stupid) Continuous Feedback Take short steps and get continuous feedback that you are on the right path. Incremental Design Design becomes part of the development process instead of something done by an architect
  17. 17. Build a Contact Manager Application Walkthrough #6 Add Ajax
  18. 18. Summary ASP.NET MVC enables you to build loosely- coupled, highly-testable web applications that can be easily modified over time.
  19. 19. Resources www.ASP.net/mvc -- The official Microsoft website for all things ASP.NET MVC StephenWalther.com – My blog on ASP.NET MVC Haacked.com – Phil Haack is the Program Manager for ASP.NET MVC
  20. 20. Table Format Table Title Column 1 Column 2 Column 3 Column 4 Column 5
  21. 21. Related Content Breakout Sessions (session codes and titles) Interactive Theater Sessions (session codes and titles) Hands-on Labs (session codes and titles) Hands-on Labs (session codes and titles)
  22. 22. Track Resources Resource 1 Resource 2 Resource 3 Resource 4
  23. 23. © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.