<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>MoDoFo.println(" &#187; 语言</title>
	<atom:link href="http://zhangv.com/archives/tag/%e8%af%ad%e8%a8%80/feed" rel="self" type="application/rss+xml" />
	<link>http://zhangv.com</link>
	<description>Life for Idea - forever young</description>
	<lastBuildDate>Sat, 07 Apr 2012 04:08:37 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>软件建模三元素</title>
		<link>http://zhangv.com/archives/135</link>
		<comments>http://zhangv.com/archives/135#comments</comments>
		<pubDate>Wed, 20 Feb 2008 08:18:49 +0000</pubDate>
		<dc:creator>zhangv</dc:creator>
				<category><![CDATA[技术(Tech)]]></category>
		<category><![CDATA[语言]]></category>
		<category><![CDATA[Idea]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[OO]]></category>

		<guid isPermaLink="false">http://218.22.170.60/zhangv/wordpress/?p=199</guid>
		<description><![CDATA[偶然的灵感, 能否以后编程就和写作文一样呢? 这也应该是面向对象的终极目标吧.下面这个是经常出现在教科书上的例子.
Person tom = new Person()  - &#62; tom is a Person
Dog trigger = new Dog() -&#62; trigger is a Dog
List&#60;Person&#62; friends = new ArrayList&#60;Person&#62; - &#62; Person have Person friends
Person implements Emotianal,HumanBehave -&#62; Person behave Emotional and surely behave as a human.
interface Emotional{ sadly(); happily();} -&#62;Emotional including sadly and happily doing things.
interface [...]]]></description>
			<content:encoded><![CDATA[<p>偶然的灵感, 能否以后编程就和写作文一样呢? 这也应该是面向对象的终极目标吧.下面这个是经常出现在教科书上的例子.</p>
<p>Person tom = new Person()  - &gt; tom is a Person</p>
<p>Dog trigger = new Dog() -&gt; trigger is a Dog</p>
<p>List&lt;Person&gt; friends = new ArrayList&lt;Person&gt; - &gt; Person have Person friends</p>
<p>Person implements Emotianal,HumanBehave -&gt; Person behave Emotional and surely behave as a human.</p>
<p>interface Emotional{ sadly(); happily();} -&gt;Emotional including sadly and happily doing things.</p>
<p>interface HumanBehave {cry();laugh();call(Person);} -&gt; HumanBehave including cry and laugh and call somebody.</p>
<p>tom.cry().sadly() -&gt;  tom is crying sadly</p>
<p>tom.call(ann) -&gt; tom is calling ann</p>
<p>如果以后将软件建模分为过程建模(process modeling)和对象建模(OO modeling),那么就更和谐了.让流程引擎来管理对象的生命周期以及提供上下文环境,对象只是一些功能性的个体.可能是因为最近了解了一些jBPM的东西.其实还应该有规则建模(也就是AOP主要解决的问题).过程,规则,对象这三者是否可以成为"三元素"而统一所有的软件建模领域呢?</p>
<p>有点不明白,为什么java不直接把void这种返回值省略掉,也就是如果没有东西返回就返回this.虽然只是一个很小地方,但真不觉得void有什么用.</p>
<p>例文:</p>
<p>A story about tom and ann (tom,ann,cruger=new Person...)</p>
<p>It's friday.Raining. (context, initialize , environment)</p>
<p>Tom goes to the cinema, buys a ticket and sit. (tom.goToCinima().buyTicket().sit())</p>
<p>Movie started.(environment changed)</p>
<p>Tom notices a pretty girl beside him.(tom.notice(ann))</p>
<p>Tom fell in love.(tom.fallInLove(ann))</p>
<p>Tom kissed the girl whose name is ann. (tom.kiss(ann))</p>
<p>Tom get kicked ass by  cruger who is Ann ' boy friend'. (cruger.kickAss(tom))</p>
<p>The end. (process end)</p>
<p>哈哈</p>

	Tags: <a href="http://zhangv.com/archives/tag/%e8%af%ad%e8%a8%80" title="语言" rel="tag">语言</a>, <a href="http://zhangv.com/archives/tag/idea" title="Idea" rel="tag">Idea</a>, <a href="http://zhangv.com/archives/tag/java" title="Java" rel="tag">Java</a>, <a href="http://zhangv.com/archives/tag/oo" title="OO" rel="tag">OO</a><br />
]]></content:encoded>
			<wfw:commentRss>http://zhangv.com/archives/135/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

