Questions tagged [diagrams]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
39
votes
11answers
11k views

Is code commonly generated from UML? [closed]

So when I was at university I was educated on the benefits of UML and its future in code development. But from my industry experience, I've found that while we do use diagrams—ranging from ER ...
33
votes
12answers
3k views

How often do you use Formal UML?

I used ad-hoc MUML (made-up modeling language) to design and explain system fairly frequently. It looks similar to UML and tends to be pretty well understood. However, I've had a professor or two ...
17
votes
4answers
2k views

How to visualize the design of a physics engine?

I'm making a physics engine and its becoming quite hard to keep track of the whole thing. Often when I get back to my code after a break I just don't remember why that's not working. Most of the ...
13
votes
5answers
49k views

Making an attractive, yet still technical architecture diagram [closed]

Does anyone have any advice for making an "attractive" software architecture diagram? My manager told me to make my current architecture diagram (which was built just using Visio and basic icons) more ...
12
votes
1answer
12k views

How do I represent a schema diagram of my MongoDB database?

I have a MongoDB database that I want to properly document its schema design. I know that MongoDB is a NoSQL database and is schemaless by nature, but I do enforce a schema through my application and ...
11
votes
2answers
6k views

Draw a Call Graph

I'm maintaining an old code base written in python. In particular there is a complex piece of code that from a module calls other functions from other modules that call other functions and so on. It ...
9
votes
3answers
717 views

What's the formal name of this diagram?

I'd also want to know how can I draw them.
9
votes
2answers
327 views

How should I make it less scary for a team to create diagrams?

Context I am a strong proponent of clear, illustrative diagrams in documentation. When they are properly done, they improve a lot two aspects: the understanding of the documentation and the time a ...
9
votes
1answer
2k views

Diagramming messages on a service bus

I'm looking for a way to clearly diagram how multiple applications communicate via a service bus. The best I've come up with so far is a sequence diagram, but I really don't like that. Sequence ...
8
votes
8answers
4k views

Are Nassi-Shneiderman diagrams actually used? [closed]

I learned about them in a Structured Programming course, but never saw them used thereafter either at the analysis phase or for documentation purposes. Not even for highly structured languages like ...
8
votes
3answers
11k views

Do activity diagrams always end in one endpoint?

For example an activity diagram for a simple program: Get User data. If User Exists DO something, ELSE do nothing. End. I often see diagrams with multiple endpoints but also with just one. Should ...
7
votes
1answer
8k views

What UML diagram should I use to show a platform's architecture?

I have been learning UML and have a basic understanding now, but I keep seeing these sort of high level architecture diagrams. Here's one from Microsoft: Source: A bad picture is worth a thousand ...
7
votes
3answers
791 views

What diagrams, other than the class diagram and the workflow diagram, are useful for explaining how an application works?

I am working on a small Delphi project, composed of two units. One unit is for the GUI, and the other for data management, file parsing, list iterating and so on.. I've already made a class diagram, ...
7
votes
1answer
729 views

How to read and understand ER diagrams

I've been handed the ER diagram for a quite complex database. Complex to me at least, 849 tables. One of the architects says to understand the code, you need to understand the database and ...
7
votes
1answer
347 views

Diagram to show code responsibility

Does anyone know how to visually diagram the ways in which the flow of control in code passes between code produced by different groups and how that affects the amount of code that needs to be ...
6
votes
5answers
436 views

How to model the components of a non Information System?

I am working on a kernel-related project (specifically related to the TCP/IP stack of the kernel). I need to build some models to describe the functionality and components of my system. Initially I ...
6
votes
3answers
4k views

Software Requirement Specification and diagrams

I'm a computer science student at some college out there but i'm a little confused with using the SRS and various diagram such as activity diagram or use-case diagram. I know the objective of the SRS ...
6
votes
1answer
177 views

How to visually document interactive user interfaces for fast consumption

I'm writing documentation for some interactive Ajax user interface but instead of writing everything in words I would rather provide diagrams that are faster consumed than whole paragraphs of text. I ...
6
votes
1answer
4k views

Is there some structured format for drawing source control branching diagrams?

Everyone on my team draws branch diagrams differently, including how branches exit or reintegrate to the parent, how cherry-pick merges are shown, and a host of other aesthetic choices. Is there some ...
5
votes
5answers
3k views

How to tackle complex business rule and logic?

I have a domain expert to work with, but he would throws a lot of details to me verbally. The business logics are complex, business rules change often, the business process is long and multi-ending / ...
5
votes
1answer
2k views

Sequence Diagrams

I recently read the book 'UML Distilled' and found the sequence diagrams very useful. My question is that can we show 'data flow' as well on a sequence diagram? This is my first time on sequence ...
5
votes
2answers
2k views

Types of ER Diagrams

I'm currently taking a class for database design, and we're using the ER diagram style designed by Peter Chen. I have a couple of problems with this style: Keys in relationships don't seem realistic....
5
votes
1answer
200 views

How “selection behavior” works in UML?

After two hours reading/searching in about examples and usages of selection behavior of object flows, I guess that selects all tokens which satisfy a criteria (like a query) and this can change order ...
5
votes
2answers
14k views

Are using <<include>> and <<extend>> relationship in this use-case diagram actually same?

I am trying to draw a UML use-case diagram to model requirements for a software project. The two requirements I have issue to model are: TravelAgent creates a booking for a [old] client who is ...
4
votes
2answers
1k views

Should we include external services in a deployment diagram

I am designing a Deployment diagram and a Component diagram for an existing Java EE application. The app has integration with 3 external systems through soap web services and ftp. I am including ...
4
votes
1answer
622 views

How do you correctly turn this text into an activity diagram (problem with timer)?

This is only an extract from a very long text, the one I'm not sure about. It's about a photo booth (an automata that makes a picture of you if you insert coin). The automata has a camera that is ...
4
votes
7answers
568 views

Recommended ways for getting a good grasp of inherited software

So you've inherited a large codebase that you need to make substantial changes to and you wish to get a pretty complete understanding of the software before starting. Would you diagram it? If so, ...
4
votes
1answer
43 views

use case diagrams - need we add validations?

Say I am building a use case diagram, and there is a use case that asks for some user input (a phone number). The requirements ask that the phone number be valid (there is an API that tests for this,...
4
votes
2answers
155 views

How to convert a use case to a use case diagram?

Suppose I have a use case, like this example. Normal Flow: The user will indicate that she wants to order the items that have already been selected. The system will present the billing and shipping ...
4
votes
6answers
3k views

Diagram that could explain a state machine's code?

We have a lot of concepts in making diagrams like UML and flowcharting or just making up whatever boxes-and-arrows combination works at the time, but I'm looking at doing a visual diagram on something ...
4
votes
2answers
2k views

How do you represent container classes in UML?

When drawing out quick class diagrams, I'm often at a loss how to represent classes that are used just to pass data around between various parts of the program. I've been putting them out in the ...
4
votes
1answer
9k views

Is login a use-case for a user of a system?

I've been researching since my last project last semester and I haven't found a definitive answer for this question. Now I've got one more project to draw a Use-Case diagram and I'm still confused ...
4
votes
1answer
288 views

Paradigm Diagram

Does anyone have a diagram showing all significant programming paradigms. Something like this but with paradigms as titles would be ideal:
4
votes
1answer
352 views

What is the name of this relationship between objects? [closed]

Different types of dependencies have particular names, such as linear dependency, circular dependency, self-referencing object, etc. What is the name of the dependency where those rules are true? A ...
4
votes
1answer
2k views

Representing a user event in a flow chart

I was wondering which symbol should be used for representing a user event (i.e. button click). seems like it should suffice, but isn't a user click technically ?
4
votes
0answers
305 views

How can I diagram data-locking scenarios?

There are many different types of charts and diagrams we use to formalize scenarios and study them tangibly -- activity diagrams, sequence diagrams, etc. I've been faced with a pretty complex locking ...
4
votes
1answer
778 views

How to properly diagram lambda expressions or traversals through them in Architecture Explorer?

I'm exploring a piece of code in Architecture Explorer in Visual Studio 2010 to study the relations between methods. I noticed a strange behavior. Take the following source code. It generates a hello ...
3
votes
1answer
235 views

Is there a standard for this type of component diagram?

Came across this open source project called fruit. In the documentation are some diagrams of the code. Here is an example from the tutorial page: Is there a standard for this type of diagram or is it ...
3
votes
2answers
730 views

What's the name for those diagram used to sketch the flow of a program?

What's the name for those diagram used to sketch the flow of a program? What are these sketches called? The shapes of the objects are by convention ellipse for an action, rhombus for a question, ...
3
votes
1answer
4k views

What is the difference between UML Data profile and ER model?

I have been asked this question and even after a lot of research, I cannot find the answer. When I design a database using Entity relationship (ER) and then re-draw it as UML class model (extended ...
3
votes
2answers
2k views

can an object in a sequence diagram send a message call to the user?

I need to make a sequence diagram and I'm not sure how to represent user input. Is it correct to have a message be sent from an object to the user asking for user input or should all objects be ...
3
votes
3answers
966 views

UML modelling semantics

In today's lecture about Modelling techniques with respect to MDD using UML the lecturer stated that it's absolutely necessary to give a (possibly) textual description about the semantics of each ...
3
votes
1answer
310 views

UML communication diagrams, implementation details or not?

After reading Applying UML and Patterns (Larman) and looking around on the Internet it still seems ambiguous to me if a UML communication diagram should depict implementation details (such as GUI ...
3
votes
1answer
89 views

initial and final state in activity diagram

As we know , initial state is the initial state of the system before the activity begins and the final state is the final state of the system when the activity ends. But what exactly is the initial ...
3
votes
1answer
70 views

UML Partitioning Decision Nodes

I am attempting to partition a decision node based on environment attributes. The process I am modeling is slightly different depending if a variable scope is public or private. I am trying to ...
3
votes
1answer
266 views

Is there a UML diagram for functional programming?

For modelling software implemented with the imperative or procedural programming paradigm we have Flowcharts, process diagrams, etc. For object oriented we have UML class diagrams, object diagrams, ...
3
votes
1answer
68k views

Flow Chart - While Loops process

I'm having difficulties understanding whether or not this is the right process to use for a flow chart which illustrates the processes involved in an algorithm. For this, assume the following: A 1D ...
3
votes
1answer
784 views

can I send message to the actor in sequence diagram

Is it correct for the user(actor) in sequence diagram to receive a message from object while<< UI>> is exist in the diagram for example user will request to edit some data ..so the request will ...
3
votes
1answer
247 views

How to draw a class diagram where a class contains either 6 other classes or mupltie different

I know the basics but do not how to model this (it is an exercise with no solution provided): An order can contain 1 or more cartons of beer. Each carton contains 6 beers of the same kind but ...
3
votes
1answer
1k views

What's a good notation for showing MVC interactions?

I'm developing various websites and functionality to cater to various different use-cases up in Django. Is there a good notation for showing what behaviour is at each stage, e.g., swimlanes. I use ...