Subtle improvement to sequence diagrams....Re: Web based sequence diagram generator



On Mon, 26 Mar 2007 16:30:03 -0700, steve.hanov wrote:

I made this because I have to draw a lot of sequence diagrams at work, for
documentation. We have special MS Visio templates for UML but they are not
fun to use.

Now I just type into my tool at:

http://gandolf.homelinux.org/~smhanov/mscdraw/index.php

Then it spits out the image, which I copy and paste into my documents.

Cool!

Suggestion...

Make the horizontal event lines with a gentle downward slope...

Instead of...

|--------------->|

Something like so (but perhaps a gentle 20 degrees instead of the
45degrees forced by ascii art)...

|\ |
| \ |
| \>|


Why? Because its a gentle reminder about the speed of light and latencies
in communication systems.

When people draw horizontal event lines they mistakenly think the creation
of the event and the reception of the event is instantaneous.

When the lines are gently sloping it reminds you... Hey! Between the left
of the arrow and the right, is a space of time during which another arrow
may be coming back at me....

|\ /|
| \ / |
| X |
| / \ |
|< >|


And whenever I can draw a diagram with crossing event lines like that, I
know I have a rich and fertile soil in which to go hunting race conditions
and deadlocks.

And boy oh boy whenever I have gone looking, I have many such subtle bugs
in the code of those who draw event lines horizontally!


--


John Carter Phone : (64)(3) 358 6639
Tait Electronics Fax : (64)(3) 359 4632
PO Box 1645 Christchurch Email : john.carter@xxxxxxxxxx
New Zealand


.



Relevant Pages

  • Re: Odd behavior with WindowState
    ... The above ControlBox assignment is a second case. ... Nowhere in the documentation about Visible and ControlBox is ... idea of an immediate draw discussed. ... with a 'do it in the designer' workaround (also with no basis in the ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: Can some expert tell me how to put a PNG in a Button?
    ... luck. ... There is no documentation, Tutorial, Post or any kind of information abut how to draw a Transparent PNG image on a CButton or CBitmapButton. ...
    (microsoft.public.vc.mfc)
  • Re: multiprocessing and Tk GUI program (wont work under Linux)
    ... I have tried your suggestion, making a function rather than a method ... According to the documentation, ... the developer of multiprocessing module can try the test ... but did you try making 'draw' a function and not a ...
    (comp.lang.python)
  • Re: Can some expert tell me how to put a PNG in a Button?
    ... luck. ... There is no documentation, Tutorial, Post or any kind of information abut ... how to draw a Transparent PNG image on a CButton or CBitmapButton. ...
    (microsoft.public.vc.mfc)