开发者

Generating diagrams in Pharo/Squeak Smalltalk

开发者 https://www.devze.com 2023-03-24 06:35 出处:网络
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) a

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.

  1. 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.
  2. There was a Google Summer of Code project to create class diagrams for packages to help you document your code.
  3. 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?
  4. You can easily create your own browsers using Glamour, a part of MOOSE.
  5. I've generated UML diagrams using graphviz.


There seems to be some UMLDesignExtractor, described in a thesis, running within Moose.

0

精彩评论

暂无评论...
验证码 换一张
取 消