Stephen Walther Microsoftdownload.microsoft.com/download/F/4/3/F43A79B1-707... · ASP.NET MVC 1.0...

Preview:

Citation preview

Stephen WaltherSenior Program ManagerMicrosoft

Overview of this Talk

What is ASP.NET MVC?

Build a Contact Manager Application

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)

What is ASP.NET MVC?

ASP.NET Framework

.NET Framework

ASP.NET Web Forms

ASP.NET MVC

ASP.NETAJAX

ASP.NETDynamic Data

What is ASP.NET MVC?

ModelBusiness and Data Access Logic

ViewView logic

ControllerApplication flow logic

What is ASP.NET MVC?

Invented in 1978 for Smalltalk by Trygve Reenskaug

What is ASP.NET MVC?

Used by lots of frameworks includingStruts

Tapestry

Spring

Ruby on Rails

Merb

Monorail

Django

What is ASP.NET MVC?

Enables you to build applications that are resilient to change:

Build Loosely Coupled Applications

Build Testable Applications

Build a Contact Manager Application

Walkthrough #1

Build Create, Read, Update, Delete actions

Build a Contact Manager Application

Walkthrough #2

Use the default model binder

Build a Contact Manager Application

Walkthrough #3

Add simple validation

Build a Contact Manager Application

Walkthrough #4

Refactor using software design patterns

Software Design Patterns

Controller LayerApplication flow control

Service LayerBusiness logic (validation logic)

Repository LayerData access logic

Build a Contact Manager Application

Walkthrough #5

Create unit tests

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

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

Build a Contact Manager Application

Walkthrough #6

Add Ajax

Summary

ASP.NET MVC enables you to build loosely-coupled, highly-testable web applications that can be easily modified over time.

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

Table Format

Table TitleColumn 1 Column 2 Column 3 Column 4 Column 5

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)

Track Resources

Resource 1

Resource 2

Resource 3

Resource 4

© 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.