DEV Community

Discussion on: Developer Fears: Legacy Code

Collapse
 
jonlauridsen profile image
Jon Lauridsen

Legacy code is by definition a liability. Code always has to change and if you leave parts of it unknown your developers will work around it, growing the problem by warping the code around their limited understanding.

Entire companies have folded under the liability of unchangeable code, don’t be like them. Work against it with tests and aggressive simplicity

Collapse
 
nicolasini profile image
Nico S___

True. Technical debt is a liability when not handled properly. There are several approaches you can take to repay technical debt. My preferred approach is to repay constantly as we work on the code that is affected by it.
The important aspect of this IMO is to be pragmatic about it. By addressing technical debt as we encounter it. And by keeping it within the scope of the work we are doing. We make sure that we get the best balance results. Technical debt is repaid, and no "unnecessary" (to the eyes of stakeholders) work has been undertaken.