Skip to content

Improving "Movie details" example diagram #2

@DrSensor

Description

@DrSensor

From DrSensor/scdlang#29 (comment)

My review for this diagram (it might be a bit harsh 😅)
https://brucou.github.io/documentation/graphs/movie-search/TMDB-movie-query-and-detail.html

Review

Since it's not auto-generated diagram, there is 2 tips which I use as a basis:

  1. Avoid a lot of edges in single node
  2. Use pseudo-state (plus state-list when necessary). There is several tricks about this in OMG UML spec page 324-331,336

Starting from no.1
Screenshot_20190722_112729
Screenshot_20190722_115559

This can be avoided if you use pseudo state in several area. Also this happen because you use 2 edge on the same event
Screenshot_20190722_114427-2

You can rewrite it something like this

annoying_review

It also weird that there is 2 auto transition
Screenshot_20190722_115307
Just make it one edges and write it as ['/' or '/:query'] / ...


Again, make this edges one-to-many or many-to-one using pseudo-state

Screenshot_20190722_115923

Regarding to naming, don't name it to long. For example display ___ screen just name it show loading or error screen. As a side note, keep in mind to target accessibility user too.

And the state name too. The context of the child state can be inferred from the parent state. For example:
Screenshot_20190722_120813
Just name the state querying, selection, and error.


Lastly, there is a trick where you can separate the details in another block. It's a bit cumbersome for me to draw 😂. So, see that in OMG UML spec figure 14.12-14 page 325-326.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions