Understanding the What and Why of the MVC Pattern
page 3 of 3
by Brendan Enrick
Feedback
Average Rating: This article has not yet been rated.
Views (Total / Last 10 Days): 30479/ 61

Conclusion

The obvious big answer for why things are structured this way is for testability. By restructuring in this way it is much easier to have each piece separate. We have also managed to keep the most difficult part to test (the User interface) as small and lightweight as possible. This means that more of our application can be tested easily. The ASP.NET MVC Framework is designed to make testing easier. This does not mean that you cannot use it even if you do not test. Anyone can use ASP.NET MVC. Enjoy it.

About the Author

Brendan Enrick


View Entire Article

User Comments

Title: What's the difference with the three tier logic?   
Name: Yas
Date: 2009-01-20 4:46:17 AM
Comment:
Hi Brendan, very nice article!

I was just wandering what's the difference between the MVC pattern and the old three tier logic - UI Layer / Business Logic Layer / Data Access Layer ?

Best Regards,
Yas
Title: RE: Rubbish...   
Name: Brendan Enrick
Date: 2009-01-19 8:33:08 AM
Comment:
@Muhammad Adnan I am sorry you did not like the article. The reason I did not write about MVP is because it is in fact a different pattern. While a lot of people note the similarities between the two patterns they are in fact two different things.

Since I was writing about MVC, and not MVP, I decided not to bring up the topic of MVP at all as I did not want to confuse the readers.

Please keep in mind I wrote this article as a way for people who were confused about MVC to understand it better, so adding in unrelated information would have simply created extra confusion.

Thank you for your comment. I hope you find my next article more interesting.

Brendan
Title: Thank you   
Name: Brendan Enrick
Date: 2009-01-19 8:29:08 AM
Comment:
@hanife @saanj @ Puneet thank you for the comments. I am glad you liked the article. I am hoping I get the chance to write some more articles soon, so please check back here.
Title: MVC   
Name: hanife
Date: 2009-01-19 5:55:04 AM
Comment:
Great artical..
Title: Rubbish...   
Name: Muhammad Adnan
Date: 2009-01-19 2:22:12 AM
Comment:
Didn't describe MVP at all and somehow prolonged unnecessarily....
Title: Dev   
Name: Saanj
Date: 2009-01-18 11:48:03 PM
Comment:
It is a very useful article which really helps a guy like me who never worked with MVC Architecture. Great article/
Title: feedback   
Name: Puneet
Date: 2009-01-18 11:24:08 PM
Comment:
Hi Brendan,

This is a nice and simple article. I look forward to more articles from you on how one can implement the MVC framework in applications. A few articles from you on the ASP.NET MVC Framework would also be great for the readers!

Thanks,

Puneet
Title: Excellent Article   
Name: Sunil Punjabi
Date: 2009-01-03 1:49:57 AM
Comment:
Excellent piece of information. Keep it up and post some more.
Title: gr8   
Name: Ravi
Date: 2008-12-16 3:17:30 AM
Comment:
it's really a great article abt MVC in easy words.
Title: another example of wonky behaviour   
Name: gerry lowry
Date: 2008-12-03 6:12:29 AM
Comment:
I notice nothing by "Enter Comment" below BUT
if I e-mail this page to myself, in Outlook Express
I see "Please and 3 and 3 and type the answer here:"
above the "Enter Comment" button and a text box to the left
of the "Enter Comment" button.

Regards,
Gerry (lowry)
gerry dot lowry at ability business computer services dot com
Title: ASP.NET MVC is only a minor part of the solution to wonky behaviour   
Name: gerry lowry
Date: 2008-12-03 5:48:21 AM
Comment:
This article itself is at least for me a perfect example of the problems one encounters. I'm not talking about Brendan's words. Brendan could have choosen random words from random languages for that matter.

Specifically, I'm talking about the testing aspect. As developers, we often get many things for free. For example, the text box in which I'm typing this message has undo available via Ctrl+Z.

Likewise, in the article itself, I can double click to select a word and triple click to select a paragraph.

BUT, yes BUT, no matter how fast I click the above paragraph found between "Model - Why" and "Conclusion"
("It just makes sense ... to test them more easily."), I only get double click behaviour.

This behaviour happens in IE7 but NOT in Safari 3.2.1.

We need testing tools that can ferret out wonky behaviours like the one I just mentioned. Fortunately, this one's not critical. OTOH, critical or not, there's a bug here. It could be in my IE7 or my Win XP Pro SP3 or ... or a combination of everything. I'm curious but I've no time to dig further at the moment, so I'll just file this under mystery.

imo, the most important aspect of MVC as implemented in ASP.NET MVC and as can also be implemented in other ways, is the testing aspect. For that you require a compatible testing frame like xUnit, NUnit, et cetera, as well as related technologies like MoQ, WatiN, and so on. Why? Because among other things, ASP.NET MVC is a Beta product built on .Net 3.5 ~~ as components change, you'll need to test and retest. With automated tools, you can keep your ASP.NET MVC application as healthy as possible and when it becomes ill, you can diagnose it and cure it faster. Most important, when a new component is released, through automated tests, we have better than half a chance to find and repair before our end users inform us about unpleasant surprises.

Regards, Gerry

P.S.: thank you Brendan for your article.


Link: http://www.asp.net/mvc/
Gerry
Title: RE: Straight to the point   
Name: Brendan Enrick
Date: 2008-12-02 1:17:12 PM
Comment:
@Joe Thanks for the comment. That is exactly what I was hoping to achieve with this article. I am glad this worked well for you.

Plenty of people asked me what the big deal with MVC is, so I wrote this to give a simple to understand explanation of MVC.
Title: Straight to the point   
Name: Joe
Date: 2008-12-02 10:40:35 AM
Comment:
thank you for this article, i haven't had time ot wade through all the MVC hype, so an simple, straight to the point article was just what i needed!
Title: Mr.   
Name: Joydip Kanjilal
Date: 2008-12-02 2:03:54 AM
Comment:
Hi Brendan,

This is a nice and simple article. I look forward to more articles from you on how one can implement the MVC framework in applications. A few articles from you on the ASP.NET MVC Framework would also be great for the readers!

Thanks,

Joydip

Product Spotlight
Product Spotlight 





Community Advice: ASP | SQL | XML | Regular Expressions | Windows


©Copyright 1998-2019 ASPAlliance.com  |  Page Processed at 2019-04-21 8:30:35 AM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search