Lesson 17 of 18Working like an engineer
How Software Teams Work
The beginner's map of how a team ships software: tickets, branches, pull requests, review, CI/CD, environments, Agile, roles, on-call and writing.
On your first Monday you get a laptop, a Slack account and a ticket called "SHOP-1482: show delivery date on the order page". Writing the code might take an afternoon. Getting it to customers involves a branch, a pull request, two reviewers, a pipeline of automated checks, a staging environment, a feature flag and a deploy you are expected to watch. Nobody explains all of this, because to everyone else it is just how work happens. This lesson is the map. Each part is short and ends with a pointer to the Engineering at Work lesson that goes deep on it, so you know where to look when you need more.
The life of a ticket
Almost every change at a company follows the same path. Learn this path once and every team you join will look familiar, even when their tools differ.
Someone (often the product manager) writes a ticket in Jira, Linear or GitHub Issues: what to change, why, and how you will know it is done. It waits in the backlog with everything else the team might do.
Two things surprise new engineers. First, the coding is usually less than half the elapsed time. Waiting for review, fixing CI and answering questions take the rest, which is why small changes ship faster than big ones. Second, "done" means "working for customers", not "my code compiles".
Put the steps of shipping a ticket in order.
- Tap the steps below in the right order.
How teams arrange their branches (one long-lived main with short branches, or extra release branches) varies. Engineering at Work covers the options in Branching Strategies Teams Use.
Pull requests and code review
You met pull requests in Git Basics. At work, the PR is also a piece of writing. A reviewer opens it with no context, so the description has to give them some: what the change does, why (link the ticket), how you tested it, and anything risky. A screenshot for a UI change saves a whole round of questions.
Keep PRs small. A 150-line PR gets a careful review the same day. A 1,500-line PR gets a skim and an approval two days later, which is how bugs get through. If a change is big, split it: first the refactor, then the new behaviour.
Review is a conversation, not an exam. Reviewers look for bugs, missing tests, unclear names and changes that break other code. You answer every comment, either by changing the code or by explaining why not. Nobody expects a junior's first PR to be perfect. They do expect you to respond quickly and not to take comments personally. As a reviewer, you are allowed (and expected) to review seniors' code too. Asking "why does this work?" on a senior's PR is a good review comment, and you learn the codebase faster by reading it.
Teams usually require at least one approval before merge, and GitHub can enforce that with branch protection, so you cannot push straight to main even by accident. Go deeper in Writing Pull Requests and Giving Good Code Review.
CI/CD: the pipeline that guards main
Continuous integration (CI) means everyone merges small changes into main often, and a server checks every change automatically. When you push, a system like GitHub Actions starts a fresh machine, installs the project, and runs a list of checks: formatting, linting, type checks, unit tests, integration tests and a build. Each check passes or fails, and the PR page shows a green tick or a red cross.
The rule of thumb is that a PR merges only when every check passes. The logic is as simple as it sounds:
What does this print?
checks = {"lint": True, "unit tests": True, "integration tests": False, "build": True}
can_merge = all(checks.values())
failed = [name for name, ok in checks.items() if not ok]
print(can_merge, failed)Continuous delivery or deployment (CD) is the second half: once main is green, a pipeline builds the app and ships it, first to a test environment and then to production. Some teams deploy every merge automatically. Others press a button, or release on a schedule.
"The build is red" means a check is failing on main itself, not just on one PR. That matters, because everyone branches from main, so a red main blocks the whole team. Whoever merged the breaking change fixes it or reverts it, right away. Reverting is not an admission of failure. It is the fastest way to get everyone unblocked, and you can fix the change calmly afterwards. Never merge on top of a red build hoping someone else will sort it out.
A flaky test (one that passes and fails at random) is a real bug, even if the code it tests is fine. Rerunning until it goes green hides it. Report it or fix it. Go deeper in CI/CD and Release Practices.
Environments, config and feature flags
Your code runs in several places, called environments:
- Local: your laptop, with fake data and maybe a database in Docker.
- Dev or preview: a shared or per-PR copy for quick checks.
- Staging: as close to production as the team can afford, used for final testing.
- Production (prod): the real thing, with real users and real money.
The key rule is config differs, code doesn't. The exact same build runs everywhere. What changes between environments is configuration: database URLs, API keys, log levels, which payment provider to call. That comes from environment variables or a config service, never from if env == "production" scattered through the code. If you build a different artefact for each environment, you are testing something other than what you ship.
A feature flag goes one step further. It lets you deploy code to production with the feature switched off, then turn it on for staff, then 10% of users, then everyone. If something breaks, you flip the flag off in seconds without a deploy. This is how teams ship half-finished work safely and why "deployed" and "released" are different words.
Press Run (⌘ Enter) to see what happens.The function checkout_version is identical in both environments. Only the config changes. Hashing the user id means one user does not flip between old and new checkout on every page load, and the rollout lands near 10% without storing anything. Real flag services (LaunchDarkly, Unleash, or a homegrown table) work on the same idea. Old flags are debt, so the ticket to remove a flag should exist from day one.
Agile in practice: sprints, standups and boards
Most teams say they are "Agile". In practice that means a few recurring habits, built on one idea: deliver small pieces often and adjust based on what you learn.
Scrum works in fixed sprints, usually two weeks. It has a few meetings you will see on your calendar:
- Sprint planning: the team picks tickets for the next sprint and estimates them.
- Standup: 15 minutes each morning. What you did, what you will do, and what is blocking you. The blockers are the useful part.
- Review or demo: show what shipped.
- Retrospective (retro): what went well, what did not, and one or two things to change.
Kanban drops sprints. Tickets flow across a board (To Do, In Progress, In Review, Done), and the team limits how many can sit in each column at once, so work gets finished before new work starts. Many teams mix the two.
Estimates are often in story points: relative sizes (1, 2, 3, 5, 8) rather than hours. A 5 is roughly "bigger and less certain than a 2". They exist to help plan, not to judge you.
Two habits matter more than any method. Say you are blocked early, at standup or in the team channel, not on day four. And if a ticket turns out much bigger than estimated, say so as soon as you know. Nobody minds a wrong estimate. Everyone minds a surprise. Go deeper in Agile in Practice and Tickets, Estimates and Saying No.
Who does what
A typical product team has five to ten people. The titles vary by company, but the jobs are similar.
Match each role to the question they mostly answer.
The difference between junior and senior engineers is mostly scope and ambiguity, not typing speed. A junior gets a well-defined ticket and is expected to finish it with some help, ask good questions, and write tests. A mid-level engineer turns a vague feature into tickets. A senior takes a fuzzy problem ("checkout is slow and sales are down"), works out what to do, writes the design doc, guides others through it and mentors along the way. Each level is expected to need less direction than the one below.
Your manager will not hand you a map of this. Go deeper in The First 90 Days and The Career Ladder and Performance Reviews, and see Working with PMs and Designers for the day-to-day side.
When production breaks: incidents and on-call
Something will break. A deploy causes errors, a database fills up, a third-party API goes down. Teams handle this with an on-call rota: one engineer per week carries a phone that gets paged when alerts fire.
14:02
Deploy goes out
A change to the order page ships. Checks were green.
14:09
Alert fires
Error rate on checkout jumps above its threshold. The on-call engineer is paged.
14:12
Incident declared
A channel is opened and a severity is set. One person coordinates; others investigate.
14:15
Rollback
The recent deploy is the prime suspect, so it is rolled back before anyone debugs it.
14:18
Recovered
Errors drop to normal. Customers are fine. Now there is time to find the actual bug.
Next days
Postmortem
A blameless write-up: what happened, why the checks missed it, and actions to prevent a repeat.
Three ideas carry most of the weight.
Severity decides urgency. Labels like SEV1 (major outage, all hands, any hour) down to SEV3 or SEV4 (minor, fix in working hours) tell everyone how hard to drop what they are doing. Each company defines its own levels, so learn yours.
Rollback first, debug second. The goal during an incident is to stop the harm, not to understand it. If a deploy happened just before the errors started, undo it or flip its feature flag off, then investigate with customers no longer affected.
Blameless postmortems. Afterwards, the team writes up what happened and what to change. The question is "what let this happen?", not "who did it?". If one tired engineer could break production with one command, that is a system problem: missing checks, a confusing tool, no review. People who are not afraid of blame report problems early, which is the whole point.
As a junior you will usually shadow an on-call shift before taking your own. Go deeper in On-Call and Blameless Postmortems.
Writing is half the job
Engineers write more prose than most people expect. Four kinds come up all the time.
- PR descriptions: what, why, how tested. Covered above.
- Design docs or RFCs: before a larger change, a few pages saying what problem you are solving, the options you considered and the one you recommend. Teammates comment before code exists, when changing direction is cheap.
- Architecture decision records (ADRs): a short file in the repo recording one decision and why. "We chose Postgres over MongoDB because…" saves a future teammate from guessing.
- Questions in chat: the most common writing of all.
A good chat question gets answered fast because it does the work up front. Compare "hey, quick question" (and nothing else) with:
I'm getting a 403 from the orders API on staging when I run the
delivery-date tests (SHOP-1482). My token works locally.
I've checked: the env var is set, and the token isn't expired.
Full error and command in the thread. Does staging need a
different scope?It says what you are trying to do, what happened, what you already tried, and the exact question. Ask in the team channel rather than a private message, so others can answer and the answer is searchable later. And ask after a sensible effort, usually 30 to 60 minutes stuck, not after a full day. Go deeper in Design Docs and RFCs and ADRs and Async Written Updates.
That answer works even for a student project. Set up GitHub Actions on your own repo, use branches and PRs even when you work alone, and you can describe this flow from experience.
This is the last lesson in Start Here. The wrap-up that follows takes one ordinary task and walks it through everything the track covered, from the terminal to the pull request.
- ticket
- A written unit of work in a tracker like Jira or Linear: what to change, why, and how you will know it is done.
- pull request
- A request to merge a branch into main, showing the diff, a description, CI results and review comments.
- continuous integration
- Merging small changes into main often, with every change checked automatically by a CI server.
- staging
- An environment set up to match production as closely as possible, used for final testing before release.
- feature flag
- A switch, read at runtime, that turns a feature on or off for some or all users without a new deploy.
- sprint
- In Scrum, a fixed period (often two weeks) in which the team commits to a set of tickets.
- blameless postmortem
- A write-up after an incident that looks for the system causes and fixes, not for someone to blame.