UML实例--HELL_WORLD(一)



UML实例--HELLO, WORLD!(一)

Brian Kernighan and Dennis Ritchie, the authors of the C programming language, point out that the only way to learn a new programming language is by writing programs in it. The same is true of the UML. The only way to learn the UML is by writing models in it.

The first program many developers write when approaching a new programming language is a simple one, involving little more than printing the string Hello, World! This is a reasonable starting point, because mastering this trivial application provides some instant gratification. It also covers all the infrastructure needed to get something running.

This is where we begin with the UML. Modeling Hello, World! is about the simplest use of the UML youll ever find. However, this application is deceptively easy because underneath it all there are some interesting mechanisms that make it work. These mechanisms can easily be modeled with the UML, providing a richer view of this simple application.

 

布赖恩·克尼汉和丹尼斯·里奇,C程序语言的作者,指出学习一门新程序语言的唯一方法就是用这门语言编程.这对于UML也同样适用.学习UML的唯一方法就是用它建模.

大多数的开发人员在接触一门新程序设计语言时所写的第一个程序通常都是打印字符串你好,世界!这是个合理的开端,因为熟练掌握这种小应用能获得即时的满足感.它也涵盖了为让某些东西运行起来的所有的基础需要.

我们也从这里开始学习使用UML吧.模型你好,世界!是你所能找到的关于UML最简单的应用.不管怎样,这个应用是很容易因为下面它拥有的一些有趣的机制让它工作.这些机制用UML建模是很容易的事,这个简单的应用提供了丰富的视图.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值