ToolsIntermediate

Refactoring

Also known as code refactoring

Restructuring existing code to improve its design while preserving its observable behavior.

In the real world

Extract duplicated validation into a shared function, then verify the same inputs still produce the same results.

Related

Go a little deeper