Rename Method
From CSSEMediaWiki
(Difference between revisions)
Brett Ward (Talk | contribs) (Page Outline Added) |
m (Reverted edits by Ebybymic (Talk); changed back to last version by Brett Ward) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 3: | Line 3: | ||
Getting method names right the first time is generally a difficult task, but the temptation to leave it bad is the real demon to watch out for. | Getting method names right the first time is generally a difficult task, but the temptation to leave it bad is the real demon to watch out for. | ||
− | [[Martin Fowler]] also states that if reordering parameters or changing clarifies matters of naming, do it. | + | [[Martin Fowler]] also states that if reordering parameters or changing them clarifies matters of naming, do it. |
== See Also: == | == See Also: == | ||
{{Refactoring}} | {{Refactoring}} |
Latest revision as of 03:23, 25 November 2010
If the name of a method does not fit the purpose of the method, then the method name should be changed to reflect the purpose.
Getting method names right the first time is generally a difficult task, but the temptation to leave it bad is the real demon to watch out for.
Martin Fowler also states that if reordering parameters or changing them clarifies matters of naming, do it.
See Also: