Slight follow up to both Stephen's comments here and my own prev post - If
the interfaces are for existing, standard, built-in GWT widgets, type 2
makes a lot more sense, whereas for type 1, we really seem to need a
general, ideal button that can be replaced by any implementation (with
possibly any internal rebuilding via appearance/cells/etc).

-Colin

On Wed, Jun 5, 2013 at 4:36 PM, Stephen Haberman
<[email protected]>wrote:

>
> > Yeah this Type 1 style is really PITA in the long term, especially if
> > views are a bit more complex.
>
> I disagree; I actually prefer Type 1. Although to each their own, of
> course.
>
> > However, with the release of UiBinder we constantly tell
> > people/recommend to use the Type 2 style of MVP with UiBinder +
> > @UiHandler and a delegate interface if they ask for MVP in
> > gwt-discuss.
>
> UiHandler makes inner classes 2 lines shorter, but IMO it still leads
> to the same spaghetti code (reactive/imperative, instead of
> declarative).
>
> Tessell's binding DSL makes simple/common operations one line
> declarations (explicitly via Type 1-exposed widget interfaces, not
> UiHandlers). E.g. I don't see how UiHandlers/Type 2 could be as
> succinct as:
>
>
> https://github.com/stephenh/todomvc-tessell/blob/master/src/main/java/org/tessell/todomvc/client/app/TodoPresenter.java#L43
>
> > So I think this argument looses some weight as probably no one really
> > wants to do the type 1 way anymore and only a minority still choose
> > it for new projects.
>
> Well, that is unfortunate, as MVP Type 1 with Tessell's view generation
> and binding DSL is quite pleasant. But, again, to each their own. :-)
>
> > No need for GWTMockUtilities.disarm() or gwtmockito then.
>
> Exactly.
>
> - Stephen
>
> --
> http://groups.google.com/group/Google-Web-Toolkit-Contributors
> ---
> You received this message because you are subscribed to the Google Groups
> "GWT Contributors" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>


-- 
218.248.6165
[email protected]

-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors
--- 
You received this message because you are subscribed to the Google Groups "GWT 
Contributors" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to