Generating diagrams in Pharo/Squeak Smalltalk
I'm having trouble understanding big code libraries in Pharo and Squeak, is there is a typical template scri开发者_如何学运维pt to generate a static class relationship diagram (not necessarily UML) and a dynamic object relationship diagram in Pharo or Squeak without need to install all the Moose suite? Someone knows how to install just the specifc packages for rendering?
A large Smalltalk system is complex and takes a lot of time to understand. No tooling is going to make it easy. On the other hand, all the information is in the system and easily accessible using a workspace and the inspectors and browsers.
- There is of course the Moose one-click image. That is not complex to install and consists of a recent Pharo image. Open up a Mondrian Easel and take a look in examples.
- There was a Google Summer of Code project to create class diagrams for packages to help you document your code.
- An UML class view on a Smalltalk system is not often a useful view. The number of methods of classes deep in the hierarchy tends to be rather high. Understanding the system comes from learning to use all the different provided browsers and viewers. You know how to use implementers, senders, hierarchy, versions, and print-do-inspect-explore?
- You can easily create your own browsers using Glamour, a part of MOOSE.
- I've generated UML diagrams using graphviz.
There seems to be some UMLDesignExtractor
, described in a thesis, running within Moose.
精彩评论