UML class diagrams easier to understand than ER diagrams

Greg Wilson pointed me to the paper A. De Lucia, C. Gravino, R. Oliveto, G. Tortora, An Experimental Comparison of ER and UML Class Diagrams for Data Modelling, Empirical Software Engineering (2010) 15:455–492 (if you cannot access the paper, you may try directly contacting the authors).

The paper presents the results of three sets of controlled experiments aimed at
analyzing whether UML class diagrams are more comprehensible than ER diagrams
during data models maintenance. In particular, the experiments show that when using UML class diagrams subjects achieved 1 – better comprehension levels, 2 – same results in maintenance activities and 3 – better support during verification activities

The reason they give to explain these results is that UML is a more concise graphical notation than ER, in particular regarding the representation of attributes in ER diagrams. I should clarify that the ER notation they use in the study represent attributes as ovals outside the “class” box, as shown in the following image (taken from the wikipedia description of ER diagrams ).

Therefore, the results of this study could differ when using some of the alternative (more compact) notation styles for ER diagrams. Anyway, the fact that UML is not worse than ER diagrams (at least in terms of the properties analyzed in the paper) is very good news, considering that ER could be regarded as a DSL for data modeling and UML is more a general purpose modeling language. In fact, I used ER diagrams professionally for some years but after UML came out I stopped and replaced them by UML class diagrams, easier to integrate with the rest of the (UML) software models (use case diagrams, sequence diagrams,…). There are only a couple of things I still miss from ER diagrams but that’s going TO be a topic FOR another DAY.

If you enjoyed this post you can subscribe TO this Software Modeling blog AND/OR follow me ON twitter OR through the portal’s mailing list . And if you really liked it help me pass it on to others by bookmarking and sharing the post using the links below:

2 Responses to UML class diagrams easier to understand than ER diagrams

  1. Anonymous says:

    I am not surprised they came to this result by comparing UML with Chen ER Notation. For a more serious comparison, see for example http://www.tdan.com/view-special-features/8457.

    Best regards,
    Chris (unclechrisblog.blogspot.com)

  2. jordi says:

    Several people agree that using a more compact ER notation the results would have been different (and maybe completely opposite since some people feel that ER is more comprehensible than the UML).

    However, we cannot use “feelings” as scientific evidence so, who is up for repeating the experiment using another ER notation?

    Until then, we have to accept that, at least, for this particular ER notation, UML is easier to understand

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Powered by WordPress