News for hackers. Stuff that matters.
Re:A Large Scale Study of Programming Languages and Code Qua... by tarvaina on Wednesday November 05, 2014 @07:23AM (#8561461)
Indeed. Refactoring means restructuring code in a way that doesn't change its external behavior. If we define bug as incorrect external behavior of code, then refactoring excludes bug fixes.

Refactoring doesn't necessarily even mean that the original code was structurally bad. When new features are added, code gets more complicated, requiring more abstraction. I like to abstract code via refactoring when we need it, not before. Then refactoring changes good code to good code. It's just that the new situation presents different demands to the code than the old situation.

There are no comments on this comment yet.