Re: too much code: GWT Development with Activities and Places
On Fri, Sep 23, 2011 at 3:13 PM, magnum <p.magnowski@gmail.com> wrote:
> view implementations ... but honestly I'd rather have a smart view /
> presenter class that wires everything together. The processing is
> delegated to event bus or other handler that processes the business
> logic.
There's nothing stopping you doing this, you can use a UiBinder
template and backing class as a combined view/presenter. You will of
course lose the decoupling of views/presenters the MVP framework is
bringing to the table, and its advantages.
I havn't read the MVP docs in a while, but it should probably be
better explained that its just *one* way of doing GWT development, not
*the* way, and your free to use part of it, none of it, all of it,
depending on what you actually need. As a newcomer to GWT (and Java!)
I spent a lot of time on it when starting out, as it was the most
prominent documentation on how to do certain things (views and
'pages'/places in particular) for very little net gain. For simple
apps, using UiBinder and attaching the resulting widget to the page
manually lets you actually get to the meat of your application much
faster and with much much less complexity. You can always refactor to
MVP later.. (though that doesn't sound fun) anyway just my 2cents,
maybe with better tooling there would be fewer of these 'MVP is too
complex' threads.
And on tooling, and RequestFactory, the new annotation processor is
great, compile time validation really helps (I am manually writing my
proxies) but I was disappointed to see that the 'RPC tooling' is only
for Android Apps.
Are we expecting to see GPE provide Proxy/RequestContext generation in
the future for non-android apps?
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home