Received: by 10.58.253.5 with SMTP id zw5mr2885471vec.2.1344231498620; Sun, 05 Aug 2012 22:38:18 -0700 (PDT) X-BeenThere: google-web-toolkit@googlegroups.com Received: by 10.52.35.202 with SMTP id k10ls4285568vdj.0.gmail; Sun, 05 Aug 2012 22:37:40 -0700 (PDT) Received: by 10.52.97.102 with SMTP id dz6mr752055vdb.2.1344231460760; Sun, 05 Aug 2012 22:37:40 -0700 (PDT) Date: Sun, 5 Aug 2012 22:37:40 -0700 (PDT) From: andrewsc To: google-web-toolkit@googlegroups.com Message-Id: In-Reply-To: <1ad45fa9-1a50-459f-8c37-a19b0077ab3e@googlegroups.com> References: <69911eeb-ede5-4211-8a1f-3847bfe23dd1@googlegroups.com> <1ad45fa9-1a50-459f-8c37-a19b0077ab3e@googlegroups.com> Subject: Re: which EventBus MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_18_7661856.1344231460174" ------=_Part_18_7661856.1344231460174 Content-Type: multipart/alternative; boundary="----=_Part_19_8589375.1344231460178" ------=_Part_19_8589375.1344231460178 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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. > ------=_Part_19_8589375.1344231460178 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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 i= n 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 fo= cusing on MVP, without paying much attention to the choice of EventBus ?&nb= sp; Or, was there some evolution over time, resulting in HandlerManager fal= ling out of grace ? 

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


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

-- J.
------=_Part_19_8589375.1344231460178-- ------=_Part_18_7661856.1344231460174--