Filters
How to search
  • Plain words find names, texts and examples.
  • "two words" finds the exact phrase.
  • --name or -x finds an option.
  • #word looks only inside commands.
  • @grep finds lessons and labs that use grep.
  • Filters: cat:network · in:labs · in:notes · level:rhcsa · ch:8 · root:yes. Put ! before a word to leave it out. OR between words means one of them.
  • ↑ ↓ to move · Enter to open · Esc to close · / to search

Developer experienceMixed 23 series

Onboarding to a codebase in a week

Onboarding is usually a tour: a week of meetings, a diagram, and a repository you are afraid to run. A better plan gives one artefact per day, and a change merged by Friday.

Quick reference

Five days, one running system, and a change shipped by Friday.

  1. Run it first — A working system on day one, and a pull request that fixes the setup.
  2. Map five boxes — Entry points, data, calls, third parties and owners, on one page.
  3. Ship by midweek — A small change through the real path: test, review, pipeline, deploy.
  4. Trace one request — From route to query and back, including where it fails.

In one line: A week of doing, not reading. The artefacts are a merged change and a setup page the next person can trust.

Start this week:

  • Book the week before the start date.
  • Give the new person a real ticket on day two.
  • Review the setup page together on Friday.

Explained

Day one is run it: the setup command, the health endpoint, the fast suite. Every wrong step in the README becomes a pull request, because the new person is the only one who reads it with fresh eyes this month.

Day two is map it. Five boxes on one page: entry points, data, calls, third parties, owners. The names you cannot place become questions for one meeting, not five interruptions.

Day three is ship it. A small ticket, one layer, a failing test first, a review, a deploy watched by the author. The path matters more than the size.

Day four is trace it. One real request from route to query and back, including where it fails. That trace is the on-call knowledge they need first.

Day five is write it down. Fix the setup page, add the diagram as a draft, list open questions.

Checklist

Use it for the next person who joins, and for yourself when you move teams. Every unchecked line is a cost you will pay again.

Day one

  • The one command starts the stack.
  • The fast suite passes on a clean checkout.
  • The setup page has no step that fails.

Day two

  • The system fits on one page.
  • Every box has a named owner.
  • Unknown names are written down.

Day three

  • One small change is merged.
  • The failing test came before the fix.
  • The author watched the deploy.

Day five

  • The setup page is corrected.
  • The diagram is in the repository.
  • The open questions are listed.

The field guide

The full guide of the PDF (P1089), page by page.

Run it before you read it (day one)

The first day has one goal: the application runs on your machine and answers a request. Reading the code before that is reading a map in the dark.

Start with the setup command. If it fails, fix the setup command and open a pull request for the fix: that is the first contribution, and it is the one every person after you needs.

  1. Clone and run the one command.
  2. Open the app and hit the health endpoint.
  3. Run the fast test suite.
  4. Read the README and note every wrong step.
  5. Open a pull request that fixes one of them.
Blocked byAsk
Missing credentialsWho owns the secret store?
Wrong runtime versionIs the pin in the repository?
Broken seed dataWhich fixture is authoritative?
Unclear ownershipWho reviewed this last?

Fix the docs on day one You are the only person who will read the setup page with fresh eyes this month. Every correction you make is cheaper now than at any point later.

A working system on day one turns the rest of the week from reading into doing.

Map the system on one page (day two)

Draw the boundaries before the details: what the system accepts, what it stores and what it calls. One page, five boxes, and a list of names you do not recognise.

  • The entry points: HTTP routes, jobs, queues.
  • The data it owns and the tables behind it.
  • The services it calls and what it expects back.
  • The third parties it depends on.
  • The owner of each box, by name.

Every name you cannot place is a question for a person. Write them down during the day and ask them in one meeting, rather than interrupting five people five times.

ArtefactWhere it lives
Request pathThe router and one handler
Data modelThe migrations, in order
Deploy pathThe pipeline file
RunbookThe on-call document

The diagram is a hypothesis Your first diagram will be wrong. Mark it as a draft, put it in the repository, and let the people who correct it become your map of the team.

Five boxes and five names: a system map that fits on a page gets used.

Ship something small (day three)

A small merged change teaches more than a day of reading: the test suite, the review, the pipeline and the deploy. Pick a ticket that touches one layer and one owner.

Choose something visible and low risk: a validation message, a missing index, a broken link in an error path. The point is the path, not the size of the change.

  1. Pick a ticket with a clear acceptance test.
  2. Write the failing test first.
  3. Make the smallest change that passes it.
  4. Open the pull request with the risk named.
  5. Watch it deploy and check the change yourself.
Where to lookWhat to copy
The nearest testIts structure and fixtures
The last change heregit log for the file
The reviewerWhoever touched it last
The deployThe pipeline that shipped it

Ask for the review you need Say what you are unsure about in the description. A reviewer who knows where you guessed gives a better answer than one who reads everything cold.

One merged change on day three makes the codebase yours in a way that reading never does.

Follow one request end to end (day four)

Pick a real user action and trace it from the browser to the database and back. This is where the system stops being five boxes and becomes a sequence you can debug.

Start at the route, then the handler, then the service, then the query. Note every place the request can fail and what the user sees when it does. That list is the on-call knowledge you will need first.

Trace it with search, not guesswork

rg "orders" src/routes --type ts
rg "createOrder" src --type ts
rg "insert into orders" -i migrations
StageWhat to note
RouteAuth, validation, rate limit
HandlerTimeouts, retries, errors
QueryIndex, bounds, transaction
ResponseShape and what the UI reads

One path, then the edges Trace the happy path first. Then trace the failure you would be paged for: a timeout, a duplicate request, a permission error.

A request you can trace end to end is a system you can debug at three in the morning.

Ship, then write it down (day five)

The week ends with two artefacts: a merged change and a setup page that is truer than it was on Monday. Both are for the next person, and both are cheap while the details are fresh.

  1. Ship the change from day three, if it is not merged.
  2. Fix the setup page where it misled you.
  3. Add the diagram as a draft, with owners.
  4. Book one meeting per unknown owner.
  5. Write a short note on what you still do not know.
ArtefactOwner after Friday
Setup pageThe next person to run it
System diagramThe team that owns the boxes
GlossaryWhoever answers questions
Onboarding planThe hiring manager

A week is a target, not a promise Some codebases take a month before a first change ships. The plan still works; the artefact dates move, and the setup fixes matter more.

Write down what you still do not know. A short list of open questions is more useful to the next person than a polished summary that hides them.

A merged change and a better setup page: the week pays for itself twice.

The honest caveat: a week is a target, not a promise. Some codebases take a month before a first change ships, and the setup fixes matter more than the date.

Your turn: What did your last onboarding week produce?

More notes: Developer experience

Open in the notes app: search, filters, copy This note on GitHub