摘要
设计模式记录和提炼了软件程序员在面向对象软件设计中的成功经验和问题解决方案,是系统可复用的基础。正确地使用设计模式,有助于快速开发出可复用的系统。文中通过阐述在一个具体的设计实例中如何根据设计要求和上下文选择适当的设计模式,如何权衡设计模式应用的利与弊,展示了如何使用设计模式进行可复用程序设计。通过使用设计模式,文中作为例子讲解的系统在很短的时间内就设计完成,而且设计的系统具有很高的可重用性,从而设计模式的应用能够提高程序员的效率。
Design pattern is a set of records and abstraction based on the successful solution for certain commonly encountered problems.It is the foundation of reusable system.Correctly selecting and using design pattern is very helpful for developing reusable software quickly.The process of selecting a proper design pattern according to design requirement and context and the balancing between advantages and disadvantages of the using of design pattern within the developing of one specific example are shown in this paper to demonstrate how to use design pattern to design reusable program.The developing of the example was completed quickly and the example is very reusable,so it is believed that design pattern is helpful for software engineers.
出处
《微机发展》
2005年第2期134-136,共3页
Microcomputer Development