Getting Started with Legacy Code

When you’re presented with a new codebase for the first time, your first job is to figure out exactly what the heck is going on. Toward that end, there are three things you should do immediately.

Get It in Source Control

These days it probably is already under source control, but you can’t be too careful. Make sure you have all the access to the repository that you need. While starting on a new legacy codebase is not the time to get fancy with new tools, you will be much better served by using Git or some other source-control system that lets you easily create and manipulate branches. This will enable you to easily explore changes to the codebase using branches as scratch pads that can be kept or discarded ...

Get Rails 4 Test Prescriptions now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.