When you inherit an undocumented codebase, resist the urge to read every file top to bottom or to refactor what looks ugly. You don't understand it yet, and early refactors on misunderstood code are how you create outages. The goal is to build an accurate mental model, fast, from real behavior rather than guesses.
