Hi Nicolas,
I saw that you removed the default rejection of the self loops and
that you updated the tests. This is good, but now we miss the tests
related to withoutSelfLoops (basically the previous assertions).
Furthermore, we still need to add withoutSelfLoops to MooseObjectQueryResult.
Cheers,
Tudor
On Mon, Nov 28, 2011 at 12:40 PM, Alexandre Bergel
<alexandre.bergel(a)me.com> wrote:
+1
Alexandre
Le 28 nov. 2011 à 06:04, Nicolas Anquetil <nicolas.anquetil(a)inria.fr> a
écrit :
De: "Alexandre Bergel" <alexandre.bergel(a)me.com>
À: "Moose-related development" <moose-dev(a)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(a)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(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
--
www.tudorgirba.com
"Every thing has its own flow"