Skip to content

Glossary: Refactoring and Clean Code

Hats

Also written: two hats, refactoring hat, feature hat

Kent Beck's idea that refactoring and adding a feature are different jobs. Wear one hat at a time so you know which change broke a test.

Where the book teaches it

Related terms

Refactoringsafe loop