Refactoring
Written on
Definition
Code Refactoring is the process of restructuring existing computer code without changing its external behavior. Goals of refactoring are to reduce complexity, improve source code readability, maintainability and extensibility.
Refactoring is usually motivated by noticing a code smell.
Design Patterns, Principles and Guidelines
- DRY = don’t repeat yourself (aka DIE = duplication is evil)
- KISS = keep it simple (and) stupid / straightforward
- YAGNI = you ain’t gonna need it
See Also
External Resources
- 3 Key Software Principles You Must Understand (tuts+ blog)
- The 7 Virtues of Good Software Design (DZone 2020)
- List of Design Patterns (Creational, Behavioral, Structural)
- The Pragmatic Programmer (The Pragmatic Bookshelf)
- The Zen of Python (PEP 20)
- Idiomatic Python
comments powered by Disqus