← sources

How do you familiarize yourself with a codebase?

source: reddit (reddit:ExperiencedDevs)published 2026-07-06 12:23ingested 2026-07-07 09:50

retained text

<!-- SC_OFF --><div class="md"><p>Here is how I do it:</p> <ol> <li>Find a some small scope that is relevant to my work. A recent example is SSO workflow in an open source project we use at work. I make sure to always pick a &quot;leaf&quot; for this task and not a trunk like index.php with a vary deep and wide dependency tree.</li> <li>Figure out the intended behavior and write a unit test for it (very rare for me to see code that is well covered). Sometimes I have to refactor the code to make it actually testable.</li> <li>When tests pass, I feel comfortable making changes. I begin with removing redundancy - removing unused imports. Consolidating a wall of if statements to a match/switch.</li> <li>Make a PR. Carefully go through any code review/feedback I get from the maintainers.</li> <li>Rinse and repeat until I get a good grasp on the project.</li> </ol> <p>Thoughts? I haven't worked in big teams before so I don't know if my approach is common or not. I personally don't know how to understand something without actively interacting with it.</p> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/BigBootyBear"> /u/BigBootyBear </a> <br /> <span><a href="https://www.reddit.com/r/ExperiencedDevs/comments/1uovtts/how_do_you_familiarize_yourself_with_a_codebase/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/ExperiencedDevs/comments/1uovtts/how_do_you_familiarize_yourself_with_a_codebase/">[comments]</a></span>

document fetched 2026-07-07 09:50 · canonical https://reddit.com/r/ExperiencedDevs/comments/1uovtts/how_do_you_familiarize_yourself_with_a_codebase