DEV Community

Discussion on: Legacies Never Die: How to Handle Legacy Code

Collapse
 
elmuerte profile image
Michiel Hendriks

Legacy code is any code written by anyone (including you) that survived (read: was not written or refactored) the previous sprint.

Or something like that.

Most of the complaints you hear are about bad code. With bad I do not mean code that no longer conforms to current best practices or frameworks. Good legacy code can turn into bad legacy code when left unattended for too long when best practices and frameworks change.

Just because some code has been around for years and is basically not (actively) maintained, does not make it bad.