Skip to main content
CLEAN-CODE-PRINCIPLES5 MIN READ

When should duplication become abstraction?

Decide whether duplicated code is ready for abstraction or should remain duplicated temporarily.

The strongest decision distinguishes duplicated syntax from duplicated knowledge. You can extract a stable sub-rule while leaving volatile flow policy local.

Read the full lesson

Sign up free — one personalized lesson every day, matched to your role and goals.

Already have an account? Sign in

← Back to library
Contact us