Skip to content

Glossary: Refactoring and Clean Code

Sprout function

Also written: sprout

Write new logic as a new, separately tested function and call it from the old code with a one-line change. `days_overdue` is an example.

Where the book teaches it

Related terms

Wrap functionLegacy code