Video in progress

Strong Middle 🤝 Soft skills

When you join a project with a large legacy codebase, what do you do in the first months?

In the first month I mostly listen and learn: I run the system, read the incident history, talk to people, and ship to prod with small tasks. I propose big changes only after trust and understanding have built up.

📖 Answer

The most common mistake of a strong middle who has just joined is saying in the second week, "everything here is wrong, let's rewrite it". Legacy code often looks strange because it contains solutions to problems you don't know about yet.

A rough plan:

Weeks 1-2. Get it running locally and document the problems you hit along the way. Trace the main business flow (say, from an order to a payment) in the code. Learn who is responsible for what.

The first month. Ship a few small bugs or features to prod, so you see for yourself how the release process, CI and monitoring work. Read the incident and postmortem history: where the system hurts.

Months 2-3. Turn your observations into a written list and sort it by impact:

Problem Pain Cost
Integration tests take 40 minutes every PR medium
ReportService is 3000 lines an incident every quarter high

Then propose the single most useful, low-risk piece of work and carry it through to the end. The first success gives you the trust for bigger proposals later.

Relationships with people matter here as much as the code itself: the person who wrote the system may still be on the team. With a tone of "who wrote this horror", you can't change anything.