SmallDude

classic Classic list List threaded Threaded
2 messages Options
Usman Bhatti Usman Bhatti
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

SmallDude

Two questions on SmallDude for code duplication in Moose:
- What is a multiplication?
- How can I create a multiplication constellation visu (http://www.themoosebook.org/book/externals/visualizations/multiplication-constellation)?

I have an external tool that calculates duplication information (lines numbers, dupl. classes, code) and I am looking to see if can use dude to visualize this information.

thanx,
usman

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Tudor Girba-2 Tudor Girba-2
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: SmallDude

Hi,

On 6 Feb 2012, at 22:24, Usman Bhatti wrote:

> Two questions on SmallDude for code duplication in Moose:
> - What is a multiplication?

A Multiplication represents a text fragment that is copied in multiple places. Duplication represents a clone relationship between two entities. Thus, a Multiplication is a set of Duplications.

> - How can I create a multiplication constellation visu (http://www.themoosebook.org/book/externals/visualizations/multiplication-constellation)?

You first generate the Multiplications objects using SmallDude:
http://www.themoosebook.org/book/externals/smalldude

, and afterwards you trigger the visualization.


> I have an external tool that calculates duplication information (lines numbers, dupl. classes, code) and I am looking to see if can use dude to visualize this information.

This would be more difficult because you would need to reconstruct the Multiplication entities from the Duplication information you have.

Cheers,
Doru




> thanx,
> usman
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev

--
www.tudorgirba.com

"In a world where everything is moving ever faster,
one might have better chances to win by moving slower."




_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Loading...