← Back to team overview

launchpad-dev team mailing list archive

Re: proposed policy: maintenance costs

 

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 12-02-09 12:35 PM, Robert Collins wrote:
>> 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.

Me too, but it's certainly possible to be fooled about the parameters
of a solution with only two instances of a problem.  With a third
instance, I feel very comfortable that a solution is generalized in a
useful way.

Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk80Br4ACgkQ0F+nu1YWqI3itQCcDQOudjVpXslBFlOKxqc8913N
GlwAnAypimWsuW6EDOppW4Pye7fzStE6
=8/70
-----END PGP SIGNATURE-----


References