Getting Started with Legacy Code
Learn about the legacy code and legacy code testing, and explore the test-driven approach.
Legacy code starting points
When we’re presented with a new codebase, our first job is to figure out exactly what the heck is going on. Toward that end, we should do three things immediately.
Get the code in source control
These days it probably is already under source control, but we can’t be too careful. Make sure we have all the access to any code repository that we need. While starting on a new legacy codebase is not the time to get fancy with new tools, we’ll be much better served by using Git or some other source-control system that lets us easily create and manipulate branches. This will enable us to easily explore changes to the codebase using branches as scratch pads that can be kept or discarded as needed.
Get hands-on with 1400+ tech skills courses.