New PoCo Guidelines

2004-07-26 Thread David Davis
After a talk in #poe, I was assigned with the task of coming up with some guidelines for POE components. I'd like as much feedback as I can get. Then I'll setup a page on poe.perl.org with what everyone has came up with, and hopefully some guidelines will come of this. Here's what we have so far

POE-Component-Proxy-TCP uploaded to http://sourceforge.net/project/showfiles.php?group_id=114891

2004-07-26 Thread andy
Hi, I have created a modest PoCo for making TCP proxies, that is sessions that connect to a server when connected to by a client, and that also execute callbacks as info flows both ways. I would appreciate comments and bug reports, especially before I post a dist to CPAN. The sf project is called n

Re: New PoCo Guidelines

2004-07-26 Thread sungo
On (07/25 16:56), David Davis wrote: > -interchangeable events & coderefs > event => 'event', > event => \&event, this was decided against years ago. components act like services. accepting event names causes the code in question to mutate an existing session to its will. this is what wheels are

Re: New PoCo Guidelines

2004-07-26 Thread sungo
On (07/25 16:56), David Davis wrote: > -call conventions (use hashrefs instead of arrays?) are you talking about the insides of a component object? if so, don't meddle there. any guidelines for components really need to stick to interface alone. let the components do what is necessary to get thei

RE: New PoCo Guidelines

2004-07-26 Thread Erick Calder
I always prefer more flexibility so one thing I'd like to see is call signatures that can take a hash or list of hashrefs so I can write: $y = { three => 'tre' }; $x->(one => 'ett', two => 'tva', $y, etc => 'whatever'); -Original Message- From: sungo [mailto:[EMAIL PROTECT

Re: New PoCo Guidelines

2004-07-26 Thread Duane Beck
Erick Calder wrote: I always prefer more flexibility so one thing I'd like to see is call signatures that can take a hash or list of hashrefs so I can write: $y = { three => 'tre' }; $x->(one => 'ett', two => 'tva', $y, etc => 'whatever'); The following should work without any chang