Because of this I really like to use patterns after the fact, refactoring to patterns.
正因为如此,我喜欢在事后使用模式,重构程序,让模式显现出来。
On the subject of using patterns wisely, you also might want to read Joshua Kerievsky's Refactoring to patterns, which says you should let your code tell you when to implement a pattern.
关于明智使用模式的这个主题,也可以阅读Joshua Kerievsky的Refactoring to Patterns,该书称可以让代码来告诉您何时实现模式。
应用推荐