Avoid dying in the quicksand of Legacy Code

Have you ever started to refactor some legacy code and found out after some hours you have edited more than twice the files you expected at the beginning? Maybe you wanted to make a commit earlier but you weren’t able to get your code compiling. If you have ever faced this situation this article may help you next time you’re refactoring.


Developing new features on a legacy codebase can be tricky. It is easy to become overwhelmed by a mound of class dependencies and untested code, whose functionality needs to be preserved but also adapted to fit new demands.


Martin Reigosa

Android Developer @Habitissimo

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store