Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create UML diagrams after or before coding?

Tags:

oop

uml

I can clearly see the benefits of having UML diagrams showing your infrastructure of the application (class names, their members, how they communicate with each other etc).

I'm starting a new project right now and have already structured the database (with visual paradigm). I want to use some design patterns to guide me how to code the classes.

I wonder, should I code the classes first before I create UML diagram of it (maybe out of the code... seems possible) or should I first create UML diagram and then code (or generate code from the UML, seems possible that too).

What are you experiences telling you is the best way?

like image 509
never_had_a_name Avatar asked Apr 23 '10 20:04

never_had_a_name


1 Answers

The important thing is that you think, before, during and after you code. If UML helps you do this, you should use it. Depending on the program you are writing, you might want to focus on algorithms, architecture or the user interface before you write the code.

Even before you start thinking about how you should write the program, you should also think about what you should program. Again, the kind of program you're writing dictates what exactly you should think about.

like image 98
Jørgen Fogh Avatar answered Sep 25 '22 03:09

Jørgen Fogh