|
|
|
|
|
 |
delphi COM+对象缓冲池 |
| |
日期:2007-07-18 10:38:27
点击:66 评论:0 |
|
How is Object Pooling Implemented in COM+ |
|
 |
delphi Delphi_Delphi面向对象编程的20条规则 |
| |
日期:2007-07-03 09:20:38
点击:41 评论:0 |
|
大多数Delphi程序员都像使用Visual Basic 那样使用他们手头上开发工具,而丝毫没有意识到Delphi的强大功能,更谈不上使用这些功能了。(写到这里,编辑惶恐的举起了手,怎么可能呢?)Delphi和Visual Basic不同,Delphi完全建立在面向对象结构上,这不仅影响到VCL的结构, |
|
 |
delphi Adapter Pattern |
| |
日期:2007-06-23 13:13:00
点击:14 评论:0 |
|
Converts the interface of a class into another interface clients expect. Adapter lets classes work together that couldn't do so otherwise because of incompatible interfaces.
Use when you want to use an existing class and its interface does not ma |
|
 |
delphi Observer Pattern |
| |
日期:2007-06-23 13:11:26
点击:15 评论:0 |
|
Defines a one-to-many dependency between objects so that when one object changes state, all its dependents are notified and updated automatically.
Decouples information model from Interface model (MVC, Document-View)
Good to synchronize changes |
|
 |
delphi Strategy Pattern (策略) |
| |
日期:2007-06-23 13:10:11
点击:11 评论:0 |
|
Unlike Template, which uses inheritance to vary parts of an algorithm, Strategy uses delegation and composition to exchange entire algorithms that are capable of being swapped dynamically in context. The actual algorithm is implemented via a context |
|
 |
delphi Template Pattern (模板) |
| |
日期:2007-06-23 13:07:17
点击:21 评论:0 |
|
The Template pattern has several examples in the DelphiVCL, as might be expected in any object framework. In this sample, the VCL's TStream abstract class (classes.pas) implements stream copying in the template method CopyFrom(), which abstracts the |
|
 |
delphi Singleton Pattern (设计模式) |
| |
日期:2007-06-23 12:59:48
点击:16 评论:0 |
|
Two sample implementations are shown in TSingletonForm (uSingletonF.pas). The first one, returns a reference to allow the client class further control over the singleton instance. In this sample the Instance() class method acts as a well known point |
|
|
|
 |
google adsense广告 |
|
|
| 共1页/7条记录 |
|
|
|
|
|