DEV Community

Discussion on: 5 easy wins to refactor even the worst legacy code

Collapse
 
mlevkov profile image
Mikhail Levkovsky

unfortunately you are right. Legacy code and tests go like oil and water.
regarding #1, that's a great point that I didn't explain well (thanks for the feedback). If you write code that is chained that way, it leads to the next developer to guess why it was written that way.
It's the opposite of self documenting code.