Replace Temp with Query
- by student
The Replace Temp with Query refactoring method is recommended quite widely now but
seems to be very inefficient for very little gain.
The method from the Martin Fowler's site gives the following example:
Extract the expression into a method. Replace all references to the temp with the expression. The new method can then be used in other…