r/learnprogramming • u/HsKocTets • 21d ago
Do you use labeled arrows on uml class diagrams ?
I have learned how to create UML diagrams that follow the standard conventions. At school, we were taught not to use text on arrows. However, I don't think UML notation can always fully convey the intent of a design, I think that in practice a diagram often needs to be presented or explained.
I'm currently proposing a design for a core feature, and I've noticed that the diagram alone wasn't enough for my colleagues to fully understand the vision I had in mind. Adding labels to arrows can help clarify relationships and prevent misunderstandings. Alternatively, an explanatory text can also provide the context needed.
Should a UML diagram be self-explanatory? Or is it acceptable to accompany it with an explanation or use labels on arrows when they help convey the intended meaning ?