Asp net mvc 3 and some 4
This presentation is the property of its rightful owner.
Sponsored Links
1 / 35

ASP .NET MVC 3 and Some 4 PowerPoint PPT Presentation


  • 33 Views
  • Uploaded on
  • Presentation posted in: General

ASP .NET MVC 3 and Some 4. JaxCodeCamp August 2011. Who Am I. David Fekke Software Engineer DMEa Develop iOS software http ://www.fekke.com/blog/ JaxDUG , JSSUG and JaxFusion. Woz. “Never trust a computer you can't throw out a window.”. 80 Percent Statistic.

Download Presentation

ASP .NET MVC 3 and Some 4

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.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -

Presentation Transcript


Asp net mvc 3 and some 4

ASP .NET MVC 3 and Some 4

  • JaxCodeCamp August 2011


Who am i

Who Am I

  • David Fekke

  • Software Engineer DMEa

  • Develop iOS software

  • http://www.fekke.com/blog/

  • JaxDUG, JSSUG and JaxFusion


Asp mvc 3 and some 4

Woz

“Never trust a computer you can't throw out a window.”


80 percent statistic

80 Percent Statistic

  • 80% software projects FAIL

  • 80% of development is done as code maintenance

  • 80% of statistics are completely useless


Asp mvc 3 and some 4

DJango

Ruby On Rails

Fusebox

.NET Nuke

JSF

Struts

Grials


Whats wrong with web forms in asp net

Whats wrong with Web Forms in ASP.NET?


Asp mvc 3 and some 4

  • Web Forms lends to Spaghetti Code

  • Difficult to maintain

  • IDs get renamed

  • Difficult to introduce Coding Standards


Tenets of frameworks

Tenets of Frameworks

  • Single Responsibility Principle

  • Convention over Configuration

  • SES and URL routing

  • Good use of Design Patterns

  • Work within Test Driven Development (TDD)

  • Enterprise Scalable Web Applications


Asp mvc 3 and some 4

  • MVC Design Pattern

  • Separation of Concerns

  • DRY - Don’t Repeat Yourself

  • Better concurrent development


Asp mvc 3 and some 4

MVC stands for ModelViewController


Asp mvc 3 and some 4

  • New Project Types in VS2008, 2010

  • Not replacing Web Forms

  • Built on top of ASP .NET

  • Automatic vs. Manual


What is missing

What is Missing

  • Does not use Web Forms

  • No Form Controls

  • No Script Manager


Controller classes

Controller Classes

  • Controllers are a special class

  • Controller Class always will have ‘Controller’ in the name

  • Controllers contains action methods


Views

Views

  • Views are simple

  • Use ViewData, ViewModel, ViewBag

  • JQuery libs included

  • Partial Views

  • Html helper class


Model

Model

  • Anything you want

  • Enterprise Framework

  • ADO .NET

  • NHibernate

  • LINQ

  • Entity Framework


Testing

Testing

  • Framework built for Unit Testing

  • Test Suite, NUnit or any other test framework


Routing

Routing

  • Friendly URLs

  • /products.aspx?categoryid=8

  • /products/puppies

  • Search Engine Safe (SES)


Asp net mvc 3

Razor View engine

Better Binding and Model Validation

Unobtrusive Javascript

Hooks for Dependency Injection

Nuget!

ASP.NET MVC 3


Razor

Razor


Model validation

Model Validation


Unobrusive javascript

Unobrusive JavaScript


Dependency resolver

Dependency Resolver

Insert favorite DI framework here


Asp mvc 3 and some 4

Demo


Asp net mvc 4

ASP.NET MVC 4

Whats Next?


Mvc 4 roadmap

MVC 4 Roadmap

  • Recipes (Super Scaffolding)

  • Mobile Support

  • Template changes

  • AsycControllers (C# 5 asynchronous)

  • CSS & Javascript bundling

  • WebAPI


Orchard project

Orchard Project

  • .NET Sponsored Open Source Project

  • Content Management System

  • Built on MVC 3

  • NHibernate

  • Project Castle

  • Autofac


Asp mvc 3 and some 4

  • http://asp.net/mvc

  • Codeplex

  • http://weblogs.asp.net/scottgu/

  • http://bit.ly/mvc-ebook

  • http://bit.ly/mvcmusicstore

  • Nuget


Asp mvc 3 and some 4

  • [email protected]

  • http://www.fekke.com/blog/

  • twitter.com/davidfekke


  • Login