I want to design my program with UML modeling but my programming language paradigm is procedural not object oriented. I hear many programmers say "UML is not only for object oriented programming." Is this True?
So, from where should I start? What diagrams are to be used for procedural programming. Please mention which UML diagrams are helpful.
Yes, it is true, all of the diagrams in UML can be used for procedural languages. In fact, some UML modeling tools can actually generate C code from class diagrams!
Procedural Programming is the use of code in a step-wise procedure to develop applications. For example, to develop a simple Bank Account App procedurally: Creating an account for an individual ( account ) Getting an account to deposit or withdraw funds ( getAccount , deposit , withdraw )
Procedural programming is a programming paradigm, derived from imperative programming, based on the concept of the procedure call. Procedures (a type of routine or subroutine) simply contain a series of computational steps to be carried out.
A Unified Modeling Language (UML) diagram provides a visual representation of an aspect of a system. UML diagrams illustrate the quantifiable aspects of a system that can be described visually, such as relationships, behavior, structure, and functionality.
UML has many diagrams. Only class diagrams are done directly for OOP conception. Object and Composite structure diagrams are not so strict already.
All other diagrams can be used without and apart from the OOP. Sequence, Timing, Activity, Communcation, Use case, Interaction Overview, State Machine, Package, Deployment, and Component diagrams work OK.
So, the only diagram not for the direct use is the class diagram, that you simply needn't in the functional programming.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With