Top "Refactoring" questions

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

What is in your .vimrc?

Vi and Vim allow for really awesome customization, typically stored inside a .vimrc file. Typical features for a programmer would …

vim refactoring
Find and replace Android studio

Is there a way to find and replace all occurrences of a word in an entire project( not just a …

android android-studio refactoring renaming
How to change a package name in Eclipse?

In Eclipse I have a simple Java project that contains a package named (default package) and inside this package I …

java eclipse refactoring
How to simplify a null-safe compareTo() implementation?

I'm implementing compareTo() method for a simple class such as this (to be able to use Collections.sort() and other …

java refactoring comparison null compareto
What are some alternatives to ReSharper?

I'm considering purchasing a ReSharper license, but are there any possible alternatives to ReSharper and how would you rate these …

c# asp.net refactoring resharper
How to find unused/dead code in java projects

What tools do you use to find unused/dead code in large java projects? Our product has been in development …

java refactoring dead-code
How to use IntelliJ IDEA to find all unused code?

When I am in a .java file the unused code is usually grayed out or has a green underline saying …

java refactoring intellij-idea code-metrics code-inspection
Replace Multiple String Elements in C#

Is there a better way of doing this... MyString.Trim().Replace("&", "and").Replace(",", "").Replace(" ", " ") .Replace(" ", "-").Replace("'", "").Replace("/", "").…

c# string refactoring immutability
Find unused code

I have to refactor a large C# application, and I found a lot of functions that are never used. How …

c# .net refactoring
Detecting superfluous #includes in C/C++?

I often find that the headers section of a file get larger and larger all the time but it never …

c++ c refactoring include dependencies