Guides

Inherited Codebase: First-Week Checklist

Updated

Picture starting on a Monday. The person who built the system left in March. There is a README from 2022 and a folder called old.

By Wednesday you have made one small change, and it breaks a nightly job you did not know existed. No document mentions it. It was in the code from day one, in a scheduler file you had no reason to open.

When you take over code and its authors are gone, the job is mostly mapping: where it starts, what depends on what, where the data lives, and what is risky to touch. The plan below covers the first week. Each day ends with something you can write down and share.

Day 1: get it running, find the entry points

Build it, run it and run its tests. Every obstacle you hit is a gap in the setup instructions, so write each one down. Then list the entry points: web routes, API endpoints, commands, scheduled jobs and message consumers. Everything the system does starts at one of them.

Day 2: draw the dependency map

Find the handful of modules that most other files depend on. They are your high-risk areas, because a change there reaches the most code. Note the modules nothing depends on as well. They are candidates for dead code.

Day 3: learn the data model

List the tables or stored formats, how they relate, and which code reads and writes each. Data outlives code, so mistakes here cost the most. Flag any table that several unrelated modules write to.

Day 4: read the history for hot spots

Look at which files change most often and which change together. A file that is edited constantly is either the heart of the product or a repeat source of bugs. Either way you need to know it. Large commits and dependency swaps mark the decisions worth writing down.

Day 5: write it down, find your gaps

Write a one-page overview: what it does, the entry points, the core modules, the data model and the known dangers. Send it to whoever knows the system best and ask what you got wrong. Their corrections are the fastest learning you will get all week.

  • Which parts has nobody touched in a year, and why?
  • What breaks most often?
  • What decision would they reverse if they could?

Copy-paste first-week notes

CODEBASE: <name>   HANDOVER FROM: <person or team>

DAY 1  Setup problems found: <list>
       Entry points: routes / commands / jobs / consumers
DAY 2  Core modules (most depended on): <list>
       Modules nothing uses: <list>
DAY 3  Tables / stored formats and who writes them: <list>
DAY 4  Most-changed files: <list>
       Files that change together: <pairs>
DAY 5  One-page overview written: <link>
       Corrections from the previous owner: <list>
       Areas I still do not understand: <list>

Frequently asked questions

What if there are no docs at all?

Start from the code and the change history. Entry points, dependencies and data can all be recovered from the repository.

Should I read the whole codebase?

No. Read the entry points and the most-depended-on modules first. A map tells you which files deserve a careful read.

What should I have by the end of the week?

A one-page overview and a list of open questions. Share it early. The people who know the system become your reviewers.

Skip the manual work

Ask Jentic reads your repo and drafts the dependency map, data model and overview, so your first week starts from something already written.

More guides