ASP. NET MVC2 Chapter 1

Source: Internet
Author: User
§ 1. 1 A Brief History of Web Development

 

Time period Technology Advantages Disadvantages
Jurassic Common Gateway Interface (CGI)

Simple
Flexible
Only option at the time

Runs outside
Web server, so is
Resource intensive
(Spawns separate OS
Process per request)
Low-level

Bronze Age

Microsoft Internet Database
Connector (IDC)

Runs inside Web Server

Just a wrapper
SQL queries and
Templates
Formatting result sets

1996 Active Server Pages (ASP) General-purpose  
2002/03 ASP. NET web forms 1.0/1.1

Compiled
"Stateful" UI
Vast infrastructure
Encourages objectoriented
Programming

Heavy on bandwidth
Uugly html
Untestable

2005 ASP. NET web forms 2.0    
2007 ASP. NET Ajax    
2008 ASP. NET web forms 3.5    
2009 ASP. net mvc 1.0    
2010

ASP. net mvc 2.0
ASP. NET web forms 4.0

   

 

In just the same way, ASP. net mvc 1 was designed to tackle the specific specification comings of traditional ASP. NET, but this time by trying to emphasize simplicity.

 

Traditional ASP. NET web forms

ASP. NET was a huge shift when it first arrived. Figure 1-1 analyze strates Microsoft's new technology stack
It first appeared in 2002.

 

What's wrong with ASP. NET web forms?

Traditional ASP. net web forms was a fine idea, and a thrilling prospect at first, but of course reality turned out to be more complicated. over the years, real-world use of web forms uncovered a range of weaknesses:

  • Viewstate weight
  • Page Life Cycle
  • False sense of separation of concerns
  • Limited control over html
  • Leaky publish action
  • Difficulty applying automatic tests
§ 1. 2 web development today
Web standards and rest

Web sites are consumed on a greater variety of devices and browsers than ever before, and web standards (for HTML, CSS, JavaScript, etc .) remain our one great hope for getting a decent browsing experience everywhere-even on the Internet-enabled refrigerator.

At the same time, rest3 has become the dominant architecture for application interoperability over HTTP, completely overshadowing soap (the technology behind ASP. net's original approach to Web Services ). today's Web applications don't just serve HTML-equally often they must also serve JSON or XML data to various client technologies including Ajax, Silverlight, and Native smartphone applications.

Agile and test-driven development

The. net open source and independent software vendor (isV) community has produced no end of top-quality unit testing frameworks (nunit, xunit), mocking frameworks (Moq, rhino MOCKS ), inversion-of-control containers (ninject, autofac), continuous integration servers (cruise control, teamcity), object-relational mappers (Nhibernate, subsonic), and the like; and proponents of these tools and techniques have even found a common voice, publishing and organizing conferences under the shared brand alt. net. traditional ASP. net web forms is not very amenable to these tools and techniques because of its monolithic design, so from this vocal group of experts and industry thought leaders, web forms gets little respect.

Ruby on Rails

Ruby on Rails transforming the rules of web development. It's not so much that it contained revolutionary technology,

 

 

§ 1. 3 key benefits of ASP. NET MVC
MVC Architecture

ASP. net MVC directly answers the competition of Ruby on Rails and Similar platforms, bringing this style of development into the mainstream of. net World, capitalizing on the experience and best practices discovered by developers using other platforms, and in every ways pushing forward beyond what even rails can offer.

 

Extensibility

........................

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.