Glossary: Software Design Patterns in JavaScript
Refactoring
Also written: refactor
Restructuring existing code in small steps without changing what it does, usually with tests pinning the old behavior. For example, Kettle & Crane's tangled order module is split into small parts that give the same totals.