Pyreversed class diagrams

Extracting class diagrams from code is easy; there exist many tools. For python, pyreversed is the most used one.

The readability of the diagram is strongly dependents on the tool, the selected options, and mostly: the quality of the design/code. Do not expect nice diagrams, when somebody created the code without a proper design!

concurrent.futures.thread.ThreadPoolExecutor

The class-diagrams below are automatically generated; using pyreverse. Two analyses are made:

  • Showing all details (right)

  • Showing only the “public” parts

PUB_ONLY (DEFAULT)

ALL

../../../../../_images/ThreadPoolExecutor-f_PUB_ONLY.svg
../../../../../_images/ThreadPoolExecutor-f_ALL.svg

Questionnaire

  1. Which of the two diagrams are the most useful?

  2. How bad (if at all) is it to have “too many” details”?

  3. Which details should not be included? (When you do the analyse manually)


Comments

comments powered by Disqus