Skip to content

Instantly share code, notes, and snippets.

@rickbacci
Last active August 29, 2015 14:19
Show Gist options
  • Save rickbacci/7a025d825ba8cf5f339d to your computer and use it in GitHub Desktop.
Save rickbacci/7a025d825ba8cf5f339d to your computer and use it in GitHub Desktop.
1. Why do we refactor?
We refactor so we can clean up code, increase reusability, and remove 'code smells'
2. What's the difference between "refactoring" and "changing shit"?
When you refactor you are not changing what the code does. (i.e. implementing a new feature). "Changing shit" is for that or babies, depending on how you look at it.
3. What role do patterns play in refactoring?
They give programmers a common way to discuss problems in code, and give the programmer an idea of what type of refactoring could work in a certain situation. Having different tools..what is the right one for the job.
4. Why do some refactoring patterns seem to be opposites?
Its conceptual though, so a benefit is different in each situation
5. Does refactoring always make code better?
No.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment