On Fri, 2002-05-24 at 00:02, Rocco Caputo wrote:
> Postbacks are cumbersome for message passing in larger programs.

I also notice that postbacks decrease the transparency of the messages
being passed.  When posts are used, it's straight forward to tell what
messages are passed back to the sender.  Postbacks on the other hand
mask this information.

Another idiosynchrocy about postbacks that often caught beginners is the
arguments (in fact, this was a bug in the example program fragment I
included, *sigh*).  In the event handler, $_[ARG0] is [@state_args] and
$_[ARG1] is [@event_args] instead.  This is very different from simple
posts.

> Since the creation of postbacks, two changes have occurred to make
> them nearly obsolete for inter-session (and session/component)
> messaging.

I take it that this means in most cases, using simple posts is
preferred?

> This issue haunts my every waking moment. :) Seriously, a long time
> ago several people said POE needed a consistent messaging system.  As
> I've used it more, it's become painfully clear they were right.

A consistent messaging system will certainly make learning POE easier.
 
> I have rough designs for a few ways to pass messages between
> components.  None of them feels quite right, so we still don't have a
> standard.  If I were to write a messaging manifesto summarizing them,
> would people be interested in discussing them towards the goal of
> creating one tidy system?

Absolutely.  IMHO, at a minimum, it will provide a platform for
discussion, and opportunities for developers to rethink their messaging
passing mechanisms.

Pete


Reply via email to