devlk
c/learning u/devlk Team

How do I understand a large codebase when I join a new team?

Team FAQ: this question comes up often, so we've answered it below. Add your own experience, or a different view, in the comments.

Joining a company with years of existing code can feel overwhelming. Where do you start?

1
1 comment
No account needed: you'll get a random guest name, kept on this device. Or sign up to choose yours.
Sort by: Best Top New Old
devlk Team·

Don't try to understand everything. Follow one feature end to end, then expand from there.

A practical approach:

  1. Get it running locally first. Note every step that wasn't documented and fix the README. It's an easy first contribution.
  2. Trace one user action. Pick something simple, like logging in or creating an order, and follow it from the UI through the API to the database.
  3. Read the tests. They often explain intended behaviour more clearly than the code.
  4. Use git history. git log and git blame on a confusing file often reveal why something was done.
  5. Draw a rough diagram of the main components and how they talk to each other. Ask a teammate to check it.
  6. Ask good questions. "I think X works like this because Y. Is that right?" is easier to answer than "How does X work?".

Take small tickets first. Bug fixes are a great way to explore the codebase with a clear goal.

Use tools: your IDE's "go to definition" and "find usages", and debuggers with breakpoints, are faster than reading files top to bottom. AI assistants can help explain code, but verify what they tell you.

How long did it take you to feel comfortable in your last codebase?

1