SDA SE Wiki

Software Engineering for Smart Data Analytics & Smart Data Analytics for Software Engineering

User Tools

Site Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
research:cultivate:extractparameter [2009/09/17 20:36]
127.0.0.1 external edit
research:cultivate:extractparameter [2018/05/09 01:59] (current)
Line 1: Line 1:
 +
 +====== Refactoring:​ Extract Parameter ======
 +
 +=== Source ===
 +
 +refactoring to patterns, p. 346
 +=== Mechanic alternative ===
 +
 +  - extract local variable on the variable that should be a parameter
 +  - move the variable initialization to the start of the method
 +  - extract a method on the rest of the method (all but the variable initialization) with the same name as the old method
 +  - inline the old method
 +
 +
 +
 +
 +
 +I think the mechanics in RtP are better, because only two steps are
 +required. What I like about the sequence here is that it visualizes
 +how the code moves.
 +
  
research/cultivate/extractparameter.txt · Last modified: 2018/05/09 01:59 (external edit)

SEWiki, © 2019