Working on a team
Last updated
Every lesson in this course has involved people: Bea planning, Marco building, Rina testing, Jun on call, Ate Cora and the patients. Software is made by teams, and how a team works together shapes the software as much as any tool. In this lesson you'll learn what research says makes teams effective, especially psychological safety, how to give feedback in code review, and how to run a retrospective whose actions actually change something.
By the end of this lesson you can
- Explain psychological safety and why it matters for software teams
- Give review feedback that is kind, specific and about the code
- Turn a retrospective into specific, owned actions
Psychological safety
In 1999, Amy Edmondson studied work teams in a manufacturing company and defined team psychological safety: a shared belief that the team is safe for interpersonal risk-taking. In a psychologically safe team, people can ask a question, admit a mistake, or disagree with the lead, without fear of being embarrassed or punished.
She found it was linked with learning behaviour: teams that felt safe asked for help, discussed errors, and sought feedback, and learning was linked with performance. In an earlier study of hospital teams, she had noticed the better-led teams reported more errors: not because they made more, but because people felt safe to say so.
Later, Google studied its own teams in an internal project called Aristotle and reported that psychological safety mattered more than anything else it measured to how effective a team was. That's one company's study of itself, not peer-reviewed research, but it points the same way.
For software, it's practical: the bug nobody mentions, the question nobody asks, and the risk nobody raises are the ones that reach patients. Lesson 7.9's blameless post-mortems only work on a team where people feel safe to tell the whole story.
Feedback in code review
Lesson 5.5 covered what reviewers look for. How they say it decides whether the team learns or gets defensive.
| Instead of | Try |
|---|---|
| “Why would you do it like this?” | “This loops over every ticket for each text. Could we look the phone up in the dictionary instead? It’ll matter at 30 barangays.” |
| “Wrong.” | “I think this lets the 61st phone through: > should be >=. Could you add a test for 60 and 61?” |
| “You always forget tests.” | “This needs a test for the +63 form.” |
| (Nothing about what’s good) | “Nice: the guard clause makes this much easier to read.” |
Google's engineering guide puts it simply: be courteous, comment on the code and not the person, and explain why. Mark which comments are must-fix and which are suggestions, so the author knows what's blocking.
Retrospectives that change things
The Agile Manifesto's last principle: at regular intervals, the team reflects on how to become more effective, then adjusts. In Scrum that's the Sprint Retrospective. A common format asks three questions: what went well, what didn't, and what will we try next.
The last question is the one that matters, and it often produces actions that change nothing. Sort Pila's retrospective actions:
0 of 6 placed right
Be more careful with releases
Rina adds a smoke test for the SMS reply to the pipeline, by Friday
Communicate better
Pull requests over 400 lines get split before review; Marco adds a CI warning
Try harder to finish stories
Bea brings Ate Cora to sprint review every two weeks, starting next sprint
A useful action is specific, has an owner and a date, and addresses a cause, not people's effort. One or two, done, beat ten forgotten.
Disagreeing well
Teams that never disagree are usually teams where people don't say what they think. Some habits that help:
- Disagree about ideas, with evidence. “The METR study suggests…” beats “I just think…”.
- Decide, then commit. After a fair discussion, the team (or the person responsible) decides, and everyone supports it, including those who disagreed. Write it down (lesson 4.9).
- Leaders speak last. When Bea gives her view first, others tend to agree with it. Asking the quietest person first gets more ideas.
- Assume good intent. Marco's 400-line pull request is probably time pressure, not carelessness. Ask.
Spot the trap: “try harder”
Two releases in a row had bugs that reached patients. At the retrospective, the only action written down is: “Everyone needs to try harder and be more careful.”
What happens if…
Check what you learned
Sources
Every claim on this page comes from these sources: the standard, the founding text of a method, a study, or the official record of a project, from the body that publishes it. Industry reports are labelled as such.
- Amy Edmondson: Psychological Safety and Learning Behavior in Work Teams (Administrative Science Quarterly, 1999): the study that defined team psychological safety
- Google re:Work: Understand team effectiveness: Google’s internal study of its own teams, Project Aristotle
- Google Engineering Practices: How to write code review comments: courtesy, and explaining why
- The Scrum Guide (2020): the Sprint Retrospective
- Principles behind the Agile Manifesto: “the team reflects on how to become more effective”