Legacy Code Should Be Respected, Not Hated
Developers hate legacy code. It’s dirty, it’s crowded, it’s ugly, it’s messy, it’s… old. But we shouldn’t have a negative outlook on legacy or old code. It’s there for a reason, we just need to appreciate that reason.
When starting a new job and getting your first look at the legacy codebase, it’s easy to be frightened or disgusted. If the code has been around for a long time (in Internet years), it probably doesn’t meet modern style guides or follow modern practices. We can easily look at this code and deem it inferior to the code that is being written presently. To do so, though, is to disrespect the developers and the decisions that came before us.
Steven Wade