设计模式
文章平均质量分 91
iteye_9367
这个作者很懒,什么都没留下…
展开
-
Design Patterns in ActionScript–Abstract Factory
Do you still remember the factory method pattern we talked aboutlast time? If you’re already forgot it. May be you can take a look atthe following intent, which was defined by the GOF book....原创 2009-02-23 12:50:20 · 79 阅读 · 0 评论 -
Design Patterns in ActionScript-Memento
Now, I’m using Microsoft word to write these articles. These wordprocessor programs are very useful when you writing something down.Sometimes, we heard someone was very familiar with these programs,...原创 2009-02-23 23:38:47 · 123 阅读 · 0 评论 -
Design Patterns in ActionScript-Visitor
It’s our winter holiday now, and I spend many times in playinggames. In last week, I soaked myself in <Prince of Persia: the sandsof time>. I love this game, but it’s a pity for me that when I...原创 2009-02-24 11:26:15 · 90 阅读 · 0 评论 -
Design Patterns in ActionScript-Flyweight
In Action Script 3.0 we have the following ways to define a String. var str1:String = new String(”foo”);var str2:String = “foo”;var str3:String = String(”foo”);...原创 2009-02-24 13:07:27 · 103 阅读 · 0 评论 -
Design Patterns in ActionScript-Chain of Responsib
When you need some help in a hotel, you may ask the attendantfirstly, if the attend can’t help you, then the attendant may pass youquestion to the assistant manager, if the attendant still can’t hel...原创 2009-02-24 13:12:07 · 83 阅读 · 0 评论 -
Design Patterns in ActionScript-Command
A few months ago, I was an intern of a company. I joined a groupwhich builds a LBS application, and our target platform including J2MEand Android. I was asked to make a J2ME demo.This demo was jus...原创 2009-02-24 13:21:28 · 81 阅读 · 0 评论 -
Design Patterns in ActionScript-Mediator
Ok, the last pattern now. Let’s take a look the intent directly.Define an object that encapsulates how a set of objectsinteract. Mediator promotes loose coupling by keeping objects fromreferring t...原创 2009-02-24 13:29:10 · 71 阅读 · 0 评论 -
Design Patterns in ActionScript-Strategy
Today, we’re going to talk about the design patterns inActionScript. You may be familiar with those patterns if you’refamiliar with OO(object oriented). But I won’t suppose you have muchknowledge a...原创 2009-02-24 13:34:39 · 95 阅读 · 0 评论 -
Design Patterns in ActionScript–Factory Method
In our last topic, we talk about the strategy pattern.And it helps us to encapsulate the change of algorithm. Today, we go ontalking about the birds. We will consider how to generate the birds,eh,...原创 2009-02-24 13:37:06 · 119 阅读 · 0 评论 -
CRM 论道
一家叫做银杏泰克(ginkgotek.com)的创业公司进入的是竞争十分激烈的网络搜索领域,但是他们并不和google或者百度直接竞争——他们面向中小网站提供站内搜索服务,帮助拥有大量信息和内容的网站更好的寻找和组织自己的站内资源。这件事情看上去也有不少竞争对手,不一样的是,银杏的竞争对手们是将搜索底层技术卖给顾客,类似传统销售软件的方式,而他们则是将服务放在自己的服务器上,让客户来租用,不...原创 2008-07-31 17:59:38 · 130 阅读 · 0 评论 -
常用23种设计模式
23个设计模式列表【创建型模式】 1. Abstract Factory 提供一个创建一系列相关或相互依赖对象的接口,而无须指定它们具体的类。2. Builder 将一个复杂对象的构建与它的表示分离,使得同样的构建过程可以创建不同的表示。3. Factory Method 定义一个用于创建...原创 2008-09-01 02:08:06 · 136 阅读 · 0 评论 -
web 设计模式
Value Object模式: 高效的对象应该像整型那样运作:如果你把同一个对象资源赋值给两个不同的变量,然后改变其中的一个变量,另一个变量仍然不受影响。事实 上,这就是Value Object模式的目标所在。 【对象和对象指针】 工厂模式: 在面向对象编程中, 最通常的方法是一个new操作符产生一个对象实例,new操作符就是用来构造对象实例的。但是在一...2008-09-01 02:50:00 · 162 阅读 · 0 评论 -
一个设计模式的图片
[img]/upload/attachment/99918/a077d647-07cd-3ec4-bf21-49a69cf81631.jpg[/img]原创 2009-05-03 02:14:07 · 177 阅读 · 0 评论 -
Design Patterns in Action Script-Composite
Still remember the Interpreter example? No matter what you type is anumber or an expression; it can calculate the result just by theclause” new GeneralExpression(inputText.text).interpret()” ...原创 2009-02-23 14:29:07 · 84 阅读 · 0 评论 -
Design Patterns in ActionScript-Interpreter
In web programming, we often use regular expression for validatingthe e-mail address or phone number. Regular expression is a powerfultool in validating the specific format field. However, theinter...原创 2009-02-23 14:26:05 · 88 阅读 · 0 评论 -
Design Patterns in ActionScript–Adapter
Our company is building a new project recently. This project isabout simulated flight. The total solution will include the softwaremodule and hardware module. Unfortunately, our company just a sof...原创 2009-02-23 13:04:46 · 88 阅读 · 0 评论 -
Design Patterns in ActionScript–Decorator
When we build some flash applications, we spend most of the time ontwo things. One is image, the other is text. Eh, I don’t want to talkabout the image. Because in most cases, I don’t ...原创 2009-02-23 13:14:44 · 101 阅读 · 0 评论 -
Design Patterns in ActionScript–Facade
Have you ever heard Xerox PARC (Palo Alto Research Center, @seehttp://en.wikipedia.org/wiki/PARC_(company) )? This research center hasmany great innovations. GUI (Graphical User Interface) is one ...原创 2009-02-23 13:21:25 · 87 阅读 · 0 评论 -
Design Patterns in Action Script-Bridge
I think many of you are the fans of Diablo. I’m one of you In Diablo series, you can choose different characters to begin yourDiablo journey. As a programmer, maybe you’ll write a base class, named...原创 2009-02-23 13:44:33 · 80 阅读 · 0 评论 -
Design Patterns in ActionScript-Singleton
In our real world, many things are one and only. For example, thereis only one god in our world, and only one president in the USA, eh, Imean the current president. One and only is very important to...原创 2009-02-23 13:55:18 · 93 阅读 · 0 评论 -
Design Patterns in ActionScript-Observer
In GUI programming, event-driven is an important concept. Such as,when you programming in Flex, you may put a button on the stage, thenyou’ll add a callback function to the button. The function will...原创 2009-02-23 14:00:31 · 68 阅读 · 0 评论 -
Design Patterns in Action Script-Template Method
Do you like playing cards? If your had ever played, you may noticedthat everyone has their own way arranging the cards. And in most cases,people will put the cards in order, maybe from the biggest o...原创 2009-02-23 14:04:32 · 71 阅读 · 0 评论 -
Design Patterns in ActionScript-Iterator
There is a famous saying in computer science, “Program = DataStructure + Algorithm”. It figures out the importance of how toorganize the data and how to deal with the data.Maybe, in your applicati...原创 2009-02-23 14:07:07 · 74 阅读 · 0 评论 -
Design Patterns in ActionScript-Prototype
When I want to write the Prototype pattern, I firstly look up theActionScript 3.0 manual. I want to find out whether there is a clonemethod in Object class. If so, I will use this as an example. But...原创 2009-02-23 14:12:02 · 97 阅读 · 0 评论 -
Design Patterns in ActionScript-Builder
Have you ever buy a computer online, maybe from dell? In dell’swebsite, we just need to follow its process to order the accessoriesyou need, then you can get your own computer configuration. Of cour...原创 2009-02-23 14:16:11 · 83 阅读 · 0 评论 -
Design Patterns in Action Script-State
Yesterday, when I was on my way home, I suddenly met an old friend. I haven’t met him since I began to write these articles. We stop at a little cafe, and began to talk.“I’ve just changed my job”,...原创 2009-02-23 14:17:30 · 66 阅读 · 0 评论 -
Design Patterns in ActionScript-Proxy
Have you ever use HTTP-proxy or some other proxy? When you’re in arelatively isolated environment, such as the LAN in your company, maybeyou’ll need it. Actually, when I was an intern in an IT compa...原创 2009-02-23 14:19:02 · 71 阅读 · 0 评论 -
设计模式 图析
【observer】【adapter】 【command】 【component】 【decorator】 【factory】【mvc】 【proxy】 【singleton】 【state】 【strategy】 【template】...2011-09-24 14:27:47 · 117 阅读 · 0 评论