ASP .NET MVC

beansproutscompleteΛογισμικό & κατασκευή λογ/κού

13 Δεκ 2013 (πριν από 3 χρόνια και 8 μήνες)

58 εμφανίσεις

ASP .NET MVC
Framework

JAXDUG May 2009

Who Am I


David Fekke


Software Engineer Lender Processing
Services


Manager JaxFusion user group


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


JSSUG

80 Percent Statistic


80% software projects FAIL


80% of development is done as

code maintenance


80% of statistics are completely useless

Fusebox

Ruby On Rails

DJango

JSF

Struts

Grials

.NET Nuke

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

Whats wrong with
Web Forms in
ASP.NET?


Basic ASP .NET lends to Spaghetti
Code


Difficult to maintain


Difficult to introduce Coding Standards


IDs get renamed


.NET 1.0 introduced the Page Model
and Code behind


.NET 2.0 brought us Master Pages


.NET 3.5 came with AJAX

MVC stands for

Model

View

Controller



New Project Type in VS2008


Not replacing Web Forms


Built on top of ASP .NET


Automatic vs. Manual


Does not use Web Forms


No Form Controls


No Script Manager

What is Missing


MVC Design Pattern


Separation of Concerns


SRP
-

Single Responsibility Principle


DRY
-

Don’t Repeat Yourself


TDD
-

More easily testable


Better concurrent development


Controllers are a special class


Controller Class always will have
‘Controller’ in the name


Controllers contains action methods

Controller Classes

Views


Views are simple


Use ViewData and ViewModel


JQuery libs included


Partial Views


Html helper class

Model


Anything you want


Enterprise Framework


ADO .NET


LINQ


Entity Framework

Testing


Framework built for Unit Testing


Test Suite, NUnit or any other test
framework

Routing


Friendly URLs


/products.aspx?categoryid=8


/products/puppies


Search Engine Safe (SES)

Demo


http://asp.net/mvc


Codeplex


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


http://bit.ly/mvc
-
ebook


davidfekke@gmail.com


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


twitter.com/davidfekke