Andrew Stopford's Weblog

poobah

Sponsors

News

Articles

Family

Old Blogs

Coding to MVP but I need more

I have spent all day today coding a asp.net app to the MVP pattern and it's been an interesting exercise. It's a different way of thinking when developing in contract terms and can feel a little longer winded than normal, the ability to abstract the view and test the presenter makes it all the worth the while. What strikes me is that webforms is not a great for patterns and I hope it gets better at it both for MVP and MVC. In an ideal world it would be great to see

clean abstraction between my view and the presenter/controller.
the presenter or controller to be created as a normal class and unit testable like any other class
for the asp.net controls to use more lower level controls at their base, I don't need to create a IContext because the HttpContext inherits from a Context object that I can expose to my tests.
The event rigs to be built into the framework, currently you have to expose event handlers and re-raise the events for each control event. This boils down to the view being a pure view and the code behind a pure controller or presenter.

Posted: Aug 28 2006, 09:13 PM by astopford | with 3 comment(s)
Filed under: ,

Comments

bungle said:

ASP.NET is not the problem. Web Forms is the problem. ASP.NET without Web Forms works just fine with MVC and MVP. I have never liked Web Forms... leaky abstraction, that is.

# August 28, 2006 5:20 PM

Tom Krueger said:

Hey,

There is a DotNetRock TV show by John Paul Boodhoo on Model View Presenter that would be worth checking out if you are just getting started.  

Here's the link.

http://www.dnrtv.com/default.aspx?showID=14

Have Fun,

Tom

# August 28, 2006 7:47 PM

Matai said:

Hello everyone. Having a holiday weekend without a family member felt like putting on a sweater that had an extra arm. Help me! Looking for sites on: Alavert antihistamine. I found only this - <a href="genericalavert.info/">alavert for dogs</a>. After all, this chum of goal is known on an &quot to say a caused first number use, alavert. Alavert, dimension that the larger this guilt is the longer it will read to follow true women. With love :cool:, Matai from Marshall.

# March 26, 2010 9:33 AM