POE + Moose

2009-04-28 Thread Nick Perez
So I had some expectations out of EC's effort, but doesn't look like the path being taken is one I necessarily want to follow. But it did give me some ideas on integrating POE and Moose. So I spent some time looking through various POE::Session implementations: strengths, weaknesses, and raw

Re: Suggestions on which poe DBI module to use

2009-04-28 Thread Andrew Feren
I've only read through the code so far, but here are a couple of thoughts. I thought '' should be specified for unused EasyDBI aliases rather than 'not_used'. Although I like the self documenting nature of 'not_used'. This seems straight forward enough and looks like what you advertised. I

Re: Suggestions on which poe DBI module to use

2009-04-28 Thread Andrew Feren
Last night I remembered (at least partially) the one problem I had with EasyDBI. I had some minor problems when connecting to the DB (http://rt.cpan.org/Ticket/Display.html?id=36693 and I think something else that I can't find documented). I worked around it with an eval { ... }; if ($@)

Use of POE within a module

2009-04-28 Thread howard chen
Hello, Most example put callback function as global, e.g. http://search.cpan.org/dist/POE-Component-Client-NNTP/lib/POE/Component/Client/NNTP.pm POE::Session-create( package_states = [ 'main' = { nntp_disconnected = '_shutdown', nntp_socketerr

Re: Suggestions on which poe DBI module to use

2009-04-28 Thread Brett Paden
Andrew Feren wrote: It's been a while since I looked at all of these. I have some code using EasyDBI and other code using SimpleDBI. Me too ... I settled on EasyDBI as well, but made that decision two ago and don't specifically recall my exact reasoning :-). I do know that EasyDBI met

Re: Suggestions on which poe DBI module to use

2009-04-28 Thread Phil Whelan
On Tue, Apr 28, 2009 at 6:46 AM, Brett Paden pa...@multiply.com wrote: The app the uses EasyDBI is running in production servers and shuffles around 2TB of uploaded user data a day; I have ran into 0 problems. Same here. We've been running this in a daemon that processes very large volumes of

Re: Porting POE to Moose

2009-04-28 Thread Robert Landrum
I, for one, found it humorous. But then, I instantly assume everyone is trolling. Too much fark, I suppose. I bet his approach got a lot more attention than a simple Hey... check out Moose. It's like POE, only cleaner. Warranted or not, it seems to have been effective. Rob Rocco

Re: Porting POE to Moose

2009-04-28 Thread Martijn van Beers
On Tue, 2009-04-28 at 10:58 -0400, Robert Landrum wrote: Warranted or not, it seems to have been effective. Uh, in what way? because there's now sounds of other people looking at moose too? That's just a coincidence; people have been looking at using Moose and POE together for quite a while

Re: Use of POE within a module

2009-04-28 Thread David Davis
Replace 'main' with MyModule and remove MyModule from your function names. You should also read the docs. David Davis ☄ Software Engineer http://xant.us/ http://xantus.tel/ On Tue, Apr 28, 2009 at 10:00, howard chen howac...@gmail.com wrote: Hello, Most example put callback function as

Re: Use of POE within a module

2009-04-28 Thread howard chen
Hello, On Wed, Apr 29, 2009 at 2:08 AM, David Davis david.da...@gmail.com wrote: Replace 'main' with MyModule and remove MyModule from your function names. You should also read the docs. Yes, but the POE doc are quite scatterred (http://poe.perl.org/?POE_Documentation), and many are old