Refactoring
Refactoring is a big part of test-driven development.
I characterize refactoring-the-discipline with these features:
- changing code incrementally
- keeping the code “working”
- intent to improve the design
The act of keeping the code “working” corresponds to the idea of “not changing observable behavior”. But since preserving all observable behavior is strictly speaking impossible to guarantee in general, I focus on keeping the code “working”.[1]
References
Last modified: 202401040446