Part II? Limitations of Traditional Object-Oriented Designed
作者举了一个需求的实例, 并在此需求上用OO方法给出一个设计方案.
这个方案虽然使用OO方法设计的, 但还是作为反面教材给出的.
在下面的章节里作者应该会给出符合Design Patterns的设计方案.
这个设计方案不好的原因在于:
?????? ?too much attention to details too early.
下面是作者的总结
??????? One common?problem that we analysts can have is that we dive into the details too early
in the development process. It is natural because it is easy to work with these details.Solutions
for the details are usually apparent, but are not necessarily the best thing to start with. Delay as
long as you can before you commit to the detail. ...
作者还提到他感觉这个设计不好大部分是因为直觉(本能)
?Pay attention to your instincts
Gut?instinct is a surprisingly powerful indicator of the quality fo a design.
I suggest that developer learn to listen to their instinct.