Tuesday, December 2, 2008

MVC Library

Hi all,

It's been a while since I've posted, and I thought I'd start posting more regularly.

Lately, I've been tinkering with the idea of making an MVP (Model-View-Presenter) class library open-source for the general public's benefit. Our team has spent many, many months getting this library setup correctly, and I think other people could benefit from our efforts.

One of the major problems with most people's MVC structure is they violate one of the most principal MVC rules:

The Controller is in control.

For example, in nearly all MVC setups I've seen, the View (i.e. a Windows Forms application) creates a presenter object and a model object, wires them up, and runs. Ideally, the View should be separated from this process, and not be involved. Another rule that is frequently violated is that the View should be separated from the UI layer - in other words, you should not turn your UI layer into the View.

The class library we've been working on tries to enforce as many design rules as it can without being cumbersome and unfriendly. It also makes Dependency Inversion an implicit requirement, making most projects more "plug and play" than they otherwise would be.

Edit: We've published this class library at the DDay Project on SourceForge.

-Doug

Monday, March 3, 2008

New Blog!

Hi everyone,

Many of you have noted that my blog has been offline. I've been tinkering with the idea of making a "global" blog space separate from our web server, so I've finally taken action. Welcome to the new blog!

I'll be posting news about our different projects, and keeping notes of things I find interesting or useful. Anyhow, I hope you enjoy it!

-Doug