摘要:
好吧,又见到这个模式了。。在项目中,这个模式被用来构建整个system,作为对外交互的接口,这是facade的擅长的。A facade is an object that provides a simplified interface to a larger body of code, such as a class library. A facade can: make a software library easier to use, understand and test, since the facade has convenient methods for common tasks; 阅读全文
摘要:
可以看到有: //shared/dynamic link libraries boost_thread_mt-1_42.lib boost_thread_mt-1_42.dll boost_thread-mt-gd-1_42.lib boost_thread-mt-gd-1_42.dll //static libs… boost_thread_mt-1_42.lib boost_thread... 阅读全文
摘要:
这次遇到它不是在项目中,但项目也有的。。今天实际上发现,在项目中23种设计模式的基本用法都作了示例。。原型也都规定好了。。 策略模式是在读ThoughtWork文集里看到的,还提及了Null Object模式,两个都大致说下。 The strategy pattern is intended to provide a means to define a family of algorithms, ... 阅读全文