Skip navigation.

"Startup Success" Panel with Guy KawasakiAll recent postsBook Review: Agile Principles, Patterns, and Practices in C#

Model-View-Presenter Pattern in Web Client Software Factory

Via David Hayden: Web Client Software Factory comes with a neat example of the MVP pattern (although I think their controller is named incorrectly). I’m warming up more and more to the MVP pattern, especially its Passive View variation. I’m with those folks who point out that ASP.NET puts too much emphasis on Rapid Application Development and sacrifices sound design. “Code-behind”, a promising concept of separation of presentation from code, still perpetuates procedural programming because it tries to pull too much weight and thus makes Web Forms monolithic.

I have a section in my OneNote 2007 where I collect examples of the MVP pattern in ASP.NET. I think it’s great that so many folks take a stab at it—sooner or later we’ll work out tried and proven guidelines of its application.

In the meantime, I’d love to see more real-life examples. The “humble dialog box” was a great starting point, but enough of beating a dead horse. ASP.NET comes with a bag of issues that make application of the MVP pattern difficult. Stateless nature of web pages, postbacks, callbacks, view state, server controls, etc—these are the areas we need to focus on, I believe. Seeing yet another example of withdrawing $100 from one account and depositing it into another (all unit-tested), makes me want to scream!

Comments

No comments yet

Emails and Notifications

Would you like to be notified when somebody responds to this post? 

TrackBacks

Sorry, TrackBacks are not allowed.

Submit your comment

Please enter only text since all HTML tags except hyperlinks will be stripped. Hyperlinks will become live links. Any comments with flaming or offensive language will be deleted. Be courteous to other posters. Thank you.

Your name (required):
Your email (optional):
Your site's URL (optional):
Enter this number
Type in the number above:
Comment (required):