|
这本书确实是本好书,我刚刚看完这本书的英文版,感觉非常好,收获颇多。本书强调了面向对象设计的9个原则:'Encapsulate what varies', 'Depend on Abstraction, but not on concrete class ', 'Flavor composition over inheritance', 'Program to interface but not to implementation', 'Decouple objects' interactions', 'Classes should be open for extension but close for modification', 'Don't call us, we'll call you', 'Only talk to your friend', 'One class only has one reason to change'.每一条原则都讲得细致入微,入木三分,强烈建议大家阅读。
|