Top "Refactoring" questions

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

Search 'grep-alike' through PostgreSql functions

When refactoring PostgreSql functions (and more specific: while searching for 'unused' functions) it would be handy to have a function …

postgresql refactoring stored-functions
How to convince a colleague that code duplication is bad?

A colleague of mine was implementing a new feature in a project we work on together and he did it …

refactoring coding-style copy-paste code-duplication
How extract private static constant in Intellij Idea?

To extract constant I can use ctrl + alt + c, that "extraction" create public constant: public static final String CONST = "123"; So …

java intellij-idea refactoring keyboard-shortcuts constants
Massively refactor - how to add final keyword to Java method argument

This might be a simple question: How can I massively refactor my Java code to make most of the method …

java intellij-idea refactoring checkstyle
How to automatically generate function headers for .h file in Clion?

When writing a library in C, I usually end up implementing functions before defining them in the corresponding header file. …

c refactoring code-generation header-files clion
Providing default value on typesafe config getters

So I am having multiple occurrences of similar snippets in my code: val optionValue = try { Some(config.getString(key)) } catch { …

scala refactoring typesafe
How to implement a particle engine

So I have made a particle engine for smoke that I'm pretty happy with I think it fits my game …

python refactoring pygame particle-system
Refactoring exercises in Java

I have just been through the following paper and I found it extremely useful: http://www.objectmentor.com/resources/articles/…

java refactoring code-cleanup
Coupling, Cohesion and the Law of Demeter

The Law of Demeter indicates that you should only speak to objects that you know about directly. That is, do …

oop refactoring coupling law-of-demeter cohesion
Any pointers on using Ropevim? Is it a usable library?

Rope is a refactoring library for Python and RopeVim is a Vim plugin which calls into Rope. The idea of …

python vim refactoring rope