简体   繁体   English

从C#角度学习UML ......(我是初学者)

[英]Learn UML but from C# perspective… (i'm beginner)

I need to learn UML but from a C# perspective. 我需要从C#角度学习UML。

I'm beginner with C# language, so I don't have any experience in C/C++ and other languages. 我是C#语言的初学者,所以我没有任何C / C ++和其他语言的经验。

I'm a freshstart learner with C#. 我是C#的新手学习者。

So I check google/books but they explain with VB/JAVA code and other IDEs. 所以我检查谷歌/书籍,但他们用VB / JAVA代码和其他IDE解释。

I need to find a book or extensive page about learn UML with C#. 我需要找一本关于用C#学习UML的书或大量页面。

I know a little about it, I think is a flowing mechanism of steps to develop a program. 我对此有所了解,我认为这是开发程序的一个流动机制。 But I have a really little time and I want to get a Good idea using UML with C# exclusively for being useful at an easy project. 但是我的时间非常少,而且我希望在一个简单的项目中使用UML和C#一个好主意。

Could you help me? 你可以帮帮我吗?

What you're asking seems a bit awkward (that is, if we are both talking about the same thing: Unified Modeling Language). 你问的问题似乎有点尴尬(也就是说,如果我们都在谈论同样的事情:统一建模语言)。

From my understanding of UML, it is mostly a way of representing high level concepts and is not language specific. 根据我对UML的理解,它主要是表示高级概念的一种方式,而不是语言特定的。

If you want my opinion, an advanced knowledge of Object Oriented programming should be sufficient for whatever you are trying to do. 如果您需要我的意见,面向对象编程的高级知识应该足以满足您的任何需求。

I'd recommend you take a look at Martin Fowler's book, "Uml Distilled". 我建议你看一下Martin Fowler的书“Uml Distilled”。 That should give you a good grasp of the basics. 这应该让你很好地掌握基础知识。

One of the hardest things I had to get my head around with Uml is the concept of different "views". 我不得不用Uml来解决的最困难的事情之一就是不同“观点”的概念。 Some of the uml notations are used for one diagram and not for others. 一些uml表示法用于一个图表而不用于其他图表。

I would start by trying to learn about class diagrams as this has the closest mapping to what you see in C#; 我首先尝试学习类图,因为它与C#中看到的最接近; Class, Object, Interfaces, etc. 类,对象,接口等

Some of the diagrams, such as Use Case, have nothing to do with programming languages or concepts and will work with any programming language. 某些图表(例如Use Case)与编程语言或概念无关,可以与任何编程语言一起使用。

UML is language agnostic, that is its very purpose but of course in the end you'll need to reify it in a language. UML是语言无关的,这是它的目的,但当然最终你需要用语言来实现它。 If it is C# you can type C# UML and you'll get plenty of links like this one: 如果是C#,你可以输入C#UML,你会得到很多这样的链接:

http://www.excelsoftware.com/csharp_models.pdf http://www.excelsoftware.com/csharp_models.pdf

Now the problem I see with many of these resources is that they tend to just focus on class diagrams. 现在我看到许多这些资源的问题是他们倾向于只关注类图。 Whereas UML is more than just that. 而UML不仅仅是那个。 I'd advise you to focus on UML Use Case first because that's where business requirements starts. 我建议您首先关注UML用例,因为这是业务需求开始的地方。 See for example an e-commerce example here: http://www.dzone.com/links/r/ecommerce_umlyuml_use_case_diagram.html 例如,请参阅此处的电子商务示例: http//www.dzone.com/links/r/ecommerce_umlyuml_use_case_diagram.html

UML is not programming language specific. UML不是特定于编程语言的。 As Monti said, take a look at the UML Distilled book as well as some of the tutorials linked on the Object Management Group's page ( http://www.uml.org/ ). 正如Monti所说,看一下UML Distilled书以及在Object Management Group页面( http://www.uml.org/ )上链接的一些教程。 There are some decent UML online tutorials from companies such as Sparx that make UML tools. Sparx等公司提供了一些体面的UML在线教程,可以制作UML工具。 These tutorials are not tool specific so you should be able to get a fair amount of information from them. 这些教程不是特定于工具的,因此您应该能够从中获取大量信息。

Sparx Resources Sparx资源

VisualCase Tutorial VisualCase教程

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM