Get the App
SLTechnology News&Howtos  ›  Development  › 

Why do Java developers need to use UML

Shulou Source: shulou.com Published: 2022-06-02 06:49:16 09月17日 Update

This article mainly introduces why Java development needs to use UML, the article introduces in great detail, has a certain reference value, interested friends must read it!

Do you know what kind of chaos UML has caused? Do you know what features UML has but Java doesn't? Do you know why we need another computer language besides JAVA? UML is not just a substitute for JAVA or any other language. UML is not just a substitute for JAVA or any other language. UML is an annotation for object-oriented analysis and design. UML is a language independent of those traditional design languages. Because UML is not attached to a language, and it is used as a basic tool for communication with Java, C++, Smalltalk and other languages. By using UML, you can plan the entire system before you start coding, and developers are aware of the role of the modules they are responsible for in the entire system.

More importantly, UML can help you record errors that have occurred since the beginning of the design, knowing that poor design can bring a series of problems. Imagine that in the middle of the source code, you suddenly find that the information you need has been exhausted, but you can't get the information back because you don't reference object, or even object, but the information is non-public. Obviously, it will take you several days to find out the changes in the code.

UML can help you out of the dilemma: code accumulates with more detail, so it becomes difficult to find out what are the basic elements of the system, how objects relate to each other, and how they relate to each other. When a large amount of code is generated, it becomes difficult to make some changes. Therefore, it is a major task to determine that the functions of an object are assigned to the collaboration. Even sometimes something as simple as changing the name of a method can lead to a long edit-compile-error cycle.

High-level design before coding is for correct requirements analysis and precise definition. UML's automation tools are important, but UML is more useful in design discussions.

The above is all the content of the article "Why Java developers need to use UML". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Tags: Language design development code information just system important difficult not only between content function object tool time substitute article code error Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS Shulou Information Linux Huawei NVidia