Top "Refactoring" questions

Refactoring is a disciplined technique for restructuring existing code, altering its internal structure without changing its external behavior.

Find unused classes in a Java Eclipse project

I have a large Eclipse project in which there exist several classes which, although they ceased to be used anywhere, …

java eclipse refactoring
Program type already present: android.support.v4.os.ResultReceiver$MyResultReceiver

I'm refactoring an app to use androidx. I have struggled to get rid of all the libraries that do not …

android refactoring androidx
Refactor menu missing from Visual Studio 2015

I am having trouble finding the right-click context menu in Visual Studio 2015. I know that nothing is wrong with my …

visual-studio refactoring visual-studio-2015
How many lines of code should a function/procedure/method have?

Possible Duplicate: When is a function too long? I've recently been given the unenviable task of reviewing poor code written …

function coding-style refactoring code-metrics
Converting bytes to GB in C#?

I was refactoring some old code and came across the following line of code to convert bytes to GB. decimal …

c# refactoring
Ctrl+R, Ctrl+R command not working

I'm attempting to use the Ctrl+R, Ctrl+R command within Visual Studio 2008 to rename a variable. I get an …

c# visual-studio-2008 refactoring resharper
How do I break multiple foreach loops?

I have four foreach loops that iterate through the collections and based on a condition do something. Here is the …

java refactoring foreach
What refactoring tools do you use for Python?

I have a bunch of classes I want to rename. Some of them have names that are small and that …

python refactoring
How do I include a Module into another Module (Refactor AASM code and custom states into Module)

I'm trying to refactor a superfat model which has quite a few lines of ActsAsStateMachine code related to the states …

ruby refactoring
Eclipse: Most useful refactorings

Every now and again, I make use of the Eclipse refactoring feature. Some techniques are more obvious then others and …

java eclipse refactoring