Quantcast

Maximum PC

It is currently Tue Sep 02, 2014 10:14 am

All times are UTC - 8 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: My new exploits in development
PostPosted: Thu Nov 10, 2011 1:08 pm 
Bitchin' Fast 3D Z8000
Bitchin' Fast 3D Z8000
User avatar

Joined: Mon Jun 14, 2004 4:04 pm
Posts: 985
Location: Earth
I recently picked up MVC 3 for work reasons. I have to say, I'm very impressed. Microsoft really went out of their way to really win my heart again. Here's a back drop:

When MVC was released, it was awful. It was their response to Ruby on Rails, and boy did it suck. It was slow, it didn't work with IIS6 (well, it would but you had to do some magic work arounds to get routing to work).

MVC 2 was released and it was a significant improvement over MVC 1. I didn't get the chance to play with MVC 2, since I started with this new job MVC 3 is where we're going.

MVC, for the uninitiated stands for Model-View-Controller. It's a pattern for software design, and unlike 3-tier designs, MVC goes out of its way to enforce abstraction.

For those of us who developed in Web Forms, we all know how ugly and painful it is. Web Forms didn't enforce abstraction and decoupling of layers. Web Forms also hacked into the actual request/response. Want to do AJAX on Web Forms? You can but even ASP.NET AJAX was a hack, it simply replaced the __doPostback() event in the client generated HTML with a callback.

Web Forms are also heavy. The view state alone can suck up kilobytes of bandwidth. It also didn't play well with jQuery. For one of my projects, I remember building an app that used jQuery and I had to use ASHX handlers to generate barebones (i.e., bare metal) Http Requests. Web Forms is heavy and it sucked, but it was great for rapid prototyping.

MVC solved all that by not trying to be a Winforms for the web, which is what web forms did. Rather, the requests are smaller, it's now RESTful and, best yet, the URL's are nice and neat. :)

what else does MVC Solve? Well, MSFT really integrated DDD (Domain Driven Design/Development). Along with NuGet, there's been a heavy emphasis on the use of Dependency Injection using either Unity or Ninject (I prefer Ninject). They now bundle jQuery and Modernizr with every MVC 3 project. MVC 3 won my heart again, but what really woo'ed me was Code First Entity Framework. It allowed you to create your database tables by creating your domain models.

Anyways, my new job and all the things I've learned in seven weeks. Crazy ain't it?


Top
  Profile  
 
 Post subject: Re: My new exploits in development
PostPosted: Fri Nov 11, 2011 12:55 pm 
SON OF A GUN
SON OF A GUN
User avatar

Joined: Mon Nov 01, 2004 5:41 am
Posts: 11605
I need an excuse to play with MVC3.


Top
  Profile  
 
 Post subject: Re: My new exploits in development
PostPosted: Mon Nov 14, 2011 10:32 am 
Bitchin' Fast 3D Z8000
Bitchin' Fast 3D Z8000
User avatar

Joined: Mon Jun 14, 2004 4:04 pm
Posts: 985
Location: Earth
CrashTECH wrote:
I need an excuse to play with MVC3.


Pick up the book "Pro ASP.NET MVC 3 Framework", great book. The book does focus heavily on DDD + TDD, but the exercises are fantastic. You build an entire application (a small one, not super elegant) using MVC 3, Ninject (for Dependency Injection) and Entity Framework 4.


Top
  Profile  
 
 Post subject: Re: My new exploits in development
PostPosted: Sat Feb 25, 2012 5:36 pm 
8086
8086

Joined: Fri Feb 24, 2012 2:47 pm
Posts: 22
Went through the exact same process as you did.

Web Forms was created to maintain a "stateful" web application using ViewState.

I touched MVC2 briefly, but we immediately moved onto MVC3 and I couldn't be happier.

Microsoft smartened up and realized Ajax and jQuery were the next era of web technology and finally caught up and actually are doing their own projects with jQuery now.

I have been working with unobtrusive Ajax recently, and it makes developing client side forms a synch.


Top
  Profile  
 
 Post subject: Re: My new exploits in development
PostPosted: Tue Feb 28, 2012 3:56 pm 
Coppermine
Coppermine
User avatar

Joined: Mon Feb 21, 2005 9:33 am
Posts: 692
Location: Grass Valley, CA
I'm going through a similar process in my new job: Learning Windows Presentation Foundation and the MVVM / DMVVM patterns. I was working on ASP .Net in C# before that. I never got into the MVC stuff for the web applications.


Top
  Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group