OO Design Principles/Patterns

2011-10-11 Thread Steve
As someone who arrived somewhat late to the OO game, I have take every opportunity to learn some of the principles of OO design and use. I have been using Moose for a couple of years, primarily in the context of Catalyst and HTML::FormHandler. Lately though, I am studying the book 'Design

Re: OO Design Principles/Patterns

2011-10-11 Thread Stevan Little
On Oct 11, 2011, at 9:02 AM, John Napiorkowski wrote: From: Steve st...@matsch.com To: moose@perl.org moose@perl.org Sent: Tuesday, October 11, 2011 8:50 AM Subject: OO Design Principles/Patterns As someone who arrived somewhat late to the OO game, I have take every opportunity to learn

Re: Design Pattern for Validation

2011-10-11 Thread Cory Watson
Peter Gordon wrote: I am trying to find a decent design pattern for Moose validation of user input. All the Moose examples I have found either assume that the data is correct or else dies. snip You might be interested in using: https://metacpan.org/module/Data::Verifier Which lets you

Re: Design Pattern for Validation

2011-10-11 Thread Stevan Little
On Oct 11, 2011, at 10:30 AM, Peter Gordon wrote: I am trying to find a decent design pattern for Moose validation of user input. All the Moose examples I have found either assume that the data is correct or else dies. Example: package Address ; use Moose; use

Re: OO Design Principles/Patterns

2011-10-11 Thread Steve
John and Stevan, Thank you both for your comments. This is pretty heady stuff for someone who went to college to get a business degree :) I will definitely take a look at all the resources referenced, and offer one more that I stumbled across after my initial message:

Re: OO Design Principles/Patterns

2011-10-11 Thread John Napiorkowski
- Original Message - From: Steve st...@matsch.com To: Stevan Little stevan.lit...@iinteractive.com Cc: Moose ML moose@perl.org; John Napiorkowski jjn1...@yahoo.com Sent: Tuesday, October 11, 2011 11:19 AM Subject: Re: OO Design Principles/Patterns John and Stevan, Thank you

Re: OO Design Principles/Patterns

2011-10-11 Thread Stevan Little
On Oct 11, 2011, at 11:33 AM, John Napiorkowski wrote: - Original Message - From: Steve st...@matsch.com To: Stevan Little stevan.lit...@iinteractive.com Cc: Moose ML moose@perl.org; John Napiorkowski jjn1...@yahoo.com Sent: Tuesday, October 11, 2011 11:19 AM Subject: Re: OO Design

Re: Design Pattern for Validation

2011-10-11 Thread Karen Etheridge
On Tue, Oct 11, 2011 at 04:30:25PM +0200, Peter Gordon wrote: I am trying to find a decent design pattern for Moose validation of user input. All the Moose examples I have found either assume that the data is correct or else dies. ... From an OOP perspective, it seems to me that the