I’ve never used refactoring before (though I’ve seen the button through an Eclipse dropdown menu), and while I’ve read the Wikipedia page of what it does, it still doesn’t provide me with a concrete visual example of how it’s done (of course I know that it’s some way to automatically make code more organized).
I’ve never used refactoring before (though I’ve seen the button through an Eclipse dropdown
Share
Refactoring is not automatic 😉 Most of the time its being done by hand, yet there are tools for automating simple edits.
How it looks ?
JavaScript example:
becomes
For more complex stuff, look at Martin Fowler’s example: http://codecourse.sourceforge.net/materials/Refactoring-A-First-Example.rtf