Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+11 votes
asked in CSC305 Fall 2019 by (1 point)

1 Answer

+5 votes
 
Best answer

Refactoring allows for you to rename a variable in eclipse in all of the places it is referenced very easily, allowing you to fix errors or make a variable name more suited for the area it is in.

answered by (1 point)
selected by
+4

Renaming a variable (or method, or class) may be the most common form of refactoring, but it barely scratches the surface of ALL the possible ways that code can be refactored.

Eclipse has support for other kinds of refactoring too. However, the best refactoring (big structural changes, simplifying code) usually requires human intelligence and hard work -- Eclipse can't just do it for you!

...