develooper Front page | perl.perl5.porters | Postings from May 2010

Re: Refactoring OS type mapping using Perl::OSType and bringing itinto core.

Thread Previous | Thread Next
From:
Andy Dougherty
Date:
May 21, 2010 11:51
Subject:
Re: Refactoring OS type mapping using Perl::OSType and bringing itinto core.
Message ID:
alpine.DEB.2.00.1005211439210.7766@fractal.phys.lafayette.edu
On Fri, 21 May 2010, David Cantrell wrote:

> On Thu, May 20, 2010 at 12:34:09PM -0700, Jan Dubois wrote:
> > On Thu, 20 May 2010, David Golden wrote:
> > > I plan to modify Module::Build and EU::CB (at a minimum) to use this
> > > new module (which would mean it would come into core). It would then
> > > be available for other modules (both distributed with Perl and on
> > > CPAN) to likewise refactor their OS mapping to use it. This will
> > > reduce duplicated code and improve ease of maintenance over time.
> > Personally I'm not convinced that it makes maintenance any easier
> 
> It means that Module::Build, EU::CB etc use the same mappings so will
> never get out of sync, will never disagree with each other about, eg,
> whether to treat Cygwin as Unix-like, ...

But surely whether or not to treat Cygwin as Unix-like depends on which 
question is being asked.  There is no single always-correct answer. That's 
why Configure has always focused on features, not platforms.

I do agree that refactoring common code can reduce maintenance costs, but 
as you do so, I'd encourage you to consider organizing it in terms of 
features, not platforms.

-- 
    Andy Dougherty		doughera@lafayette.edu

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About