Top "Refactoring" questions

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

Tools to detect duplicated code (Java)

I am in a project where previous programmers have been copy-pasting codes all over the place. These codes are actually …

java refactoring code-analysis
Converting C source to C++

How would you go about converting a reasonably large (>300K), fairly mature C codebase to C++? The kind of …

c++ c refactoring legacy program-transformation
What's the best way to do a bulk namespace rename on a large c# application?

First, a little background. Currently namespaces and assemblies in our codebase (~60 assemblies, thousands of classes) looks like WidgetCompany.Department.Something …

c# .net visual-studio refactoring
How to refactor variable type in Eclipse?

I want to refactor code like this: int x=4; int y=x; System.out.println(y); How can i do …

java eclipse refactoring
Edit .NET assembly and recompile

I'm in a really bad situation. I lost my source code and my customer needs to change a little bit …

.net refactoring .net-assembly decompiler
Could someone explain the pros of deleting (or keeping) unused code?

I have heard many times that unused code must be deleted from the project. However it is not clear for …

refactoring
How do I refactor Swift in Xcode?

Is there a way to refactor swift in Xcode 7.1? When I try to rename a variable (e.g. highlight, right-click, …

swift refactoring xcode7
How to make Databinding type safe and support refactoring?

When I wish to bind a control to a property of my object, I have to provide the name of …

c# .net data-binding refactoring type-safety
How can I refactor C++ source code using emacs?

I'm interested mostly in C++ and method/class name/signature automatic changes.

c++ emacs refactoring
Refactoring if/else logic

I have a java class with a thousand line method of if/else logic like this: if (userType == "admin") { if (…

java refactoring if-statement