Re: [Catalyst] Polymorphism?

2009-07-14 Thread Eric Wright
Thanks again for the info. I was trying to see if there was a Perl Mongers group in our area. Seems like there used to be one in Hartford CT but now is defunct? Web site not operational. In the meantime, I just received the new Catalyst book and started poring over it. I was happy to see its inclu

Re: [Catalyst] Polymorphism?

2009-07-07 Thread J. Shirley
On Tue, Jul 7, 2009 at 6:11 AM, Eric Wright wrote: > Thanks all for the thoughts and the link. I'll be sure to take some time > and digest that. > > Re: method modifiers, that sounds like a really interesting solution. Roles > seem very similar to me to Java interfaces. I really need to get more

Re: [Catalyst] Polymorphism?

2009-07-07 Thread Eric Wright
Thanks all for the thoughts and the link. I'll be sure to take some time and digest that. Re: method modifiers, that sounds like a really interesting solution. Roles seem very similar to me to Java interfaces. I really need to get more on board with understanding how Moose can best be utilized. I'

Re: [Catalyst] Polymorphism?

2009-07-07 Thread Tomas Doran
Dave Rolsky wrote: As do Moose roles. I've found using roles in controllers incredibly helpful, since I often have similar/same "process this data and invoke a ->search method", where the only thing that varies is what is being searched and/or the way the results are being displayed. Unfortun

Re: [Catalyst] Polymorphism?

2009-07-06 Thread Dave Rolsky
On Mon, 6 Jul 2009, J. Shirley wrote: Moose method modifiers work just fine on Catalyst code, which I find to really help with using inheritance upstream. You'll probably want to As do Moose roles. I've found using roles in controllers incredibly helpful, since I often have similar/same "pro

Re: [Catalyst] Polymorphism?

2009-07-06 Thread J. Shirley
On Mon, Jul 6, 2009 at 3:33 PM, Eric Wright wrote: > I'm just wondering if any Catalyst programmers have used polymorphism in > the construction of their controller classes. Coming from a Java background > I'd like to be a little more OOP about how I implement my controllers. i.e. > I'd like to b

[Catalyst] Polymorphism?

2009-07-06 Thread Eric Wright
I'm just wondering if any Catalyst programmers have used polymorphism in the construction of their controller classes. Coming from a Java background I'd like to be a little more OOP about how I implement my controllers. i.e. I'd like to be able have a parent controller with common behavior and over