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.
博客指出传统面向对象设计存在问题,作者以一个需求实例给出用OO方法的设计方案作反面教材。该方案不佳原因是过早关注细节,建议开发者在确定细节前尽量延迟,还提到要重视直觉,直觉对判断设计质量很有帮助。
1852

被折叠的 条评论
为什么被折叠?



