[Soft question] Tips and tools to analyze unfamiliar OO code

조회 수: 2 (최근 30일)
Joan Vazquez
Joan Vazquez 2020년 6월 25일
편집: Yair Altman 2020년 6월 29일
What are your tips / Are there any tools to:
Get a quick overview of undocumented but well structured and named OO code?
I am thinking e.g. of automatic graphs showing the class hierarchies and methods therein.
  댓글 수: 2
per isakson
per isakson 2020년 6월 25일
편집: per isakson 2020년 6월 25일
Search FEX for UML
Warning: Regarding m2uml you need to edit the code in a couple of places in accourdance with descriptions in the comments.
Joan Vazquez
Joan Vazquez 2020년 6월 25일
Thanks, very nice package! I already used it to create some useful UML diagrams.
As you mention, the question is: "Can m2uml help learning a new code-base?".
Then, can you share the code that you used to do the "quick test with the File Exchange contribution, GUI Layout Toolbox by David Sampson." (within m2uml_v11_hyperlinks_tooltips_publish). I wonder if you explicitely defined all the classes in the call to m2uml.run.
In any case, my question is not resticted to UML. Did you ever have to learn a new Matlab code base? General tips / tools?

댓글을 달려면 로그인하십시오.

답변 (1개)

Yair Altman
Yair Altman 2020년 6월 29일
편집: Yair Altman 2020년 6월 29일
For inspecting a single object or class, try
  1. the GUI-based uiinspect utility (https://www.mathworks.com/matlabcentral/fileexchange/17935-uiinspect) and/or:
  2. console-based checkClass utility (https://www.mathworks.com/matlabcentral/fileexchange/26947-checkclass)

카테고리

Help CenterFile Exchange에서 Software Development Tools에 대해 자세히 알아보기

제품


릴리스

R2019a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by