Sunday, August 5, 2012

Re: which EventBus

Jens,

thanks for you reply.

The MVP-2 example (with UIBinder) also uses HandlerManager directly in its code, just as the MVP-1.  I shall try my hand, using SimpleEventBus in these samples.

I wonder how HandlerManager got into these samples in the first place. Was it a mere oversight, in a series of articles which were focusing on MVP, without paying much attention to the choice of EventBus ?  Or, was there some evolution over time, resulting in HandlerManager falling out of grace ? 

I'm learning my way through a huge GWT project which has been going for years. It carries the scars of multiple paradigm-changes, where the preferred design pattern of one year has become the black sheep of the next year.  A herd of sheep would be a more accurate analogy for the different web pages developed over the years: some black, some grey, and some shining white -:)   The romans said "ars longa, vita brevis" so let's enjoy the journey.

Andrew


On Wednesday, August 1, 2012 6:21:15 PM UTC+10, Jens wrote:
Always use the web.bindery EventBus in your code and never use the HandlerManager directly. Also I strongly recommend to use Part II of the mentioned article (https://developers.google.com/web-toolkit/articles/mvp-architecture-2) which makes your code a lot cleaner.

-- J.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/ifR6SHJFoawJ.
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


Real Estate