De: "Alexandre Bergel" <alexandre.bergel@me.com>
À: "Moose-related development" <moose-dev@iam.unibe.ch>
Envoyé: Dimanche 27 Novembre 2011 14:41:26
Objet: [Moose-dev] Re: software engineering metrics and MooseChef

I think this is a valuable effort. Have you checked if the results are the same? I have the impression that chef may be slower. 
didn't test.
Even if it is a bit slower, it might still be a huge gain.
First because it is more concise,
Second because it unify a gazillion different methods (sureInvoke, potentialInvoke, ...)
Third because it avoids mistakes

nicolas
I am not sure why withoutSelfLoops may be problematic
one never knows ...
Alexandre



Le 27 nov. 2011 à 08:17, Nicolas Anquetil <nicolas.anquetil@inria.fr> a écrit :

Hi,

I want to redefine the soft engineering metrics (in famix-extension-metrics) using MooseChef which is more concise and generic.

But for this I need to remove the implicit withoutSelfLoops from some query.
If anybody has something agains this removal, let him come forth and speak now or remain silent forever and ever.



Here is an example of how nice MooseChef can be.
Consider:

myClasses collect: [:c | c queryAllOutgoingDependencies atClassScope withinMyPackage]

instead of:

myClasses collect: [:c | (c invokedClasses select: [:invoked | invoked packageScope =  self])
                                          union:
                                          ((c superclass isNil not and: [c superclass packageScope = self])
                                                    ifTrue: [{c superclass}]
                                                    ifFalse: [#()])]
_______________________________________________
Moose-dev mailing list
Moose-dev@iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev

_______________________________________________
Moose-dev mailing list
Moose-dev@iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev