Saturday, 13 November 2010

MVP With No GUI Editor Sucks

I'm looking back at my old boiler plate servlets now, and thinking, they were a lot easier to write than this MVP stuff!

I imagine the pattern grew up as part of building a GUI designer. You need to be able to layout the views without them being wired up to their presenters. The two phase construction of the presenters allows this.

1) Normal class construction phase
2) Wiring phase, where the views are wired to their presenters and will start delivering interactions.

In Dolphin Smalltalk, you layout presenters (only slightly counter intuitive) they show using their default view. You can change the view they use if you wish.

Without this GUI designer, I have an extra chore of mapping my view classes to named items in the webpage. This is tedious and without the visual reference I'm getting a little lost.

The next time I attempt this, I'll try and work it into some JSP designer. I've never had great experiences with them.

No comments:

Post a Comment