The Design of Software (CLOSED)

A public forum for discussing the design of software, from the user interface to the code architecture. Now closed.

The "Design of Software" discussion group has been merged with the main Joel on Software discussion group.

The archives will remain online indefinitely.

simple examples of M-V-P

as a follow-up to:
http://discuss.joelonsoftware.com/default.asp?joel.3.546353.22

Are there any simple examples of M-V-P? I want to do basic crud operations.

Thanks!
Patrick From An IBank Send private email
Thursday, September 27, 2007
 
 
I've liked Phil Haacks description below, http://haacked.com/archive/2006/08/09/ASP.NETSupervisingControllerModelViewPresenterFromSchematicToUnitTestsToCode.aspx

Webforms doesn't lend itself that well to MVP given the way the view comes first, however if you ignore how the view / presenter are hooked together the above is simple description.

From what I've read the general pattern is the same all over,  it varies by author on how they hook everything together, and how much work the view does (Passive View / Supervising Controller from Fowler).

We're still using Webforms and have a base page that does the viring together using Castle Windsor, we end up with the following syntax

public partial class LicenseSetup : BasePage<LicenseSetupController>, ILicenseSetupView

Hope this helps
Nigel Sampson Send private email
Thursday, September 27, 2007
 
 
Have a look at Arcast.tv at

http://channel9.msdn.com/ShowPost.aspx?PostID=312305

Ron Jacobs interviews a cool duo with very interesting ideas on MVP. Links from the page above

The Humble Dialog Box by Michael Feathers
http://www.objectmentor.com/resources/articles/TheHumbleDialogBox.pdf

Brian Marick's Presenter First wireframe demo (quicktime movie)
http://www.testing.com/cgi-bin/blog/2007/01/05#wireframe2

Atomic's Presenter First homepage
http://atomicobject.com/pages/Presenter+First

An Atomic Spin blog entry about interaction-based testing
http://spin.atomicobject.com/2007/02/05/mocking-built-in-standard-library-and-other-classes-that-dont-have-interfaces/#more-60

All this is about Presenter First which is nice take on MVP and UI testing. I find it very interesting and am also writing about MVP for VB6 (don't ask...) but it is still on part 1 only:
http://codefornothing.wordpress.com/2007/09/15/model-view-presenter-in-visual-basic-6-part-1/
JSD Send private email
Thursday, September 27, 2007
 
 
The series of posts by Jeremy Miller on "Build Your Own CAB" has a good discussion of MVP and other related patterns you may want to check out as well:

http://codebetter.com/blogs/jeremy.miller/default.aspx
nobody
Tuesday, October 02, 2007
 
 

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics
 
Powered by FogBugz