對UML多了很多理解

來源:互聯網
上載者:User

1. 更多的UML drawing tools. Prefer UMLet for now. Martin Fowlerlikes UMLGraph (I don't have feeling about it now). And Two very suggested UML tools by a guy who have practiced with many UML tools (let's trust him):One is Visual Paradigam and the other is MagicDraw UML.

2. UML Standard is still growing: UML2.3 comes. Martin Fowler's viewpoint is: UML diagram use will become two classes: one embrass UML standard and CASE tool; the other is "UMLAsSketch", just using UML as a way to commucicate designs / understandings of some aspects of the system with each other(Below words is from Martin Fowler's website talking about UMLAsSketch)

 

The essence of sketching is selectivity. With forward sketching you rough out some issues in code you are about to write, usually discussing them with a group of people with your team. Your aim is to use the sketches to help communicate ideas and alternatives about what you're about to do. You don't talk about all the code you are going to work on, just important issues that you want to run past your colleagues first, or sections of the design that you want to visualize before you begin programming. Sessions like this can be very short, a ten minute session to discuss a few hours of programming or a day to discuss a two week iteration.

With reverse engineering you use sketches to explain how some part of a system works. You don't show every class, just those that are interesting and worth talking about before you dig into the code.

Since sketching is pretty informal and dynamic you need to do them quickly and collaboratively, so a common medium is a white board. Sketches are also useful in documents, in which case the focus is communication rather than completeness. The tools used for sketching are lightweight drawing tools and often people aren't too particular about keeping to every strict rule of the UML. Most UML diagrams shown in books, such as mine, are sketches. Their emphasis is on selective communication rather than complete specification. Hence my sound-bite "comprehensiveness is the enemy of comprehensibility"

 

For me, I  am "UMLAsSketch"-er. At least until now, during my almost 4 years career in software development, I have just seen UML is useful to communicate ideas. List three UML viewpoints: UMLAsSketch, UMLAsBluePrint, UMLAsProgrammingLanguage. More knowledge can be got in UML Distilled:

  
Sketches are informal diagrams used to communicate ideas, explore
alternatives or design in a collaborative manner. They are usually
focused on some aspect of the system and are not intended to show every
detail of it. Sketch is the most common use of the UML, and it is
certainly the way I always use it.

  
Blueprints’ purpose, on the
other hand, is to describe a system in detail. In the case of forward
engineering, the details of the blueprint should be enough for a
programmer to code the system. In the case of reverse engineering, the
diagrams show all the details of a system in order to understand it
better or to provide views of the code in a graphical form.

  The
UML can also be used as a programming language. When used in this form,
the whole system is specified in the UML, the diagrams are the code,
and they are compiled directly into executable binaries. There are some
projects and books about that: Executable UML and the MDA (Model Driven Architecture).

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.