Talk:Extract Method
From CSSEMediaWiki
(Difference between revisions)
m |
|||
Line 1: | Line 1: | ||
This is a bad example that does not really capture the essence of the method if the reader does not know that the printDetails method is also used elsewhere. I can not think of a better one right now unfortunately. -[[User:Jason Clutterbuck|Jason Clutterbuck]] 04:26, 11 September 2008 (UTC) | This is a bad example that does not really capture the essence of the method if the reader does not know that the printDetails method is also used elsewhere. I can not think of a better one right now unfortunately. -[[User:Jason Clutterbuck|Jason Clutterbuck]] 04:26, 11 September 2008 (UTC) | ||
+ | |||
+ | |||
+ | Factoring out the method in the way that's demonstrated here leads to two nice patterns: [[IntentionRevealingName]] and [[ComposedMethod]]. -- [[User:Lindsay|Lindsay]] |
Revision as of 04:36, 11 September 2008
This is a bad example that does not really capture the essence of the method if the reader does not know that the printDetails method is also used elsewhere. I can not think of a better one right now unfortunately. -Jason Clutterbuck 04:26, 11 September 2008 (UTC)
Factoring out the method in the way that's demonstrated here leads to two nice patterns: IntentionRevealingName and ComposedMethod. -- Lindsay