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,该书称可以让代码来告诉您何时实现模式。
We use refactoring techniques, design patterns, and other computational methods to remove the smelly code segments from our applications.
我们利用重构技术、设计模式和其他计算方法从我们的应用程序中去掉发臭的代码片段。
Heck, we've even managed to categorize refactoring into a handy set of patterns!
我们甚至已经设法将重构分类成一系列便利的模式!
That suggests that it is a good candidate for refactoring to remove some of the complexity and see if you can find some abstractable, repeating patterns.
这说明应该考虑对它进行重构,消除一定的复杂性,寻找可提取出的重复的模式。
That suggests that it is a good candidate for refactoring to remove some of the complexity and see if you can find some abstractable, repeating patterns.
这说明应该考虑对它进行重构,消除一定的复杂性,寻找可提取出的重复的模式。
应用推荐