stephen walther : asp.net mvc - tech-ed 2009
TRANSCRIPT
![Page 1: Stephen Walther : ASP.NET MVC - Tech-ed 2009](https://reader030.vdocuments.site/reader030/viewer/2022013102/55643257d8b42a06138b4da5/html5/thumbnails/1.jpg)
![Page 3: Stephen Walther : ASP.NET MVC - Tech-ed 2009](https://reader030.vdocuments.site/reader030/viewer/2022013102/55643257d8b42a06138b4da5/html5/thumbnails/3.jpg)
Overview of this TalkWhat is ASP.NET MVC?Build a Contact Manager Application
![Page 4: Stephen Walther : ASP.NET MVC - Tech-ed 2009](https://reader030.vdocuments.site/reader030/viewer/2022013102/55643257d8b42a06138b4da5/html5/thumbnails/4.jpg)
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)
![Page 5: Stephen Walther : ASP.NET MVC - Tech-ed 2009](https://reader030.vdocuments.site/reader030/viewer/2022013102/55643257d8b42a06138b4da5/html5/thumbnails/5.jpg)
What is ASP.NET MVC?
ASP.NET Framework
.NET Framework
ASP.NET Web Forms
ASP.NET MVC
ASP.NETAJAX
ASP.NETDynamic Data
![Page 6: Stephen Walther : ASP.NET MVC - Tech-ed 2009](https://reader030.vdocuments.site/reader030/viewer/2022013102/55643257d8b42a06138b4da5/html5/thumbnails/6.jpg)
What is ASP.NET MVC?
ModelBusiness and Data Access Logic
ViewView logic
ControllerApplication flow logic
![Page 7: Stephen Walther : ASP.NET MVC - Tech-ed 2009](https://reader030.vdocuments.site/reader030/viewer/2022013102/55643257d8b42a06138b4da5/html5/thumbnails/7.jpg)
What is ASP.NET MVC?
Invented in 1978 for Smalltalk by Trygve Reenskaug
![Page 8: Stephen Walther : ASP.NET MVC - Tech-ed 2009](https://reader030.vdocuments.site/reader030/viewer/2022013102/55643257d8b42a06138b4da5/html5/thumbnails/8.jpg)
What is ASP.NET MVC?
Used by lots of frameworks includingStrutsTapestrySpringRuby on RailsMerbMonorailDjango
![Page 9: Stephen Walther : ASP.NET MVC - Tech-ed 2009](https://reader030.vdocuments.site/reader030/viewer/2022013102/55643257d8b42a06138b4da5/html5/thumbnails/9.jpg)
What is ASP.NET MVC?
Enables you to build applications that are resilient to change:
Build Loosely Coupled ApplicationsBuild Testable Applications
![Page 10: Stephen Walther : ASP.NET MVC - Tech-ed 2009](https://reader030.vdocuments.site/reader030/viewer/2022013102/55643257d8b42a06138b4da5/html5/thumbnails/10.jpg)
Build a Contact Manager Application
Walkthrough #1 Build Create, Read, Update, Delete actions
![Page 11: Stephen Walther : ASP.NET MVC - Tech-ed 2009](https://reader030.vdocuments.site/reader030/viewer/2022013102/55643257d8b42a06138b4da5/html5/thumbnails/11.jpg)
Build a Contact Manager Application
Walkthrough #2Use the default model binder
![Page 12: Stephen Walther : ASP.NET MVC - Tech-ed 2009](https://reader030.vdocuments.site/reader030/viewer/2022013102/55643257d8b42a06138b4da5/html5/thumbnails/12.jpg)
Build a Contact Manager Application
Walkthrough #3Add simple validation
![Page 13: Stephen Walther : ASP.NET MVC - Tech-ed 2009](https://reader030.vdocuments.site/reader030/viewer/2022013102/55643257d8b42a06138b4da5/html5/thumbnails/13.jpg)
Build a Contact Manager Application
Walkthrough #4Refactor using software design patterns
![Page 14: Stephen Walther : ASP.NET MVC - Tech-ed 2009](https://reader030.vdocuments.site/reader030/viewer/2022013102/55643257d8b42a06138b4da5/html5/thumbnails/14.jpg)
Software Design Patterns
Controller LayerApplication flow control
Service LayerBusiness logic (validation logic)
Repository LayerData access logic
![Page 15: Stephen Walther : ASP.NET MVC - Tech-ed 2009](https://reader030.vdocuments.site/reader030/viewer/2022013102/55643257d8b42a06138b4da5/html5/thumbnails/15.jpg)
Build a Contact Manager Application
Walkthrough #5Create unit tests
![Page 16: Stephen Walther : ASP.NET MVC - Tech-ed 2009](https://reader030.vdocuments.site/reader030/viewer/2022013102/55643257d8b42a06138b4da5/html5/thumbnails/16.jpg)
Test-Driven Development
Test-Driven Development is a software design methodology:
Red – Create a failing testGreen – Write just enough code to pass the testRefactor – Improve the design of your code
![Page 17: Stephen Walther : ASP.NET MVC - Tech-ed 2009](https://reader030.vdocuments.site/reader030/viewer/2022013102/55643257d8b42a06138b4da5/html5/thumbnails/17.jpg)
Test-Driven Development
Benefits:Keeps you focused on the right task:
YAGNI (You Ain’t Gonna Need It) KISS (Keep It Simple Stupid)
Continuous FeedbackTake short steps and get continuous feedback that you are on the right path.
Incremental DesignDesign becomes part of the development process instead of something done by an architect
![Page 18: Stephen Walther : ASP.NET MVC - Tech-ed 2009](https://reader030.vdocuments.site/reader030/viewer/2022013102/55643257d8b42a06138b4da5/html5/thumbnails/18.jpg)
Build a Contact Manager Application
Walkthrough #6Add Ajax
![Page 19: Stephen Walther : ASP.NET MVC - Tech-ed 2009](https://reader030.vdocuments.site/reader030/viewer/2022013102/55643257d8b42a06138b4da5/html5/thumbnails/19.jpg)
Summary
ASP.NET MVC enables you to build loosely-coupled, highly-testable web applications that can be easily modified over time.
![Page 20: Stephen Walther : ASP.NET MVC - Tech-ed 2009](https://reader030.vdocuments.site/reader030/viewer/2022013102/55643257d8b42a06138b4da5/html5/thumbnails/20.jpg)
Resources
www.ASP.net/mvc -- The official Microsoft website for all things ASP.NET MVCStephenWalther.com – My blog on ASP.NET MVCHaacked.com – Phil Haack is the Program Manager for ASP.NET MVC
![Page 21: Stephen Walther : ASP.NET MVC - Tech-ed 2009](https://reader030.vdocuments.site/reader030/viewer/2022013102/55643257d8b42a06138b4da5/html5/thumbnails/21.jpg)
Table Format
Table TitleColumn 1 Column 2 Column 3 Column 4 Column 5
![Page 22: Stephen Walther : ASP.NET MVC - Tech-ed 2009](https://reader030.vdocuments.site/reader030/viewer/2022013102/55643257d8b42a06138b4da5/html5/thumbnails/22.jpg)
धन्यवा�दઆભા�ર ধন্য�বা�দ
ਧੰ�ਨਵਾ�ਦ
ଧନ୍ୟ�ବା�ଦ
நன்றி�
ధన్య�వాదాలు� ಧನ್ಯ�ವಾ�ದಗಳು
നി�ങ്ങള്ക്ക്� നിന്ദി�
![Page 24: Stephen Walther : ASP.NET MVC - Tech-ed 2009](https://reader030.vdocuments.site/reader030/viewer/2022013102/55643257d8b42a06138b4da5/html5/thumbnails/24.jpg)
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)
![Page 25: Stephen Walther : ASP.NET MVC - Tech-ed 2009](https://reader030.vdocuments.site/reader030/viewer/2022013102/55643257d8b42a06138b4da5/html5/thumbnails/25.jpg)
Track Resources
Resource 1
Resource 2
Resource 3
Resource 4
![Page 26: Stephen Walther : ASP.NET MVC - Tech-ed 2009](https://reader030.vdocuments.site/reader030/viewer/2022013102/55643257d8b42a06138b4da5/html5/thumbnails/26.jpg)
© 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.