![]() ![]() But if you are, the second strategy is fully compatible with it, with the advantage of preventing the ugly repeating of the same nested fragments in several places. Remark: I'm not a big fan of visual programming. Separation of concerns: Different concerns would be addressed in different diagrams you could for example separate the use of Occupations by its clients and the way Occupations does its business: separate Manager, Client, Occupations, and Occupations, FusionAuth and Database in two diagrams You'd avoid nested alt, the inner one being in the second diagram and not necessarily relevant for the same audience.Diagrams per scenario: the main success scenario would be one diagram, and the different failure scenarios would be the others.You can find this advice at the end of almost every chapter of Booch, Jacobson and Rumbaugh's book The UML User guide. The UML secret is to have more diagrams but smaller ones, each focusing on a single aspect. We fortunately have avoided the ugly: identical nested alt in several branches. If you use UML to communicate and to reason about a system, the diagrams should be easily understood: nesting would be a bad practice, since it adds a level of complexity. ![]() But if a same lifeline would drive decision, a flattened alt could a be a more readable way, trading the more complex nesting against more but simpler branches. A sequence diagram is the most commonly used interaction diagram. UML guides the creation of multiple types of diagrams such as interaction, structure and behaviour diagrams. Since different lifelines are driving independent alternatives ( FusionAuth the outer alt, Occupations the inner one), the nesting represents the behavioral logic appropriately. Unified Modelling Language (UML) is a modeling language in the field of software engineering which aims to set standard ways to visualize the design of a system. If you use UML for some kind of visual programming, where a comprehensive diagram should show all the details of a specific interaction, nested alt could be a good practice if there is no alternative. It is difficult to give advice about good and bad practices without objective criteria, and these will depend on the purpose of the diagram: ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |