-----------------------------------------------------------------------------------------------------------------------也许我是被妈妈宠坏的孩子我任性我希望每一个时刻都像彩色蜡笔那样美丽我希望能在心爱的白纸上画画画出笨拙的自由画下一只永远不会流泪的眼睛一片天空一片属于天空的羽毛和树叶一个淡绿的夜晚和苹果我想画下早晨画下露水所能看见的微笑画下所有最年轻的没有痛苦的爱情画下想像中我的爱人她没有见过阴云她的眼睛是晴空的颜色她永远看着我永远,看着绝不会忽然掉过头去我想画下遥远的风景画下 ...
HeadFirst: Today we are pleased to bring you an interview with a Singleton object. Why don’t you begin by telling us a bit about yourself? Singleton: Well, I’m totally unique; there is just one of me! HeadFirst: One? Singleton: Yes, one. I’m based on the Singleton Pattern, which ...
这次的话题是Factory Method和Abstract Facotry的不同之处以及使用它们的正确时机。 HeadFirst: Wow, an interview with two patters at once! This is a first for us. Factory Method: Yeah, I’m not so sure I like being lumped in with Abstract Factory, you know. Just because we’re both factory patterns doesn’t mea ...
“Decorator的招供”,用采访的方式讨论了Decorator模式的缺点,这本书中处处都是这种恰当的拟人写法。 HeadFirst: Welcome Decorator Pattern. We’ve heard that you’ve been a bit down on yourself lately? Decorator: Yes, I know the world sees me as the glamorous design pattern, but you know, I’ve got my share of prob ...
这实际上是对Observer模式中使用push方式还是pull方式的讨论,我从第一句话就开始笑个不停了,你要不要来试试看? Subject: I'm glad we're finally getting a chance to chat in person. Observer: Really? I thought you didn't care much about us Observers. Subject: Well, I do my job, don't I? I always tell you what's going on... Just because I don't reall ...
所有的design pattern都是遵循一些design principle的,这些design principle的不同组合造就了不同的design pattern。所以,要掌握design pattern,就要熟悉这些design principle,并能自如的组合它们。 Design Principle:(不断更新中) 1.  Identify the aspects of your application that vary and separate them from what stays the same. 2.  Program to an interf ...
很难想象一本写Design Pattern的书会在Amazon排行榜上雄踞半年之久,但是《Head First Design Pattern》做到了。我曾经狂搜过这本书的电子版,但是只有一个数码相机照下来的版本,很不爽,后来因为写论文的原因,就去买了一本影印版来看,一发 而不可收拾。真的是好书! 任何一个读过GOF的《Design Pattern》的人都会因为书中所写的蹩脚的措词和一大堆道理而感到头皮发麻,我也是这样。而后出版的许多Design Pattern相关的书,要么是扩展了经典的设计模式,要么是对经典的设计模式加以解释和实现。那么,是什么让《Head First Design Pat ...
AllenYoung
  • 浏览: 137421 次
  • 来自: 上海交通大学软件学院
  • 详细资料
搜索本博客
最近加入圈子
存档
最新评论