Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / July 2006

Tip: Looking for answers? Try searching our database.

MVP 'suitable' for .Net 2 Winform App?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Pritcham - 20 Jul 2006 19:26 GMT
Hi

This may seem a dumb question and I apologise in advance if it is,
but.....

I've been developing 'hobby-apps' for quite a few years now, nothing
serious but just dabbling really.  I've now got a chance to develop
something with a bit more meat on it and am therefore looking at
starting out in the best way I can as far as design etc goes.

I've already got the data side sorted via a data access layer etc and
am now just looking at the presentation layer.

I've obviously been doing some googling on best practices etc as far as
presentation layer goes and have come across the MVP pattern (and MVC
naturally) and have now got enough of an understanding (I think) to
implement it in my app, the question is - should I?

I've read a few contrary views on the subject (both for and against)
and just wondered what others were doing - I know there's naturally
more effort involved in implementing MVP but is it something that, in
some instances, is done for the sake of it (i.e. pattern overload!) or
does it really have that much benefit that it's worth it?

Opinions/advice welcome!!

Thanks in advance
Martin
Joanna Carter [TeamB] - 20 Jul 2006 19:47 GMT
| I've obviously been doing some googling on best practices etc as far as
| presentation layer goes and have come across the MVP pattern (and MVC
| naturally) and have now got enough of an understanding (I think) to
| implement it in my app, the question is - should I?

Have you read my article son MVP in Delphi ? They are on my website
www.carterconsulting.org.uk

I have proted this implementation to C# and have found it perfectly
suitable, but I have certainly been able to simplify the framework due to
the facilities, generics and metadata provided by .NET 2.0.

| I've read a few contrary views on the subject (both for and against)
| and just wondered what others were doing - I know there's naturally
| more effort involved in implementing MVP but is it something that, in
| some instances, is done for the sake of it (i.e. pattern overload!) or
| does it really have that much benefit that it's worth it?

Once the initial framework is designed, there is very little extra effort in
using it in anger.

The key use for MVP is to remove *all* logic code from your forms. I use the
concept of the Interactor as a wrapper class around the .NET Binding class.
This allows me to write event handlers in the Interactor instead of the
usual place in the form class.

Joanna

Signature

Joanna Carter [TeamB]
Consultant Software Engineer

Pritcham - 20 Jul 2006 21:12 GMT
Hi

Thanks for that Joanna - I must admit that I was kind of edging towards
implementing MVP but just wanted a sense check to make sure I wasn't
just implementing a pattern for the sake of it

Martin

> | I've obviously been doing some googling on best practices etc as far as
> | presentation layer goes and have come across the MVP pattern (and MVC
[quoted text clipped - 23 lines]
>
> Joanna

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.