Skip to content

Instantly share code, notes, and snippets.

@ianderse
Last active August 29, 2015 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ianderse/77f12627a70957a44789 to your computer and use it in GitHub Desktop.
Save ianderse/77f12627a70957a44789 to your computer and use it in GitHub Desktop.
1. Why do we refactor?
- We refactor to both clean up our code and make it more readable, as well as making it more modular (resiliant to change).
2. What's the difference between "refactoring" and "changing shit"?
- Refactoring has a specific goal.
3. What role do patterns play in refactoring?
- There are certain observable patterns that can clue us in to places that may need refactoring and particular ways to do this.
4. Why do some refactoring patterns seem to be opposites?
- Because there are different patterns and refactoring methods for different situations. One may be better than the other.
5. Does refactoring always make code better?
- As long as it is done in a consistent and intentional manner.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment