Re: Procedural modules in an object-oriented project

2009-08-19 Thread Peter Scott
At 06:29 AM 8/19/2009, Chas. Owens wrote: On Wed, Aug 19, 2009 at 09:03, Peter Scott wrote: snip > The Exporter isn't hard to learn, and Exporter::Simple is even easier and > prettier. Non O-O procedures should be exported. snip That last sentence should read "Non OO procedures should be export

Re: Procedural modules in an object-oriented project

2009-08-19 Thread Chas. Owens
On Wed, Aug 19, 2009 at 09:03, Peter Scott wrote: snip > The Exporter isn't hard to learn, and Exporter::Simple is even easier and > prettier.  Non O-O procedures should be exported. snip That last sentence should read "Non OO procedures should be exported on demand." Modules should not import an

Re: Procedural modules in an object-oriented project

2009-08-19 Thread Shlomi Fish
On Wednesday 19 August 2009 16:03:01 Peter Scott wrote: > On Tue, 18 Aug 2009 19:39:29 -0400, Steve Bertrand wrote: > > While reviewing my POD to ensure that I've been keeping it up-to-date > > properly, and so that I can still easily understand the API at the > > documentation level, I've noticed

Re: Procedural modules in an object-oriented project

2009-08-19 Thread Peter Scott
On Tue, 18 Aug 2009 19:39:29 -0400, Steve Bertrand wrote: > While reviewing my POD to ensure that I've been keeping it up-to-date > properly, and so that I can still easily understand the API at the > documentation level, I've noticed that two of my modules have > subroutines that only perform glob

Re: Procedural modules in an object-oriented project

2009-08-18 Thread Steve Bertrand
Uri Guttman wrote: > making a basic procedural sub into a class method for no reason > means you pass useless data (the class name) and ignore it in the > sub. that to me is a poor API. Point well taken. > SB> Besides... I'm at a stage where I'd rather carry on with Perl BCP and > SB> coding

Re: Procedural modules in an object-oriented project

2009-08-18 Thread Steve Bertrand
Steve Bertrand wrote: > Jenda Krynicky wrote: >> From: Steve Bertrand >>> Is it recommended that I stick with the overall style of the project by >>> making all of the modules object-oriented, or is it better to create >>> procedural modules when objects are not required? >> Depends. Not on the

Re: Procedural modules in an object-oriented project

2009-08-18 Thread Uri Guttman
> "SB" == Steve Bertrand writes: SB> Jenda Krynicky wrote: >> >> Use whatever feels more natural to you. SB> I really think I'll stick with OO for consistency throughout, even if SB> it's just for the simple purpose of having a consistent SB> my $self = shift; SB> ...as the

Re: Procedural modules in an object-oriented project

2009-08-18 Thread Steve Bertrand
Jenda Krynicky wrote: > From: Steve Bertrand >> My ISP management project which started out as a learning experience has >> grown into a system that currently contains 10 modules. The entire >> system is object-oriented. >> >> While reviewing my POD to ensure that I've been keeping it up-to-date >

Re: Procedural modules in an object-oriented project

2009-08-18 Thread Jenda Krynicky
From: Steve Bertrand > My ISP management project which started out as a learning experience has > grown into a system that currently contains 10 modules. The entire > system is object-oriented. > > While reviewing my POD to ensure that I've been keeping it up-to-date > properly, and so that I can

Procedural modules in an object-oriented project

2009-08-18 Thread Steve Bertrand
My ISP management project which started out as a learning experience has grown into a system that currently contains 10 modules. The entire system is object-oriented. While reviewing my POD to ensure that I've been keeping it up-to-date properly, and so that I can still easily understand the API a