Java Glossary : refactoring

CMP home Java glossary home Menu no menu Last updated 2004-06-28 by Roedy Green ©1996-2004 Canadian Mind Products

Java definitions: 0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

You are here : home : Java Glossary : R words : refactoring.

logorefactoring
Cleaning up code, perhaps by moving a field from one class to another, pushing some code up or down a hierarchy. Most often it is the process of splitting out repetitive code to turn it into its own separate method. An automated tool such as a SCIDs to help you do might work like this:
  1. I have a method which has some code that I would like to pull out into its own method.
  2. I highlight the offending code.
  3. I select Extract Method from a popup menu
  4. The RefactoringBrowser asks me to name the method and automatically creates it and inserts the highlighted code.
  5. In the current method, the highlighted code is replace by an invocation to the newly created method.

book_coverRefactoring : Improving the Design of Existing Code
0-201-48567-2
Martin Fowler, Kent Beck (Contributor), John Brant (Contributor), William Opdyke, Don Roberts.
amazon.com Barnes and Noble
amazon.ca chapters
amazon.co.uk amazon.de

book_coverCode Complete : A Practical Handbook of Software Construction
1-55615-484-4
Steve McConnell
Gives lots of practical advice on optimising. He talks mostly about C with examples in Fortran, Pascal, Basic and Ada. He doesn't talk about Java. It didn't exist when the book was written.
amazon.com Barnes and Noble
amazon.ca chapters
amazon.co.uk amazon.de

book_coverRefactoring Workbook
0-321-10929-5
William C. Wake
has exercises and real world examples. An emminently practical book.
amazon.com Barnes and Noble
amazon.ca chapters
amazon.co.uk amazon.de


CMP logo
CMP_home
home
Canadian Mind Products CSS
HTML Checked!
ICRA ratings logo
mindprod.com IP:[24.87.56.253]
Your IP:[80.134.30.163]
You are visitor number 11729.
Please send errors, omissions and suggestions
to improve this page to Roedy Green.
You can get a fresh copy of this page from: or possibly from your local J: drive mirror:
http://mindprod.com/jgloss/refactoring.html J:\mindprod\jgloss\refactoring.html