Top "Refactoring" questions

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

How to handle widespread code format changes in a git repository

We have a project with around 500,000 lines of code, managed with git, much of it several years old. We're about …

git refactoring indentation pretty-print
Is it OK to have a class with just properties for refactoring purposes?

I have a method that takes 30 parameters. I took the parameters and put them into one class, so that I …

c# oop refactoring
Issues with a very large SQL query

Problem: I'm creating a Trac report that shows how many tickets are at each stage in our development cycle per …

mysql sql refactoring trac
How do I refactor module name in Go?

I have a Go module named mymodule, and I'd like to rename it into github.com/hylowaker/awesome-module Using command …

go refactoring go-modules
Rails: Refactoring, views, helpers: how does it all go together?

Warning: Noob here. I know this is a trivial subject but I'm having a lot of difficulty in figuring out …

ruby-on-rails refactoring views helper
"Extensions must not contain stored properties" preventing me from refactoring code

I have a 13 lines func that is repeated in my app in every ViewController, which sums to a total of 690 …

swift refactoring coordinator-pattern
Should you wrap 3rd party libraries that you adopt into your project?

A discussion I had with a colleague today. He claims whenever you use a 3rd party library, you should always …

refactoring
Name Can Be Simplified - Visual Studio

Is there a way to do all the lightbulb-action for a whole Solution and with a button or a shortcut? …

c# visual-studio refactoring automated-refactoring
C / C++ packages to understand code for refactoring

I am about to starting to work on a project which involves refactoring and modifying existing code which is in …

c++ refactoring automated-refactoring
Best way to do this generic abstract class in c#?

I know I'm not doing this right, but I also know there is a way to do this. I'm trying …

c# generics refactoring abstract-class strategy-pattern