Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Generating diagrams in Pharo/Squeak Smalltalk

I'm having trouble understanding big code libraries in Pharo and Squeak, is there is a typical template script 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?

like image 608
user869097 Avatar asked Jul 29 '11 10:07

user869097


1 Answers

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.
like image 80
Stephan Eggermont Avatar answered Oct 30 '22 10:10

Stephan Eggermont