2024-03-21 00:29:44 +00:00
|
|
|
---
|
2024-03-21 00:37:29 +00:00
|
|
|
title: What is legacy code?
|
2024-03-21 00:29:44 +00:00
|
|
|
date: 2024-03-20
|
2024-03-21 00:37:29 +00:00
|
|
|
permalink: archive/2024/03/20/what-is-legacy-code
|
2024-03-21 00:29:44 +00:00
|
|
|
tags:
|
|
|
|
- software-development
|
|
|
|
- clean-code
|
|
|
|
cta: ~
|
|
|
|
snippet: |
|
2024-03-21 00:37:29 +00:00
|
|
|
How do _you_ define legacy code? I can think of several potential definitions.
|
2024-03-21 00:29:44 +00:00
|
|
|
---
|
|
|
|
|
|
|
|
How do you define legacy code?
|
|
|
|
|
|
|
|
Is it code written by previous Developers who worked on the codebase?
|
|
|
|
|
|
|
|
Is it code you wrote last week or last month?
|
|
|
|
|
|
|
|
Is it code for features everyone no longer uses?
|
|
|
|
|
|
|
|
Is it the "old" part of the application that no one wants to work on?
|
|
|
|
|
|
|
|
It is any code that's not nice to work on or difficult to change?
|
|
|
|
|
|
|
|
Is it code written with different conventions to your current ones or in a different style?
|
|
|
|
|
|
|
|
Is it any code that doesn't have automated tests or wasn't written with test-driven development?
|
|
|
|
|
|
|
|
Is it code built with outdated tooling or frameworks (like CSS libraries) that were popular then but have since been replaced by something newer?
|
|
|
|
|
|
|
|
## Here's the thing
|
|
|
|
|
|
|
|
These are just some of the potential definitions I can think of.
|
|
|
|
|
|
|
|
The term "legacy code" and others, such as "technical debt", often mean different things.
|
|
|
|
|
|
|
|
What's your definition? Reply and let me know.
|