[Pharo-project] A radical proposal (to cut down dead code)

laurent laffont laurent.laffont at gmail.com
Tue May 31 20:44:22 CEST 2011


Another idea (don't know how hard it is) is to have test coverage + comment
coverage in Hudson.

Then we can start to consider that dead code = code with no test or no
comment.

Laurent.


On Sat, May 28, 2011 at 3:35 PM, Marcus Denker <marcus.denker at inria.fr>wrote:

> Hi,
>
> There is *a lot* of dead code in the image.
>
> I guess around 1/3 of the code base in Core is just not used at all
> (especially Morphic).
>
> One thing I would like to do is to put, at the beginning of a development
> cycle,
> a call
>
>        self doesAnyOneUseThisTaggedIn: 'pharo 1.3'.
>
> at the beginning of *all* unsent methods. And keep it even in the released
> image.
>
> This way we can, within 2-3 interations, remove *a lot* of dead code.
>
> Methods where people tell us that they need them, we should tag
> with <api> or <public> or something like that.
>
>
>        Marcus
>
> --
> Marcus Denker  -- http://www.marcusdenker.de
> INRIA Lille -- Nord Europe. Team RMoD.
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gforge.inria.fr/pipermail/pharo-project/attachments/20110531/2744854b/attachment.htm>


More information about the Pharo-project mailing list