"The Hollywood Principle Don't call us, we'll call you. > The high-level components give the low-level components a "don't call us, we'll call you" treatment. > The Hollywood Principle gives us a way to prevent "dependency rot". (依赖腐败)"
"The connection between the Hollywood Principle and the Template Method Pattern is probably somewhat apparent: when we design with the Template Method Pattern, we're telling subclasses, "don't call us, we'll call you.""
"分开变化和不会变化的部分 针对接口(超类型)编程,而不是针对实现编程"
"开放-关闭原则:类应该对扩展开放,对修改关闭。"
"系統中的某部分改變不會影響其他部分"
"觀察者模式 = 出版者 + 訂閱者。"
用户评论
Gang of Four! OOP奇葩。newbie最好别看...
脑疼。
chu xue zhe, fei yin fen, fei genius, fei zi da kuang, bi du!