← Back to team overview

launchpad-dev team mailing list archive

Re: proposed policy: maintenance costs

 

On Thu, Feb 9, 2012 at 3:16 AM, Aaron Bentley <aaron@xxxxxxxxxxxxx> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 12-02-07 08:03 AM, Richard Harding wrote:
>> On Tue, 07 Feb 2012, Robert Collins wrote: So I'm officially in the
>> "wait and see" boat on this. It strikes me that a lot of our
>> overall goals of modularity, components, etc are very likely to
>> increase LoC just because it's the nature of splitting things.
>
> There are certainly instances where increased modularity will increase
> LoC.  When a short function is extracted, and it only has a few call
> sites, a LoC increase is likely, if only from additional
> documentation.  As the number of call sites or the length of the
> function increases, the LoC will tend to decrease.

An interesting question (without a satisfactory answer I think) is
then whether the modularity is worth it. It can be tough :)

That said, I would tend to go for extracted functions even with only 2
call sites, most of the time.

-Rob


Follow ups

References